Do Language Models Need Sleep? Offline Recurrence for Improved Online Inference
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 20:49 UTC · 337f9cc7e8a8 ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,24 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "9iKWH7TwxX"- }- ],- "title": "Do Language Models Need Sleep? Offline Recurrence for Improved Online Inference",- "authors": [- "Sangyun Lee",- "Sean Michael McLeish",- "Tom Goldstein",- "Giulia Fanti"- ],- "abstract": "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 the 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 the 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 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. Code available at https://github.com/sangyun884/llm-sleep",- "year": 2026,- "venue": "NeurIPS 2026",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "303695a0-6951-4d2b-9614-b2498a54abc0"}
paper.json added
+++ b/paper.json@@ -0,0 +1,14 @@+{+ "title": "Do Language Models Need Sleep? Offline Recurrence for Improved Online Inference",+ "authors": [+ "Sangyun Lee",+ "Sean Michael McLeish",+ "Tom Goldstein",+ "Giulia Fanti"+ ],+ "abstract": "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 the 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 the 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 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. Code available at https://github.com/sangyun884/llm-sleep",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}