2025-12-17 · 专家 · 自然语言处理 · 机器学习

RePo: Language Models with Context Re-Positioning

该论文提出了一种名为REPO的新型机制,通过上下文重定位来减少无关的认知负荷,从而显著提升大语言模型在涉及噪声上下文、结构化数据和较长上下文长度任务上的性能。

更新于 2026-01-22。作者:Huayang Li、Tianyu Zhao、Richard Sproat。

中文摘要

情境学习是现代大型语言模型(LLMs)的基础;然而,现有的架构通过分配线性或常量位置索引,强加了一种刚性和固定的情境结构。借鉴认知负荷理论(CLT),我们认为这种无信息结构增加了无关的认知负荷,消耗了本应用于深度推理和注意力分配的有限工作记忆容量。为了解决这个问题,我们提出了RePo,这是一种新颖的机制,通过情境重定位来减少无关负荷。与标准方法不同,RePo利用一个可微分的模块f_φ来分配能够捕捉情境依赖关系的标记位置,而不是依赖于预定义的整数范围。通过持续在OLMo-2 1B骨干网络上进行预训练,我们证明了RePo在涉及噪声情境、结构化数据和较长情境长度的任务上显著提升了性能,同时在一般短情境任务上保持了有竞争力的表现。详细分析显示,RePo成功地将更高的注意力分配给了遥远但相关的信息,在密集和非线性空间中分配位置,并捕捉输入情境的内在结构。我们的代码可在https://github.com/SakanaAI/repo上获取。

英文摘要

In-context learning is fundamental to modern Large Language Models (LLMs); however, prevailing architectures impose a rigid and fixed contextual structure by assigning linear or constant positional indices. Drawing on Cognitive Load Theory (CLT), we argue that this uninformative structure increases extraneous cognitive load, consuming finite working memory capacity that should be allocated to deep reasoning and attention allocation. To address this, we propose RePo, a novel mechanism that reduces extraneous load via context re-positioning. Unlike standard approaches, RePo utilizes a differentiable module, f_φ, to assign token positions that capture contextual dependencies, rather than replying on pre-defined integer range. By continually pre-training on the OLMo-2 1B backbone, we demonstrate that RePo significantly enhances performance on tasks involving noisy contexts, structured data, and longer context length, while maintaining competitive performance on general short-context tasks. Detailed analysis reveals that RePo successfully allocate higher attention to distant but relevant information, assign positions in dense and non-linear space, and capture the intrinsic structure of the input context. Our code is available at https://github.com/SakanaAI/repo.

解读

一句话总结

该论文提出了一种名为REPO的新型机制,通过上下文重定位来减少无关的认知负荷,从而显著提升大语言模型在涉及噪声上下文、结构化数据和较长上下文长度任务上的性能。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt