# 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.

- Identifier: PTL-0215
- Category: Reasoning Models & Test-Time Compute
- Canonical URL: https://protologue.com/t/sleep-time-compute/
- Also known as: sleep-time computation
- Introduced: 2025

## Description

It moves part of test-time reasoning to idle time between interactions, which suits settings where a stable context, such as a codebase or document, is queried repeatedly. The cost can be amortized across several related queries about the same context. Its authors report that the benefit depends on how predictable the queries are from the context.

## Broader terms

- [Test-Time Compute Scaling](https://protologue.com/t/test-time-compute-scaling/)

## Related terms

- [Agent Memory](https://protologue.com/t/agent-memory/)
- [Reasoning Model](https://protologue.com/t/reasoning-model/)
- [Prompt Caching](https://protologue.com/t/prompt-caching/)

## Sources

- Lin et al. (2025). Sleep-time Compute: Beyond Inference Scaling at Test-time. https://arxiv.org/abs/2504.13171

## Cite this entry

Protologue. (2026). Sleep-time Compute. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.4.0, PTL-0215). https://protologue.com/t/sleep-time-compute/

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