Sample-Efficient In-Context Adaptation via Sleep
Sangyun Lee, Zhang Enyan, Michael Xu, Hao Tang, Zinan Lin, Weijia Xu, Chris Quirk, Jianfeng Gao, Giulia Fanti, Xiaodong Liu
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 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 ) 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 and match the no-sleep baseline's loss using and 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.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI, cs.CL
Related papers
FlashQLA: Efficient Context Parallelism for Gated DeltaNet
Shared title terminologycs.LGXi Lin, Chengruidong Zhang, Huiqiang Jiang et al.
Transformers with Signatures: Towards Universal In-Context Learning in Path Space
Shared title terminologycs.LGZiheng Cheng, Xin Guo, Ben Hambly
Gated Concept Adapters: Layer-Wise Concept Bottlenecks for Auditable Text Understanding
Shared title terminologycs.LGNiloofar Ranjbar, Saeedeh Momtazi, Mohammad Mehdi Homayounpoor
The Activity Geometry of Discrete Generative Sampling
Shared title terminologycs.LGXinlong Guo, Jie Zhang, Lingyou Zhou
DAiSy: Online Data Selection by Adaptive Utility Estimation for LLM Pretraining
Shared title terminologycs.LGSimin Fan, Martin Jaggi
Pando: Noise-Coupled Parallel Draft Trees for Efficient Edge Speculative Decoding
Shared title terminologycs.LGJoren Dumoulin, Hyoukjun Kwon, Subhankar Pal et al.