# Language Model Sleep vs Sleep-time Compute

> Language model sleep and sleep-time compute both use a model's offline time, but only language model sleep changes the model itself. Language model sleep consolidates what the model saw in its context into its parameters, through distillation and a self-generated curriculum, to support continual learning, while sleep-time compute reasons over a context before queries arrive and stores precomputed inferences, leaving the weights unchanged.

- Canonical URL: https://protologue.com/compare/language-model-sleep-vs-sleep-time-compute/

## 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.
Entry: https://protologue.com/t/language-model-sleep/

## Sleep-time Compute

Sleep-time compute is computation a language model performs on a context before any query arrives, anticipating likely questions and precomputing useful inferences so that less computation, and lower latency, is needed when queries come.
Entry: https://protologue.com/t/sleep-time-compute/

## Differences

| | Language Model Sleep | Sleep-time Compute |
|---|---|---|
| Changes model weights | Yes | No |
| Produces | Updated parameters that hold new knowledge | Precomputed inferences about a context |
| Main goal | Continual learning without forgetting | Lower latency and test-time compute per query |
| Introduced by | Behrouz et al. (2025, publicized by Google Research in 2026) | Lin et al. (2025) |

## Which to use

- Language model sleep is aimed at models that must keep absorbing new knowledge over time rather than holding it only in context.
- Sleep-time compute suits a stable context that will be asked many predictable questions, where per-query latency matters.

## 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
- Lin et al. (2025). Sleep-time Compute: Beyond Inference Scaling at Test-time. https://arxiv.org/abs/2504.13171

## Cite this page

Protologue. (2026). Language Model Sleep vs Sleep-time Compute. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1). https://protologue.com/compare/language-model-sleep-vs-sleep-time-compute/

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