RSS Google AI Blog
Follow
The sleep framework: A new way for LLMs to retain knowledge in continual learning
Modern large language models (LLMs) struggle with static knowledge and the problem of catastrophic forgetting when updated. This research introduces a novel "sleep framework" to enable continual learning in LLMs. The framework mimics human memory processes, operating in alternating active (wake) and sleep phases. During the wake phase, LLMs interact with new information, storing it temporarily. In the sleep phase, the model consolidates this fragile short-term information into stable long-term parameters. This consolidation process involves parameter expansion, knowledge seeding, and synaptic pruning. The sleep phase also includes a "dreaming" stage for autonomous self-improvement. Dreaming utilizes random expert activation and curated rehearsal to explore novel patterns and refine capabilities. Theoretically, memory consolidation acts as structured compression, while dreaming enhances learning geometry. Empirical results show the sleep framework significantly outperforms baselines in continual translation, long-context understanding, factual knowledge incorporation, and mathematical reasoning. This paradigm allows LLMs to continuously learn, retain knowledge, and improve without forgetting past learning. The research offers a path toward autonomous, continually learning AI systems.