mlsanityData to 14 Oct 2026

Do Language Models Need Sleep? Offline Recurrence for Improved Online Inference

arXiv 2605.26099 ↗First posted 25 May 2026cs.CL cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Transformer-based large language models are increasingly used for long-horizon tasks; however, their attention mechanism scales poorly with context length. To handle this, we study a sleep-like consolidation mechanism in which a model periodically converts recent context into persistent fast weights before clearing its key-value cache. During sleep, the model performs N offline recurrent passes over the accumulated context and updates the fast weights in its state-space model (SSM) blocks through a learned local rule. During inference, this shifts extra computation to sleep while preserving the latency of wake-time prediction. We test our method on controlled synthetic tasks, including cellular automata and multi-hop graph retrieval, as well as a realistic math reasoning task, on which a regular transformer as well as SSM-attention hybrid models fail. We then show that increasing sleep duration N for our models improves performance, with the largest gains on examples that require deeper reasoning.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 50 of its 66 references that are in the map. First posted on arXiv 25 May 2026.

Builds on

50 of 66 references.

References · 50

  1. 2017Attention Is All You Needcited by 60,361
  2. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  3. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  4. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  5. 2019Dream to Control: Learning Behaviors by Latent Imaginationcited by 1,653
  6. 2018World Modelscited by 1,513
  7. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  8. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
  9. 2021A General Language Assistant as a Laboratory for Alignmentcited by 1,055
  10. 2018Universal Transformerscited by 647
  11. 2019Deep Equilibrium Modelscited by 615
  12. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
38 more
  1. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
  2. 2016Adaptive Computation Time for Recurrent Neural Networkscited by 506
  3. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
  4. 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approachcited by 415
  5. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
  6. 2022Transformers Learn Shortcuts to Automatacited by 268
  7. 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 242
  8. 2019Depth-Adaptive Transformercited by 236
  9. 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 216
  10. 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 208
  11. 2023In-context Autoencoder for Context Compression in a Large Language Modelcited by 199
  12. 2024Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modelingcited by 174
  13. 2025Scaling Latent Reasoning via Looped Language Modelscited by 165
  14. 2022Learning by Distilling Contextcited by 138
  15. 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Modelscited by 122
  16. 2021Can You Learn an Algorithm? Generalizing from Easy to Hard Problems with Recurrent Networkscited by 117
  17. 2025NVIDIA Nemotron Nano 2: An Accurate and Efficient Hybrid Mamba-Transformer Reasoning Modelcited by 108
  18. 2024Hymba: A Hybrid-head Architecture for Small Language Modelscited by 99
  19. 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 86
  20. 2024Transformers to SSMs: Distilling Quadratic Knowledge to Subquadratic Modelscited by 67
  21. 2025End-to-End Test-Time Training for Long Contextcited by 62
  22. 2026Parcae: Scaling Laws For Stable Looped Language Modelscited by 55
  23. 2025A Little Depth Goes a Long Way: The Expressive Power of Log-Depth Transformerscited by 53
  24. 2025Teaching Pretrained Language Models to Think Deeper with Retrofitted Recurrencecited by 47
  25. 2025Sleep-time Compute: Beyond Inference Scaling at Test-timecited by 43
  26. 2025Jet-Nemotron: Efficient Language Model with Post Neural Architecture Searchcited by 41
  27. 2024Online Adaptation of Language Models with a Memory of Amortized Contextscited by 35
  28. 2025Physics of Language Models: Part 4.1, Architecture Design and the Magic of Canon Layerscited by 33
  29. 2024Generative Adapter: Contextualizing Language Models in Parameters with A Single Forward Passcited by 26
  30. 2025Training Plug-n-Play Knowledge Modules with Deep Context Distillationcited by 24
  31. 2026How Much Is One Recurrence Worth? Iso-Depth Scaling Laws for Looped Language Modelscited by 24
  32. 2025InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformationcited by 17
  33. 2025The Serial Scaling Hypothesiscited by 13
  34. 2025Short window attention enables long-term memorizationcited by 11
  35. 2025Deep sequence models tend to memorize geometrically; it is unclear whycited by 9
  36. 2026Learning from Synthetic Data Improves Multi-hop Reasoningcited by 6
  37. 2022Meta-Reinforcement Learning with Self-Modifying Networkscited by 4
  38. 2026Training Large Reasoning Models Efficiently via Progressive Thought Encodingcited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Learning to Forget: Sleep-Inspired Memory Consolidation for Resolving Proactive Interference in Large Language Models
  2. 2026Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories
  3. 2026TransMem: Transforming Hidden States into Memory for Large Language Models
  4. 2025Beyond Memorization: Extending Reasoning Depth with Recurrence, Memory and Test-Time Compute Scaling
  5. 2026A Mechanistic Analysis of Looped Reasoning Language Models
  6. 2025Overflow Prevention Enhances Long-Context Recurrent LLMs
  7. 2026PRO-LONG: Programmatic Memory Enables Long-Horizon Reasoning
  8. 2026Attention Routing Stabilizes Early: Working-Set Inference for Recurrent Language Models