← Latest papers
🤖 machine learning

Position: Modular Memory is the Key to Continual Learning Agents

This paper argues that overcoming the limitations of current foundation models in continual learning requires a modular memory architecture that synergistically combines In-Weight Learning for stable capability updates with In-Context Learning for rapid adaptation and knowledge accumulation.

Original authors: Vaggelis Dorovatas, Malte Schwerin, Andrew D. Bagdanov, Lucas Caccia, Antonio Carta, Laurent Charlin, Barbara Hammer, Tyler L. Hayes, Timm Hess, Christopher Kanan, Dhireesha Kudithipudi, Xialei Liu, V
Published 2026-06-17
📖 5 min read🧠 Deep dive

Original authors: Vaggelis Dorovatas, Malte Schwerin, Andrew D. Bagdanov, Lucas Caccia, Antonio Carta, Laurent Charlin, Barbara Hammer, Tyler L. Hayes, Timm Hess, Christopher Kanan, Dhireesha Kudithipudi, Xialei Liu, Vincenzo Lomonaco, Jorge Mendez-Mendez, Darshan Patil, Ameya Prabhu, Elisa Ricci, Tinne Tuytelaars, Gido M. van de Ven, Liyuan Wang, Joost van de Weijer, Jonghyun Choi, Martin Mundt, Rahaf Aljundi

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Problem: The "Goldfish" vs. The "Robot"

Imagine you have a brilliant robot assistant. It knows everything in the world because it was trained on a massive library of books (this is called a Foundation Model). However, there's a catch: once the robot starts working, it has a terrible memory.

If you teach it something new today, it often forgets what it knew yesterday. This is called "Catastrophic Forgetting." It's like a goldfish that learns a new trick but immediately forgets its name.

For a long time, scientists tried to fix this by constantly retraining the robot's brain (updating its internal weights) every time it learned something new. But this is like trying to rewrite a dictionary while someone is reading it; it's messy, unstable, and often makes the robot forget its old vocabulary.

The Paper's Solution: A "Modular Memory" System

The authors argue that the secret to a truly smart, adaptable agent isn't just one big brain. Instead, we need to build a system with three distinct parts, working together like a human with a notebook and a brain.

They propose combining two different ways of learning:

  1. In-Context Learning (ICL): Learning by looking at examples right now.
  2. In-Weight Learning (IWL): Learning by permanently changing your brain.

Here is how their Modular Memory Framework works, using a Chef's Kitchen analogy:

1. The Core Model (The Head Chef)

  • What it is: This is the main AI model. It has the general skills: how to chop, how to sauté, how to read a recipe.
  • How it learns: It learns very slowly and rarely. Think of it as the Chef who only updates their fundamental cooking techniques once a year after a long review.
  • The Goal: To keep the Chef stable and reliable so they don't lose their basic skills.

2. Working Memory (The Cutting Board)

  • What it is: This is temporary space for the current task.
  • How it works: When you ask the Chef to make a specific dish, you put the ingredients and the specific instructions on the cutting board. The Chef looks at them right now to do the job.
  • The Analogy: This is In-Context Learning. The Chef doesn't need to memorize these specific ingredients; they just look at what's on the board. Once the meal is done, the board is wiped clean. It's fast, but temporary.

3. Long-Term Memory (The Recipe Book & Filing Cabinet)

  • What it is: A place to store facts, past experiences, and user preferences that last longer than a single meal.
  • How it works: If the Chef learns a new trick today (e.g., "The customer loves spicy food"), they write it down in a notebook.
  • The Magic Step (Consolidation): Occasionally, the Chef takes notes from the notebook and slowly updates their internal "muscle memory" (the Core Model). This is like the Chef practicing a new technique until it becomes second nature.
  • The Benefit: The Chef can quickly look up the "spicy" note (fast adaptation) without needing to retrain their whole brain every time.

Why This is Better Than the Old Ways

The paper compares their idea to two other common approaches that have flaws:

  • The "Infinite Context" Approach (The Giant Scroll):
    • Idea: Just keep adding more and more notes to the Chef's current instructions so they never forget anything.
    • The Flaw: The scroll gets too heavy! It becomes slow and expensive to read. Also, if the scroll is too long, the Chef gets confused and might ignore the most important notes.
  • The "Constant Retraining" Approach (The Daily Rewrite):
    • Idea: Every time the Chef learns something, rewrite their entire brain.
    • The Flaw: This causes the "Goldfish effect." Every time you rewrite the brain, you accidentally erase old memories. It's also very expensive and unstable.

The "Sleep" Mechanism

One of the coolest parts of the paper is the idea of Consolidation.

  • In the human brain, we learn fast during the day, but we "sleep" at night to move those memories from short-term to long-term storage.
  • The paper suggests AI agents should have a similar "sleep mode." When the agent isn't busy answering questions, it should quietly review its notes (Long-Term Memory) and gently update its Core Model. This prevents the "Goldfish effect" and makes learning stable.

Summary of the "Recipe" for Success

To build an AI that can learn forever without forgetting:

  1. Don't try to memorize everything in your brain at once.
  2. Do use a temporary workspace (Working Memory) for immediate tasks.
  3. Do keep a detailed notebook (Long-Term Memory) for facts and experiences.
  4. Do have a slow, careful process (Consolidation) where you occasionally move good notes from the notebook into your brain, so you get better over time without losing your old skills.

The paper concludes that by separating these roles—fast temporary memory vs. slow permanent brain updates—we can finally create AI agents that are truly adaptable, personalized, and capable of learning throughout their entire "lifespan."

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →