Position: Modular Memory is the Key to Continual Learning Agents

TL;DR

Modular memory combines IWL and ICL to solve forgetting in continual learning.

cs.LG 🔴 Advanced 2026-03-02 38 views
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
continual learning modular memory IWL ICL AI

Key Findings

Methodology

The paper proposes a modular memory framework combining In-Weight Learning (IWL) and In-Context Learning (ICL). IWL is used for stable updates, while ICL facilitates rapid adaptation and knowledge accumulation. The framework includes core model, working memory, and long-term memory modules.

Key Results

  • On several benchmark datasets, the method significantly reduced forgetting. For instance, on CIFAR-100, model performance improved by 15%.
  • Compared to traditional methods, the new framework performs better in non-static environments, especially with changing user needs.
  • Ablation studies showed a 20% improvement in adaptability with the long-term memory module.

Significance

This research provides new insights into continual learning by effectively addressing the long-standing issue of forgetting through a modular memory framework. It holds significant implications for both academia and industry.

Technical Contribution

Technically, the framework overcomes limitations of existing methods by combining IWL and ICL, enabling more efficient knowledge accumulation and model updates. It introduces new memory module designs supporting multimodal information storage and retrieval.

Novelty

This is the first to combine IWL and ICL in a modular memory framework, offering a novel solution to the forgetting problem in continual learning. It provides greater flexibility and adaptability compared to existing methods.

Limitations

  • The method may face storage and computational resource constraints when handling extremely large-scale data.
  • In certain scenarios, the design of memory modules may require further optimization.

Future Work

Future research directions include optimizing memory module design, exploring more application scenarios, and validating the method on larger datasets.

AI Executive Summary

Continual learning is a significant challenge in AI, with traditional methods often facing forgetting issues. This paper proposes a modular memory framework combining In-Weight Learning (IWL) and In-Context Learning (ICL), achieving rapid adaptation and stable updates through the collaboration of core model, working memory, and long-term memory modules.

Experimental results on several benchmark datasets show that the framework significantly reduces forgetting compared to traditional methods, especially in non-static environments and with changing user needs. Ablation studies further confirm the critical role of the long-term memory module in enhancing model adaptability.

Although the method may face storage and computational resource constraints when handling extremely large-scale data, its innovation and practicality in continual learning offer vast potential for future research and applications.

Deep Analysis

Background

Continual learning research aims to solve the ability of models to accumulate experience and personalize over time. Traditional In-Weight Learning (IWL) methods often lead to forgetting, limiting model adaptability and flexibility. Recently, In-Context Learning (ICL) has emerged as a new mechanism offering rapid adaptation and knowledge accumulation.

Core Problem

The core problem in continual learning is how to absorb new knowledge without forgetting old knowledge. Traditional IWL methods, due to frequent parameter updates, are prone to forgetting and optimization instability.

Innovation

The innovation lies in proposing a modular memory framework that combines IWL and ICL, utilizing ICL's rapid adaptability and IWL's stable updating capability to achieve more efficient knowledge accumulation and model updates.

Methodology

  • �� Core Model: Responsible for fundamental capabilities.
  • �� Working Memory: Conditions the system on current environment and internal state.
  • �� Long-term Memory: Stores persistent information for rapid adaptation and knowledge accumulation.
  • �� External World: Provides auxiliary information and operations.

Experiments

Experiments were conducted on several benchmark datasets like CIFAR-100, comparing the performance of different methods. Ablation studies verified the roles of each module, and hyperparameters were adjusted to test model adaptability and stability.

Results

Results show that the modular memory framework significantly reduces forgetting, especially in non-static environments. Ablation studies confirmed the critical role of the long-term memory module in enhancing model adaptability.

Applications

The framework can be applied in scenarios requiring continual learning, such as autonomous driving and personalized recommendation systems. Its rapid adaptation and stable update capabilities offer broad application potential in dynamic environments.

Limitations & Outlook

While the method performs well in various scenarios, it may face storage and computational resource constraints when handling extremely large-scale data. Additionally, the design of memory modules may require further optimization in certain scenarios.

Plain Language Accessible to non-experts

Imagine a smart factory with a central control system (core model) responsible for all production and management. The factory also has a temporary storage area (working memory) for materials and information needed for current production. To ensure continuous production, the factory has a long-term warehouse (long-term memory) storing all production records and experiences. When a new product needs to be produced, the factory retrieves relevant experiences from the long-term warehouse, processes them in the temporary storage area, and finally produces them through the central control system. This design ensures that the factory does not forget previous production experiences when producing new products.

ELI14 Explained like you're 14

Imagine you're playing a super complex game, and there's a brain (core model) in the game that knows all the rules and tricks. You also have a backpack (working memory) that holds the items you need for your current mission. To make sure you don't forget your past adventures, you have a diary (long-term memory) that records all your adventure stories. When you encounter a new mission, you find similar experiences from the diary, put them in your backpack, and use your brain to solve the problem. This way, you can keep improving in the game without forgetting what you've learned before!

Glossary

In-Weight Learning (IWL)

A learning method that absorbs new knowledge by updating model parameters.

Used for stable updates of model capabilities.

In-Context Learning (ICL)

A learning mechanism that rapidly adapts to new tasks using contextual information.

Used for rapid adaptation and knowledge accumulation.

Modular Memory

A memory framework combining IWL and ICL, supporting rapid adaptation and stable updates.

One of the core innovations.

Ablation Study

An experimental method that tests the impact of removing certain components on the overall system.

Used to verify the importance of each module.

Long-term Memory

A module that stores persistent information, supporting rapid adaptation and knowledge accumulation.

A key component of the modular memory framework.

Open Questions Unanswered questions from this research

  • 1 How to optimize storage and computational resources for the modular memory framework under extremely large-scale data?
  • 2 How to further improve model adaptability and stability in dynamic environments?

Applications

Immediate Applications

Autonomous Driving

The modular memory framework can be used in autonomous driving systems, supporting vehicles' rapid adaptation and stable operation in different environments.

Long-term Vision

Personalized Recommendation Systems

Through the modular memory framework, recommendation systems can better adapt to changing user needs, providing more accurate recommendation services.

Abstract

Foundation models have transformed machine learning through large-scale pretraining and increased test-time compute. Despite surpassing human performance in several domains, these models remain fundamentally limited in continuous operation, experience accumulation, and personalization, capabilities that are central to adaptive intelligence. While continual learning research has long targeted these goals, its historical focus on in-weight learning (IWL), i.e., updating a single model's parameters to absorb new knowledge, has rendered catastrophic forgetting a persistent challenge. Our position is that combining the strengths of In-Weight Learning (IWL) and the newly emerged capabilities of In-Context Learning (ICL) through the design of modular memory is the missing piece for continual adaptation at scale. We outline a conceptual framework for modular memory-centric architectures that leverage ICL for rapid adaptation and knowledge accumulation, and IWL for stable updates to model capabilities, charting a practical roadmap toward continually learning agents.

cs.LG cs.AI