Skip to content
AI Learning Ground Start learning

Research ·

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

Google Research introduced a sleep framework for continual learning in LLMs, alternating active input processing with offline phases that consolidate short-term context into expanded long-term parameters and self-improve, mitigating catastrophic forgetting and static knowledge cutoffs.

The sleep framework: A new way for LLMs to retain knowledge in continual learning
Image: Google Research

Google researchers Ali Behrouz and Vahab Mirrokni propose a sleep framework that gives LLMs a continuous lifecycle instead of the usual split between training and inference. Deployed models normally stay static with a fixed knowledge cutoff, and simply updating parameters tends to cause catastrophic forgetting, while in-context learning loses information once a session ends. The framework retains knowledge up to 10M tokens and improves complex reasoning by alternating between active interaction and offline memory consolidation.

The model runs in two states. In the wake phase it stores inputs in fast, short-term memory. In the sleep phase it pauses new inputs and consolidates memory through two stages. Consolidation expands capacity using newly unlocked low-rank Mixture-of-Experts experts in the Hope architecture, then transfers fragile short-term memories into these stable blocks via Generalized Knowledge Distillation with reinforcement learning-based imitation, rewarding semantic similarity and Levenshtein distance when completing teacher-generated text prefixes. Temporary high-frequency parameters are then pruned to free capacity. A separate dreaming stage generates synthetic training samples using random expert activation, filters them with gradient-based data selection, and fine-tunes on the top-rated ones.

The framework works within a fixed model architecture and human-defined training rules, and the authors provide theory explaining why the two stages support continual learning without trading old knowledge for new. For builders, this points toward models that can absorb new facts and sharpen reasoning after deployment while keeping the core codebase unchanged, avoiding both forgetting and context-window-only memory limits.

References

Read the full story at Google Research ↗Like, save or discuss on Buzz

#research