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

Jorge A. Mendez, Eric Eaton · DOI

Abstract

This survey explores the intersection of Lifelong Learning and Compositional Learning, two fields that have traditionally operated in isolation. We argue that "functional composition"—the ability to treat knowledge as a library of combinable, modular components—is essential for creating AI agents capable of handling a non-stationary stream of diverse tasks. By breaking complex problems into reusable functional modules, agents can achieve sub-linear memory growth and robust generalization while mitigating catastrophic forgetting.

Introduction

Standard machine learning paradigms typically assume a static environment where data is independent and identically distributed (i.i.d.). However, real-world applications, such as service robotics, require agents to navigate a continuous stream of varying tasks. This paper bridges the gap between Lifelong Learning, which focuses on accumulating knowledge without forgetting, and Compositional Learning, which emphasizes modularity and reuse.

Functional composition allows an agent to solve complex tasks by chaining modular sub-tasks, such as locating objects and inferring attributes.

The core concept is "functional composition." As illustrated in Figure 1, a complex task like finding the youngest dog in a scene can be decomposed into discrete functional modules: locating the dogs, inferring their ages, and comparing those ages. By treating these sub-tasks as "Lego bricks," an agent can solve novel problems by simply recombining existing modules.

The Compositional Challenge: Bridging the Gap

The authors identify a significant research gap. Current Lifelong Learning research often treats tasks as monolithic black boxes, focusing primarily on avoiding "catastrophic forgetting." Conversely, Compositional Learning research usually assumes the agent has simultaneous access to all tasks (Multitask Learning), ignoring the sequential nature of real-world experience. The challenge lies in enabling an agent to autonomously discover modular "chunks" of knowledge from a sequence of tasks and recombine them for zero-shot generalization to unseen problems.

A Taxonomy of Compositional Lifelong Learning

To organize the field, the survey provides a rigorous taxonomy based on several axes, including the multiplicity of tasks, the learning paradigm (Supervised vs. RL), and the structural configuration of modules.

Comparison of learning paradigms: (a) independent single-task learning, (b) joint multitask learning, and (c) compositional multitask learning using shared modules.

As shown in Figure 6, the compositional approach differs fundamentally from standard Single-task or Multitask learning. In a compositional multitask architecture, tasks are solved by routing data through a shared library of modules ($m_1, m_2, \dots$). This modularity acts as a shield against forgetting; because knowledge is stored in discrete units, an agent only needs to update specific modules relevant to a new task, leaving unrelated knowledge intact.

Key Insights and Landmark Results

  • Combinatorial Explosion as a Feature: By learning a small set of $k$ modules, an agent can potentially solve an exponential number of tasks through different combinations. This enables "zero-shot" success, where agents solve novel task combinations without additional training.
  • The RL Divide: In Reinforcement Learning (RL), most composition is "temporal" (sequential skills). The authors argue that "functional" composition (simultaneous modules for vision, planning, and control) is a massive, understudied opportunity.
  • Performance and Efficiency: Landmark studies highlighted in the survey show that compositional approaches can outperform non-compositional methods by up to 82.5% in diverse settings. Furthermore, algorithms like ELLA (Efficient Lifelong Learning Algorithm) demonstrate that modular approaches can be orders of magnitude faster than retraining from scratch.

Future Directions

The survey concludes by identifying "grand challenges," including the need for standard metrics to measure compositionality and the transition from task-based learning to "task-free" continuous streams of unlabeled experience. Moving these techniques from toy simulations to real-world robotics with noisy dynamics remains the ultimate hurdle for the field.

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