# The sleep framework: A new way for LLMs to retain knowledge in continual learning

DevFeed: [The sleep framework: A new way for LLMs to retain knowledge in continual learning](<https://devfeed.tech/articles/the-sleep-framework-a-new-way-for-llms-to-retain-knowledge-in-continual-learning-103437.md>)

Original publisher: [Read original article](<https://research.google/blog/the-sleep-framework-a-new-way-for-llms-to-retain-knowledge-in-continual-learning/>)

Published: 2026-10-27T17:35:00Z

Content type: article

Language: en

Sources: [The latest research from Google](<https://devfeed.tech/sources/the-latest-research-from-google.md>)

Topics: [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [llm-reasoning](<https://devfeed.tech/topics/llm-reasoning.md>), [Training AI Models](<https://devfeed.tech/topics/training-ai-models.md>), [Mixture of Experts (MoE)](<https://devfeed.tech/topics/mixture-of-experts-moe.md>), [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [abstract](<https://devfeed.tech/tags/abstract.md>), [abstraction](<https://devfeed.tech/tags/abstraction.md>), [activation](<https://devfeed.tech/tags/activation.md>), [adapting](<https://devfeed.tech/tags/adapting.md>), [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-systems](<https://devfeed.tech/tags/ai-systems.md>), [allows](<https://devfeed.tech/tags/allows.md>), [also](<https://devfeed.tech/tags/also.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [automated](<https://devfeed.tech/tags/automated.md>), [autonomous](<https://devfeed.tech/tags/autonomous.md>), [continual-learning](<https://devfeed.tech/tags/continual-learning.md>), [education-innovation](<https://devfeed.tech/tags/education-innovation.md>), [framework](<https://devfeed.tech/tags/framework.md>), [general-science](<https://devfeed.tech/tags/general-science.md>), [knowledge](<https://devfeed.tech/tags/knowledge.md>), [learning](<https://devfeed.tech/tags/learning.md>), [llms](<https://devfeed.tech/tags/llms.md>), [machine-intelligence](<https://devfeed.tech/tags/machine-intelligence.md>), [natural-language-processing](<https://devfeed.tech/tags/natural-language-processing.md>), [sleep](<https://devfeed.tech/tags/sleep.md>)

## AI overview

The sleep framework alternates active interaction with offline consolidation so an LLM can transfer short-term context into long-term parameters. During sleep, pre-allocated Mixture-of-Experts memory blocks are updated using self-generated practice examples: consolidation uses on-policy distillation and semantic rewards to select useful knowledge, while a dreaming loop diversifies synthetic experiences and filters them by learning value. The authors report retaining long-context knowledge up to 10M tokens and gains across translation, factual learning, and mathematical reasoning. In sequential translation on unseen languages, it had near-zero performance drop while ICL, Cartridges, and supervised fine-tuning showed severe forgetting; on BABILong it scaled near-perfectly to 10M tokens and outperformed GPT-4 and Titans. These are reported results from the supplied excerpt; it does not provide enough methodological detail to assess them independently.

## Source excerpt

Education Innovation