TL;DR
- Consolidation is a phase between uses that turns accumulated raw writes into durable, reusable structure. It is not a larger context window and not another write.
- Raw storage is not durable memory. As verbatim traces accumulate, retrieval has more noise to search through.
- The term sleep-time compute comes from Lin et al. (2025): pre-computing over stored context before queries arrive. Its one agentic case, SWE-Features, is mixed.
- As of October 2026, shipping systems run such passes in the background: Mem0's Dream Synthesis on a schedule, Letta's dreaming after a set number of agent steps or on compaction. A May 2026 preprint measured task-success gains from an offline consolidator in three text environments. None of these sources is a production-scale study of task outcomes.
Consolidation is the phase between uses that turns accumulated raw writes into durable, reusable structure through replay and abstraction. It is a distinct phase, not a bigger context window and not a single write.
Sleep-time compute is pre-computing over stored context before queries arrive, so that test-time work shrinks. The term comes from Lin et al. (2025).
Why raw storage is not memory
Storage scales. Recall does not. Storing every interaction as a raw trace is easy, and the store keeps working while recall gets worse. The same fact is recorded three times with small variations. A correction lands next to the thing it corrects, and both stay.
A larger context window does not fix this. It lets the model look at a bigger pile; the long-context failure modes, such as context rot and lost-in-the-middle, are catalogued in The AI Agent Memory Crisis. Activations from one forward pass are discarded while the weights stay fixed (why memory lives outside the model), so reorganization has to happen between uses: deduplicating records, connecting related episodes, forming higher-level concepts. "Sleep" is a scheduling metaphor for work done outside the live request path.
What biological consolidation offers as an analogy
Complementary Learning Systems. The hippocampal system learns new items fast without disrupting what the neocortex has learned slowly, and reinstatement interleaves new memories with others to integrate them into structured neocortical memory (McClelland, McNaughton and O'Reilly, 1995; updated by O'Reilly, Bhattacharyya, Howard and Ketz, 2014). Structure formation gets its own slow phase.
Replay. Pairs of hippocampal place cells that were active together during a waking task fired together more often in later slow-wave sleep, an effect that declined gradually during each sleep session after the task (Wilson and McNaughton, 1994).
That result and Sleep-time Compute (2025) sit about three decades apart, and the mechanisms are not equivalent; what carries over is the decision to separate immediate capture from later reorganization.
Sleep-time Compute: where the term comes from
Sleep-time Compute (Lin et al., Letta and University of California, Berkeley, April 2025) lets a model work over stored context before the related queries arrive. Results, with the paper's settings:
- On Stateful GSM-Symbolic and Stateful AIME, it reduced the test-time compute needed for the same accuracy by about 5×.
- Scaling sleep-time compute raised accuracy by up to 13% on Stateful GSM-Symbolic and 18% on Stateful AIME.
- On Multi-Query GSM-Symbolic, amortizing sleep-time compute across related queries cut the average cost per query by up to 2.5× against the single-query baseline when there were 10 queries per context, under the paper's linear cost model in which a test-time token costs t = 10 times a sleep-time token.
So when later questions are predictable from stored context, moving reasoning out of the request path saves test-time work; that does not show better agents end to end.
SWE-Features, the paper's agentic case study, shows the limit. At lower test-time budgets, sleep-time compute gave up to roughly 1.5× fewer test-time tokens; at high budgets, "when the test-time compute budget is high, using only test-time compute can perform better." The method also depends on predictability: "In settings where the queries are challenging to predict or unrelated to the context, sleep-time compute will be less effective." Its experiments assume two phases, sleep-time and test-time, while real use can run over many rounds of interaction.
Inline or offline: systems that consolidate
The axis that matters is whether reorganization runs inline, inside the live agent loop, or offline, in the background and outside any request.
Generative Agents: reflection is inline. Generative Agents (Park et al., 2023) keep a timestamped memory stream. Reflection fires when the summed importance of the latest events exceeds 150, roughly two or three times a day in the simulation: the model is given the 100 most recent records and asked which high-level questions they raise; those questions are used as retrieval queries, and the model then writes insights that cite their evidence back into the stream.
MemGPT: self-editing, inline. MemGPT splits memory into "main context" and "external context" and gives the model "function calls… to manage its own memory", prompted by a "'memory pressure' warning", in a way that is "entirely self-directed". The paging is interrupt-driven and inline.
Zep and Graphiti: community refreshes and observations. Zep (Rasmussen et al., January 2025) builds a temporal knowledge graph with episode, semantic entity and community subgraphs. Communities come from label propagation. A new entity joins the community held by the plurality of its neighbors, and because that drifts from a full run, "periodic community refreshes remain necessary". Zep's current observations docs, read on 2026-10-18, add a derived layer on Flex Plus and Enterprise plans: "Observations are detected automatically by analyzing structural patterns in the graph", and "Observations are deduplicated and merged".
Letta: dreaming in the background. Letta's sleep-time compute post (April 2025) describes a sleep-time agent that turns "raw context" into "learned context" and modifies memory in an "anytime" fashion, asynchronously. Letta's current memory docs, read the same day: "Dreaming uses background subagents to review recent conversations, consolidate useful lessons, and update memory without interrupting your active work." It is set with /sleeptime in the CLI and runs "after a set number of completed agent steps or when the context window is compacted".
Mem0: Dream Synthesis on a schedule. In Mem0's Dream docs, read the same day, "Synthesis runs as a scheduled background job per user, not on every add." It is opt-in on Pro and above, runs per user every 7 days on Pro and daily (configurable) on Enterprise, and only for users with at least 20 memories. Its other two actions, Supersede and Merge, run as memories are added.
Rolling or recursive summarization sits at the lighter end: it compresses traces outside query serving and can control volume, but compression alone does not show that useful structure was formed.
What each shipping system does with an older record when a newer one contradicts it is compared in Agent memory consolidation compared.
Where the biological analogy breaks
ML replay is not brain replay. The most common ML replay stores a subset of earlier veridical inputs, such as RGB images; the brain replays highly processed representations of past inputs. One review puts it plainly: "replaying raw pixels is not biologically plausible" (Hayes et al., 2021). Generative replay is hard to scale to many tasks or complex inputs (van de Ven et al., 2020); the generator often has as many parameters as the classifier, and such models are "notoriously difficult to train due to convergence issues and mode collapse" (Hayes et al., 2021).
Selective replay is usually dropped. Because sleep is limited in time, only a subset of memories is selected for replay (Hayes et al., 2021). Selective replay has brought gains in reinforcement learning, but the same review finds that "uniform random sampling still works well and is widely used in supervised classification, which is not consistent with how memories are selectively replayed in the brain".
Catastrophic forgetting is not consolidation. Sequential training overwrites what earlier tasks needed (McCloskey and Cohen, 1989), the stability-plasticity dilemma (Mermillod, Bugaiska and Bonin, 2013). The remedy has to be added, as in Elastic Weight Consolidation, which slows learning on the weights important for earlier tasks (Kirkpatrick et al., 2017).
Compression is not structure formation. No machine-learning metric that separates structure formed from trace compressed is settled.
What research has added since Sleep-time Compute
LightMem (v4 of 28 February 2026; the arXiv comment reads ICLR 2026) gives long-term memory a sleep-time update, "an offline procedure that decouples consolidation from online inference". It reports question-answering accuracy and token and API-call savings on LongMemEval and LoCoMo, not task completion.
Auto-Dreamer (Ye, Liu and others, University of Illinois Urbana-Champaign and UC San Diego, preprint of 20 May 2026) trains an offline consolidator. Its ablation keeps the same frozen task agent, retriever, schema and per-session writer and turns consolidation off ("writer-only") or on. Task success rate in percent, in continual-memory deployment, off against on: ScienceWorld 29.6 against 41.1, ALFWorld 48.0 against 60.2, WebArena 44.2 against 52.3. The consolidator was trained on ScienceWorld only, all numbers are the authors' own runs, and the evaluation is restricted to "three text-based agent environments".
What would be convincing
A convincing test holds the model, tools, retrieval policy, stored evidence and online compute constant, adds only an offline consolidation phase, and measures long-horizon task completion, not only fewer tokens at query time. Auto-Dreamer's writer-only ablation comes close to this design at research scale, in three text environments. None of the sources cited here reports such a result for a production agent.
Common questions
What is sleep-time compute for AI agents?
Sleep-time compute is pre-computing over stored context before queries arrive. Lin et al. introduced the term in 2025 and reported efficiency gains when future queries were predictable from that context.
Does offline consolidation improve long-horizon agent performance?
One 2026 preprint, Auto-Dreamer, reports that turning a learned offline consolidator on raised task success in three text-based environments while the task agent, retriever and writer stayed fixed. None of the sources cited here shows it for production agents. In Sleep-time Compute, test-time-only scaling did better on SWE-Features at high budgets.
Is LLM memory summarization the same as consolidation?
No. Summarization compresses traces, while consolidation aims to form reusable structure across episodes. No machine-learning metric that measures that difference is settled.
Which agent memory systems run consolidation in the background?
Of the systems described above, Letta's dreaming runs in background subagents after a set number of agent steps or on compaction, and Mem0's Dream Synthesis runs as a scheduled job per user. Two research systems, LightMem's sleep-time update and Auto-Dreamer's trained consolidator, also consolidate offline. Zep's docs say its observations are derived from the graph automatically. Generative Agents reflection and MemGPT paging are consolidation-shaped but run inline.
Related
- Agent memory consolidation compared
- Continual learning algorithms: EWC, GEM, iCaRL
- Hebbian memory for AI agents and Rescorla-Wagner for agent memory
- Why AI memory lives outside the model
- AI agent memory: what it is
Sources and method. Every quotation was read on 2026-10-18 with two instruments (a browser-like request and a second reader; for arXiv, the abstract page, HTML and PDF), and a made-up address on each host answered 404 as a control. Each is contiguous source text with straight quotes; the ellipsis in the MemGPT quotation marks an omission. DOIs were checked in Crossref and a second registry (Europe PMC or Semantic Scholar). This is a reading of papers and vendor documentation, not a hands-on test of any product. The author's company, named in the byline, is not discussed here.
Edward Izgorodin · Mnemoverse · 2026-10-18
Top comments (0)