Sample-Efficient In-Context Adaptation via Sleep
Not on the map. Why?
Abstract (arXiv)
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× and 2.39× 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.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 70 of its 89 references that are in the map. Submitted 24 Nov 2026, announced 25 Nov 2026.
Builds on
70 of 89 references.
References · 70
- 2017Attention Is All You Needcited by 62,125
- 2020Language Models are Few-Shot Learnerscited by 33,113
- 2020Scaling Laws for Neural Language Modelscited by 7,118
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,433
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,967
- 2014Sequence to Sequence Learning with Neural Networkscited by 3,042
- 2024Qwen2 Technical Reportcited by 2,293
- 2020GLU Variants Improve Transformercited by 2,000
- 2019Dream to Control: Learning Behaviors by Latent Imaginationcited by 1,786
- 2018World Modelscited by 1,662
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,467
- 2022In-context Learning and Induction Headscited by 1,085
38 more
- 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 916
- 2024Phi-4 Technical Reportcited by 795
- 2018Universal Transformerscited by 769
- 2022Transformers learn in-context by gradient descentcited by 763
- 2026GLM-5: from Vibe Coding to Agentic Engineeringcited by 740
- 2018CoQA: A Conversational Question Answering Challengecited by 699
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 690
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 672
- 2016Adaptive Computation Time for Recurrent Neural Networkscited by 578
- 2025Muon is Scalable for LLM Trainingcited by 555
- 2016RL2: Fast Reinforcement Learning via Slow Reinforcement Learningcited by 528
- 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approachcited by 526
- 2024DataComp-LM: In search of the next generation of training sets for language modelscited by 463
- 2023Scaling Data-Constrained Language Modelscited by 443
- 2023Larger language models do in-context learning differentlycited by 436
- 2025SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Modelcited by 415
- 2016Learning to reinforcement learncited by 396
- 2023Function Vectors in Large Language Modelscited by 353
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 348
- 2023In-Context Learning Creates Task Vectorscited by 337
- 2025Reasoning with Latent Thoughts: On the Power of Looped Transformerscited by 303
- 2019Depth-Adaptive Transformercited by 256
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 249
- 2025Scaling Latent Reasoning via Looped Language Modelscited by 241
- 2022Will we run out of data? Limits of LLM scaling based on human-generated datacited by 209
- 2025Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computationcited by 189
- 2024You Only Cache Once: Decoder-Decoder Architectures for Language Modelscited by 175
- 2023Beyond Chinchilla-Optimal: Accounting for Inference in Language Model Scaling Lawscited by 172
- 2019Benchmarking Natural Language Understanding Services for building Conversational Agentscited by 171
- 2024How to Train Long-Context Language Models (Effectively)cited by 168
- 2024Reducing Transformer Key-Value Cache Size with Cross-Layer Attentioncited by 163
- 2021Can You Learn an Algorithm? Generalizing from Easy to Hard Problems with Recurrent Networkscited by 128
- 2022General-Purpose In-Context Learning by Meta-Learning Transformerscited by 112
- 2024Understanding Emergent Abilities of Language Models from the Loss Perspectivecited by 107
- 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 102
- 2024Transformers, parallel computation, and logarithmic depthcited by 92
- 2026Parcae: Scaling Laws For Stable Looped Language Modelscited by 92
- 2026Attention Residualscited by 79
50 most cited of 70 All 70 (JSON)
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Learning, Fast and Slow: Towards LLMs That Adapt Continually
- 2026Learning to Forget: Sleep-Inspired Memory Consolidation for Resolving Proactive Interference in Large Language Models
- 2026Summarize Before You Speak with ARACH: A Training-Free Inference-Time Plug-In for Enhancing LLMs via Global Attention Reallocation
- 2025PERK: Long-Context Reasoning as Test-Time Learning
- 2026TransMem: Transforming Hidden States into Memory for Large Language Models
- 2026Titan-Llama: Retrofitting Pre-trained LLMs with External Neural Memory Modules
- 2025Illusion or Algorithm? Investigating Memorization, Emergence, and Symbolic Processing in In-Context Learning
- 2026Learning When to Attend: Conditional Memory Access for Long-Context LLMs