跳到正文
arXiv (AI + Vision + Imaging)· Sangyun Lee, Zhang Enyan, Michael Xu, Hao Tang, Zinan Lin, Weijia Xu, Chris Quirk, Jianfeng Gao, Giulia Fanti, Xiaodong Liu·· 1 天前AI 评分38

通过Sleep机制提升Transformer语言模型的上下文适应样本效率

Sample-Efficient In-Context Adaptation via Sleep

AI 导读

研究将Sleep机制(模型对上下文执行N次循环前向传播以精炼表征)用于Transformer语言模型,预训练规模最高1.2B参数、100B tokens。更长的Sleep使模型在少样本算法与问答任务中上下文学习更快,分布外评估的下一token预测损失更低。在留出代码上,N=2和N=4的模型分别以2.10倍和2.39倍更少的上下文token达到无Sleep基线的损失水平。

正文 · 原文

arXiv:2611.32802v1 Announce Type: new Abstract: The ability to learn and generalize from limited experience, or sample efficiency, is a cornerstone of intelligence. How can we build language models that turn a few user interactions, a few snippets of unfamiliar code, or a handful of experimental results provided in context into knowledge that generalizes? Prior work has found that sleep, a process where the model performs $N$ recurrent forward passes to refine its representations of a chunk of context, can improve long-context reasoning (specifically, within SSM-attention hybrid models). We study whether this method also improves in-context adaptation on general, non-synthetic tasks for transformer language models. To this end, we pre-train language models up to 1.2B-parameters on up to 100B tokens with sleep mechanisms. Notably, longer sleep (i.e., using a larger number of recurrent forward passes $N$) enables the model to learn faster in-context on multiple few-shot algorithmic, question-answering tasks, while also achieving lower next-token prediction loss on out-of-distribution evaluations. On held-out code, models with $N=2$ and $N=4$ match the no-sleep baseline's loss using $2.10\times$ and $2.39\times$ fewer tokens in-context, respectively. More broadly, we view our work as a step toward building models that have better tradeoffs between in-context adaptation and decoding latency.

来源:arXiv (AI + Vision + Imaging) · arxiv.org