To move from conventional models to continual learning, we need to revisit even the fundamental concepts such as the traditional train and test phases.
We introduce a sleep framework in continual learning that enables LLMs to continuously integrate new facts and enhance reasoning while being robust to catastrophic forgetting.
Our proposed sleep cycle consists of two phases:
1️⃣ Memory consolidation: The model uses imitation learning and RL to perform upward distillation (called knowledge seeding) and transfer knowledge from fragile short-term parameters to persistent slow memories.
2️⃣ Dreaming: The model generates diverse synthetic data to improve its own performance.
We validate the model both theoretically and empirically in this joint paper with @behrouz_ali@Farn8sh_h@AdelJavanmard : https://t.co/4QnCiyMzGm
👉Read the full post on the Google Research Blog: https://t.co/IJmLYN6a9p
Today on the blog, learn about our new instance of a “sleep” phase in continual learning, which enables LLMs to continuously integrate new facts and enhance reasoning while mitigating catastrophic forgetting or static knowledge cutoffs.
More →https://t.co/5v9w5Pn4dw
Moving from conventional ML to continual learning requires revisiting even the fundamental concepts such as “test”/“train” time.
LLMs Need Sleep and Dreaming! We introduce a phase, where the model consolidates its fragile short-term memories into stable long-term memories, and then dreams to recursively self-improve over time. For memory consolidation, we introduce a new form of distillation, called Knowledge Seeding (KS), where a small model(s) distills its knowledge to a larger model. Our experiments on continual learning and reasoning tasks show that this new phase can help the model to perform better and relatively better mitigates catastrophic forgetting.
Link to the paper: https://t.co/3COryi2RFH
This is a joint work with @behrouz_ali, @AdelJavanmard, and @mirrokni. Also, see Ali's post for more details: https://t.co/pSs7FqTAtL
Moving from conventional ML to continual learning requires revisiting even the fundamental concepts such as “test”/“train” time.
LLMs Need Sleep and Dreaming! We introduce a phase, where the model consolidates its fragile short-term memories into stable long-term memories, and then dreams to recursively self-improve over time. For memory consolidation, we introduce a new form of distillation, called Knowledge Seeding (KS), where a small model(s) distills its knowledge to a larger model. Our experiments on continual learning and reasoning tasks show that this new phase can help the model to perform better and relatively better mitigates catastrophic forgetting.
As we move from conventional machine learning toward models that continually learn, we need to revisit some fundamental assumptions, starting with "training time" and "test time." A continual learner doesn't have “test” or “train” time. So what does its lifecycle look like?
Order matters: consolidate first, then dream. Iterating self-distillation on a fixed model can erode prior capabilities. Sleep's two-stage design addresses this, capacity grows and knowledge consolidates before the model starts modifying itself.
The growing KV-cache of attention is the key component for the long-context understanding of LLMs, but what holds back long-term memory modules (e.g., Titans)? What if we could have the compression power of Titans but with a growing memory similar to Transformers?
Memory Caching: A class of architectures that compress the context into a slow growing memory (not as fast as Transformers, but not as static as RNNs), resulting in recurrent neural networks with non-fixed-sized memory (hidden states). Building on this formulation, we present Sparse Selective Caching, an architecture with growing effective memory (similar to attention) but with almost constant inference cost per token (similar to RNNs).
This paper is the same as the DeepCrossAttention (DCA) method from more than a year ago: https://t.co/5k6NIHWW3V. As far as I understood, here there is no innovation to be excited about, and yet surprisingly there is no citation and discussion about DCA!
The level of redundancy in LLM research and then the hype on X is getting worse and worse! DeepCrossAttention is built based on the intuition that depth-wise cross-attention allows for richer interactions between layers at different depths. DCA further provides both empirical and theoretical results to support this approach.
We keep scaling model parameters by increasing width and stacking more layers, but what if the truly missing axes for continual learning are compression and stacking the learning process?
Excited to share the full version of Nested Learning, a new paradigm for continual learning and machine learning in general.
Paper: https://t.co/75T93mvwKm
What makes attention the critical component for most advances in LLMs and what holds back long-term memory modules (RNNs)? Can we strictly generalize Transformers?
Presenting Atlas (A powerful Titan): a new architecture with long-term in-context memory that learns how to memorize the context at test time. Atlas even outperforms Titans, and is more effective than Transformers and modern linear RNNs in language modeling tasks. It further improves the effective context length of Titans and scales to 10M context window with +80% accuracy on the BABILong benchmark. (Bonus: Building on Atlas ideas, we also discuss another family of models that are strict generalization of softmax attention)
.@GoogleAI has dropped a very interesting study
They introduced new types of attentional bias strategies in LLMs and reimagined the "forgetting" process, replacing it with "retention."
All of this is wrapped up in Miras – their new framework for designing efficient AI architectures using 4 building blocks:
• Memory architecture – how the memory is built
• Attentional bias – how the model focuses
• Retention gate – how it forgets or keeps information
• Memory learning algorithm – how it’s trained
Details 🧵