Introduction
Artificial intelligence has long struggled with two competing goals: compositional learning and lifelong learning. Compositional learning aims to discover "building blocks" of knowledge that can be recombined to solve new problems, but searching for the right combination is a massive combinatorial challenge. Meanwhile, lifelong (or continual) learning requires an agent to learn a stream of tasks without "catastrophic forgetting"—the tendency for new information to overwrite old knowledge.
Until now, these fields have largely operated in isolation. Most lifelong learning methods focus on preserving a single, monolithic model, making it hard to selectively reuse specific pieces of knowledge. Conversely, most compositional methods assume access to a large batch of tasks at once, which is unrealistic for an agent experiencing the world sequentially.
This paper introduces a general-purpose framework for lifelong learning that treats knowledge as a set of reusable, compositional "chunks." By separating the learning process into two distinct stages—assimilation and accommodation—the authors significantly reduce catastrophic forgetting and enable agents to solve increasingly diverse sequences of tasks.
A Piagetian Framework: Assimilation and Accommodation
Inspired by Jean Piaget’s theory of intellectual development, the authors propose splitting the learning of a new task into two distinct stages:
- Assimilation: When a new task arrives, the agent first tries to solve it by finding the best way to combine its existing library of components. During this stage, the components themselves are "frozen" (fixed). This prevents the new task from immediately corrupting old knowledge and provides a stable target for learning the new task's structure.
- Accommodation: Once the agent has a handle on the task's structure, it enters the accommodation phase. Here, it unfreezes the components to refine them based on the new experience. If the existing library is insufficient, the agent uses a novel "component dropout" strategy to decide whether to add a brand-new component to its library.
This framework is algorithm-agnostic. The authors tested it with three compositional structures (linear combinations, soft layer ordering, and soft gating) and three knowledge retention mechanisms (fine-tuning, Elastic Weight Consolidation (EWC), and Experience Replay (ER)).
Key Insights
- Stability through Separation: The core innovation is that separating structure-learning from component-learning naturally handles the stability-plasticity dilemma. By freezing components during assimilation, the agent ensures that it only modifies its core knowledge once it understands how that knowledge relates to the new task.
- Functional Primitives: Qualitatively, the framework learns "functional primitives" rather than just weights. For example, in a generative digit task, one component might learn to control stroke "thickness," while another controls "rotation," regardless of the specific digit.
- Compositionality as a Defense: Compositional structures are inherently more robust to forgetting than monolithic ones. Because tasks share components but have unique structural parameters, the agent can adapt to a new task by changing the combination rather than overwriting the content.
Experimental Results
The authors evaluated their framework on an extensive suite of datasets, ranging from linear models (FERA, Landmine) to deep learning benchmarks (MNIST, Fashion MNIST, CUB-200, CIFAR-100, Omniglot). They also introduced a "Combined" dataset (merging MNIST, Fashion, and CUB) to test the agent's ability to handle highly diverse task sequences.
Across nearly all datasets, the two-stage framework (Dynamic + Compositional) outperformed "joint" baselines that attempt to learn structure and components simultaneously.
Notably, in experiments on MNIST and Fashion MNIST using Experience Replay, the proposed compositional method showed virtually zero performance drop on early tasks even after learning many subsequent ones. Standard monolithic baselines, by contrast, saw significant decay. Furthermore, on the highly diverse "Combined" dataset, monolithic models failed completely to learn complex tasks after seeing simple ones, whereas the compositional agent successfully partitioned its knowledge to handle both.
Limitations and Future Directions
While highly effective, the authors note a few limitations. Currently, there is a lack of formal metrics to measure exactly how compositional a learned structure truly is, relying instead on downstream performance and visual analysis. Additionally, while the two-stage approach simplifies the search space, finding the optimal structure in very deep or complex modular networks remains a difficult optimization problem. Future work will explore scaling this approach to more complex environments, such as reinforcement learning, where components could represent reusable sub-policies or skills.
Summary updated