Lifelong Learning of Compositional Structures

Jorge A. Mendez, Eric Eaton

Introduction

Artificial Intelligence agents often struggle with the "stability-flexibility" trade-off: the ability to learn new tasks without forgetting previously acquired knowledge. While humans excel at building libraries of reusable "knowledge chunks" to solve novel problems, machine learning models typically face "catastrophic forgetting." This paper introduces a general-purpose framework for lifelong learning of compositional structures, bridging the gap between modular knowledge discovery and sequential task learning.

Methodology: Assimilation and Accommodation

The proposed framework is inspired by Jean Piaget’s theories of intellectual development, dividing the learning process into two distinct stages:

1. Assimilation

Upon encountering a new task, the agent first attempts to solve it using its existing library of functional components. During this stage, the components remain fixed, and the agent only learns the structure—the specific selection and combination of these components. This "structure-first" approach protects existing knowledge from the noisy gradients typical of early-stage learning.

2. Accommodation

Once the structure is established, the agent enters the accommodation stage. Here, the components are unfrozen and updated to better incorporate new information. To mitigate forgetting, the framework employs standard retention mechanisms such as Experience Replay (ER) or Elastic Weight Consolidation (EWC).

3. Library Expansion

To ensure the system can handle increasingly complex or novel tasks, an expansion step is included. Using "component dropout," the agent can dynamically add new components to its library if the existing ones are insufficient for the current task.

Key Results

Mitigation of Catastrophic Forgetting

The compositional approach demonstrates near-zero forgetting. As shown in the learning curves, compositional methods maintain high performance on early tasks even after hundreds of epochs of training on subsequent tasks. In contrast, monolithic and joint training baselines exhibit significant performance decay as they encounter new data.

Learning curves comparing compositional methods (a, b) against joint (c) and monolithic (d) baselines. Compositional structures effectively prevent performance decay over time.

Performance and Efficiency

On the "Combined" dataset, the framework significantly outperformed baselines. While monolithic models failed to learn complex bird classification tasks after simpler digit tasks, the compositional agent succeeded by allocating new components. Furthermore, the framework showed superior sample efficiency, performing better than baselines even with limited data per task.

Performance gains for the Experience Replay (ER) variant across different compositional structures (D+C: Dynamic + Compositional, C: Compositional, J: Joint, NC: No Components).

Conclusion

By separating the learning of structure from the learning of components, this framework provides a robust solution for lifelong learning. By building and reusing functional primitives, agents can achieve high performance across diverse task streams while maintaining the stability of previously learned knowledge. Future work will focus on developing formal metrics for compositionality and optimizing structure search in deeper modular networks.

Summary updated

BibTeX
@inproceedings{mendez2021lifelong,
  author = {Jorge A. Mendez and Eric Eaton},
  title = {{Lifelong Learning of Compositional Structures}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=ADWd4TJO13G},
}
Figure