How to Reuse and Compose Knowledge for a Lifetime of Tasks: A Survey on Continual Learning and Functional Composition

Jorge A Mendez, Eric Eaton

Abstract

A major goal of artificial intelligence (AI) is to create an agent capable of acquiring a general understanding of the world. Such an agent would require the ability to continually accumulate and build upon its knowledge as it encounters new experiences. Lifelong or continual learning addresses this setting, whereby an agent faces a continual stream of problems and must strive to capture the knowledge necessary for solving each new task it encounters. If the agent is capable of accumulating knowledge in some form of compositional representation, it could then selectively reuse and combine relevant pieces of knowledge to construct novel solutions. Despite the intuitive appeal of this simple idea, the literatures on lifelong learning and compositional learning have proceeded largely separately. In an effort to promote developments that bridge between the two fields, this article surveys their respective research landscapes and discusses existing and future connections between them.

Introduction

A central goal of artificial intelligence is the creation of agents capable of a general understanding of the world. This requires "lifelong" or "continual" learning, where an agent encounters a stream of tasks and must accumulate knowledge without forgetting previous skills. However, current research is often split between two camps: Lifelong Learning, which focuses on preventing "catastrophic forgetting" in monolithic models, and Compositional Learning, which focuses on modularity—breaking complex problems into reusable "knowledge chunks."

This survey bridges these fields, arguing that true intelligence emerges when agents can functionally decompose their experiences into modules that can be recombined to solve novel tasks with minimal data.

Taxonomy of Lifelong Compositional Learning

The authors identify a major disconnect in current research. While Lifelong Learning ensures that learning Task B doesn't erase Task A, it often treats knowledge as a monolithic block. Conversely, Compositional Learning focuses on modularity but often assumes all tasks are available simultaneously (multitask learning) rather than sequentially.

To bridge this, the paper proposes a taxonomy for "Lifelong Compositional Learning" across several dimensions:

  • Learning Setting: Moving from single-task to multitask and eventually lifelong scenarios.
  • Structural Configuration: How modules are linked, ranging from simple chaining to complex graphs.
  • Type of Composition: Distinguishing between functional composition (chaining modules like "find" and "count") and temporal composition (sequencing actions over time in RL).
Figure 6: An illustration of compositional multitask learning where shared modules (m1, m2, etc.) are reused across different input and output spaces to solve multiple tasks efficiently.

The paper identifies four "pillars" of lifelong learning—Regularization, Replay, Generative Replay, and Expandable Models—and discusses how these can be integrated with modular architectures to facilitate knowledge reuse.

Key Insights: The Power of Modularity

A primary advantage of compositional representations is their ability to combat the "combinatorial explosion." While a monolithic model might require linear growth in parameters for every new task, a modular system can solve an exponential number of task combinations using a small set of shared modules. This allows for Zero-Shot Generalization, where an agent can solve a brand-new task combination without additional training data.

Figure 1: An example of functional composition where an agent chains "locate dogs," "infer age," and "find lowest age" modules to solve a complex visual query.

Furthermore, modularity provides a natural "firewall" against interference. In a compositional model, learning to count dogs only requires updating a "dog detector" module; the "counting" logic remains untouched, inherently protecting the agent from forgetting how to count cats. This makes compositional models naturally more resistant to catastrophic forgetting.

Benchmarks and Results

The survey reviews performance across diverse domains, highlighting landmark findings:

  • Vision: Benchmarks like CIFAR-100 and NEVIS’22 (100 tasks spanning 30 years of computer vision research).
  • Robotics: The authors point to CompoSuite and CausalWorld as critical for testing functional composition where different robot hardwares must perform varied tasks.
  • Performance Gains: Landmark methods like LPG-FTW (Lifelong Policy Gradient) have demonstrated an 82.5% improvement in learning efficiency over non-compositional methods by reusing policy factors across tasks.

Future Directions

Despite progress, several challenges remain for the field:

  1. Measuring Compositionality: Current metrics often focus on final accuracy rather than the degree of modularity achieved. We lack a "ruler" to measure how modular a system actually is.
  2. Task-Free Learning: Moving away from explicit "task indicators" toward agents that can autonomously detect task boundaries in blurry, real-world environments.
  3. Neuro-Symbolic Integration: Combining the learning power of deep networks with the logical reasoning of symbolic systems to achieve more robust, logic-based composition.

In conclusion, the integration of lifelong and compositional learning is a critical step toward agents that can truly build upon their past to master an open-ended future.

Summary updated

BibTeX
@article{mendez2023how,
  author = {Jorge A Mendez and ERIC EATON},
  title = {{How to Reuse and Compose Knowledge for a Lifetime of Tasks: A Survey on Continual Learning and Functional Composition}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=VynY6Bk03b},
}
Figure