# Language Model Sleep

> Language model sleep is an approach to continual learning in which a model alternates between an active phase, when it processes inputs and holds new information in short-term memory such as its context, and an offline sleep phase, when it takes no new input and consolidates that information into its parameters.

- Identifier: PTL-0267
- Category: Prompt Optimization
- Canonical URL: https://protologue.com/t/language-model-sleep/
- Also known as: sleep framework, sleep paradigm, knowledge seeding
- Introduced: 2025

## Description

Behrouz, Hashemi, Javanmard and Mirrokni proposed a two-stage sleep paradigm in a paper publicly available since September 2025, which Google Research publicized as the "sleep framework" in October 2026. Its first stage, memory consolidation, moves short-term knowledge into the model's parameters, partly through what the authors call knowledge seeding, in which the memories of a smaller version of the model are distilled into a larger network. Its second stage, which the authors call dreaming, uses reinforcement learning to have the model generate a curriculum of synthetic data that rehearses new knowledge and refines existing skills. Google's blog post reports, as the authors' results, a near-zero performance drop when the model learned unseen languages in sequence and gains over supervised fine-tuning on knowledge-incorporation and math tasks. In separate work, Lee, McLeish, Goldstein and Fanti used a sleep phase in which a model converts recent context into persistent fast weights in its state-space blocks before clearing its key-value cache. Unlike sleep-time compute, which precomputes inferences about a context without changing weights, and unlike agent-memory dreaming, which reorganizes written notes, language model sleep updates the model's parameters.

## Related terms

- [Sleep-time Compute](https://protologue.com/t/sleep-time-compute/)
- [Dreaming](https://protologue.com/t/dreaming/)
- [Knowledge Distillation](https://protologue.com/t/knowledge-distillation/)
- [Agent Memory](https://protologue.com/t/agent-memory/)
- [KV Cache](https://protologue.com/t/kv-cache/)
- [Fine-Tuning](https://protologue.com/t/fine-tuning/)

## Comparisons

- [Language Model Sleep vs Sleep-time Compute](https://protologue.com/compare/language-model-sleep-vs-sleep-time-compute/)

## Sources

- Behrouz et al. (2026). Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories. https://arxiv.org/abs/2606.03979
- Behrouz and Mirrokni (Google Research) (2026). The sleep framework: A new way for LLMs to retain knowledge in continual learning. https://research.google/blog/the-sleep-framework-a-new-way-for-llms-to-retain-knowledge-in-continual-learning/
- Lee et al. (2026). Do Language Models Need Sleep? Offline Recurrence for Improved Online Inference. https://arxiv.org/abs/2605.26099

## Cite this entry

Protologue. (2026). Language Model Sleep. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0267). https://protologue.com/t/language-model-sleep/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
