arXiv cs.AI· Sangyun Lee, Zhang Enyan, Michael Xu, Hao Tang, Zinan Lin, Weijia Xu, Chris Quirk, Jianfeng Gao, Giulia Fanti, Xiaodong Liu·· 2 小时前AI 评分41
借助"睡眠"机制实现样本高效的上下文自适应
Sample-Efficient In-Context Adaptation via Sleep
AI 导读
研究者训练了参数最高 1.2B、预训练数据最多 100B tokens 的语言模型,验证睡眠机制(对上下文做 N 次循环前向传播)能否提升 Transformer 语言模型在通用任务上的上下文自适应能力。
正文 · 原文
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.
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Computation and Language (cs.CL) |
| Cite as: | arXiv:2611.32802 [cs.LG] |
| (or arXiv:2611.32802v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2611.32802 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Sangyun Lee [view email]
[v1]
Tue, 24 Nov 2026 15:24:19 UTC (1,200 KB)
来源:arXiv cs.AI · arxiv.org