AIで開発する

Google's sleep framework helps LLMs learn continuously without forgetting

Google Research introduces a sleep phase for large language models that consolidates short-term context into long-term memory, enabling continual learning without catastrophic forgetting.

A neural network resting on a circuit board pillow with light beams flowing into a crystal cube.
この記事用に生成されたイラスト

この記事は英語版のみ利用可能です。

Google Research has introduced a new paradigm called the sleep framework, designed to help large language models (LLMs) acquire new knowledge continuously while retaining previously learned capabilities. Published on October 27, 2026, this approach addresses the critical limitation of static knowledge cutoffs and catastrophic forgetting in deployed AI systems by mimicking biological memory consolidation processes.

What happened

Modern LLMs typically operate in two distinct modes: pre-training, where they absorb vast amounts of data, and inference, where they apply that knowledge within a limited context window. Once deployed, these models remain largely static, unable to integrate new facts or adapt to evolving information without costly retraining. While in-context learning allows temporary adaptation, any knowledge gained during a session is lost once the context window closes, preventing true long-term capability growth.

The primary obstacle to updating deployed models is catastrophic forgetting, a phenomenon where learning new tasks severely degrades performance on older ones. Traditional continual learning methods struggle to balance new information intake with the preservation of existing weights. Google’s research team proposes a solution inspired by human neuroscience: alternating between an active wake phase for interaction and an offline sleep phase for memory consolidation and self-improvement.

This framework enables LLMs to periodically pause input processing to redirect internal computations toward stabilizing fragile short-term memories into robust long-term parameters. By doing so, the model can continuously integrate new facts, handle context windows up to 10 million tokens, and enhance complex reasoning skills without disrupting its core architecture or requiring manual intervention.

How it works

The sleep framework divides the model’s lifecycle into two states. During the active or wake phase, the LLM processes inputs and stores temporary information in fast, short-term memory components. In the subsequent sleep phase, the model stops accepting new inputs and focuses on memory consolidation and dreaming. This process occurs within a fixed architecture using Mixture-of-Experts (MoE) blocks, where newly unlocked low-rank experts are integrated into stable memory structures.

Memory consolidation mirrors non-rapid eye movement sleep in humans. The system uses Generalized Knowledge Distillation and reinforcement learning-based imitation learning to transfer knowledge from high-frequency short-term layers to expanded long-term parameters. On-policy distillation ensures the student model learns from its own generated sequences, while learning to imitate rewards semantic similarity. Once consolidation is complete, synaptic pruning resets the temporary parameters, freeing capacity for future sessions.

The dreaming stage simulates rapid eye movement sleep by engaging in autonomous self-improvement. The model generates synthetic training samples, or dreams, by randomly activating non-standard experts to mix disparate knowledge domains. These samples are filtered using gradient-based selection to prioritize high-value learning signals, followed by supervised fine-tuning and reinforcement learning refinement. This process diversifies the gradient directions explored, leading to a more balanced optimization landscape and improved reasoning capabilities.

Key details

  • The framework alternates between active interaction and offline memory consolidation to mitigate catastrophic forgetting.
  • It supports long-context understanding up to 10 million tokens by compressing context into parametric memory.
  • Memory consolidation uses Mixture-of-Experts architecture with low-rank experts and generalized knowledge distillation.
  • Dreaming involves random expert activation and gradient-based filtering of synthetic data for self-improvement.
  • In evaluations, the method maintained near-zero performance drop in unseen languages like Manchu and Kalamang.
  • The model achieved 79.2% accuracy on AIME 24/25 mathematical reasoning benchmarks, outperforming standard baselines.

Why it matters

For software engineers and AI architects, the inability of LLMs to retain new information permanently is a significant bottleneck. Current solutions rely on massive context windows or frequent retraining, both of which are computationally expensive and inefficient. The sleep framework offers a path toward autonomous agents that can update their knowledge base continuously without losing prior expertise, reducing the operational overhead of maintaining up-to-date models.

This approach also enhances the reliability of AI systems in dynamic environments. By consolidating short-term interactions into long-term parameters, models can maintain consistent performance across diverse tasks and languages. The demonstrated ability to scale context handling to 10 million tokens while improving reasoning accuracy suggests that future AI products could offer deeper, more persistent contextual awareness without the latency penalties associated with extremely large input windows.

What you can do

  • Monitor emerging open-source implementations of Mixture-of-Experts architectures that support dynamic parameter expansion.
  • Evaluate current retrieval-augmented generation pipelines for opportunities to integrate periodic offline consolidation steps.
  • Experiment with synthetic data generation techniques that mimic the dreaming phase to improve model robustness.
  • Review reinforcement learning strategies focused on semantic similarity and imitation learning for knowledge distillation.
  • Consider designing application layers that separate immediate user interaction from background model update cycles.
  • Stay updated on benchmarks for continual learning, particularly those testing catastrophic forgetting in multi-task scenarios.
  • #llm
  • #continual learning
  • #google research
  • #machine learning
  • #ai architecture

Bytechapストアのツール

$89

DocBento

すべてのスキャンを読み取り、ページ出典を提示して回答するセルフホスト型ドキュメント管理システム。

ライブデモ

続きを読む

AIで開発する

NVIDIA DGX SparkでMoE推論を高速化するための3つの最適化

Ling-3.0-flashのプロファイリングにより、デコーディングがメモリ帯域幅に制限されていることが判明しました。カーネルの置き換え、LMヘッドの量子化、マルチトークン予測の導入により、GSM8Kでのスループットが42.5%向上しました。

AIで開発する

AI生成の研究アイデアに対するLLMの新規性判定は失敗する

Hugging Faceによる新しい研究では、大規模言語モデル(LLM)がAI生成の科学的アイデアの新規性を信頼できる形で評価することに苦戦しており、プロンプトのわずかな変更によって性能が急激に低下することが明らかになりました。

AIで開発する

AWS BedrockでCDKとマネージドナレッジベースを用いたエージェント型リトリバルを構築

Amazon Web Servicesは、Managed Amazon Bedrock Knowledge BasesとAWS Cloud Development Kitを使用してエンタープライズ向けのエージェント型リトリバルを展開する方法について詳述しています。これにより、手動でのベクトルストア管理が自動化に置き換えられます。

すべての記事