Skip to main content
QUICK REVIEW

[Paper Review] Continual Learning via Local Module Composition

Oleksiy Ostapenko, Pau Rodríguez|arXiv (Cornell University)|Nov 15, 2021
Domain Adaptation and Few-Shot LearningComputer Science7 citations
TL;DR

This paper proposes Local Module Composition (LMC), a continual learning framework that enables task-agnostic modular network composition using per-module local structural components to predict module relevance to input. By dynamically composing modules based on learned relevance scores and detecting out-of-distribution inputs to trigger new module creation, LMC achieves strong performance without task IDs, enabling zero-shot generalization to unseen tasks and modular network composition across independently trained models.

ABSTRACT

Modularity is a compelling solution to continual learning (CL), the problem of modeling sequences of related tasks. Learning and then composing modules to solve different tasks provides an abstraction to address the principal challenges of CL including catastrophic forgetting, backward and forward transfer across tasks, and sub-linear model growth. We introduce local module composition (LMC), an approach to modular CL where each module is provided a local structural component that estimates a module's relevance to the input. Dynamic module composition is performed layer-wise based on local relevance scores. We demonstrate that agnosticity to task identities (IDs) arises from (local) structural learning that is module-specific as opposed to the task- and/or model-specific as in previous works, making LMC applicable to more CL settings compared to previous works. In addition, LMC also tracks statistics about the input distribution and adds new modules when outlier samples are detected. In the first set of experiments, LMC performs favorably compared to existing methods on the recent Continual Transfer-learning Benchmark without requiring task identities. In another study, we show that the locality of structural learning allows LMC to interpolate to related but unseen tasks (OOD), as well as to compose modular networks trained independently on different task sequences into a third modular network without any fine-tuning. Finally, in search for limitations of LMC we study it on more challenging sequences of 30 and 100 tasks, demonstrating that local module selection becomes much more challenging in presence of a large number of candidate modules. In this setting best performing LMC spawns much fewer modules compared to an oracle based baseline, however, it reaches a lower overall accuracy. The codebase is available under https://github.com/oleksost/LMC.

Motivation & Objective

  • Address catastrophic forgetting and sub-linear model growth in continual learning through modular, composable architectures.
  • Overcome the reliance on task identities during inference, which limits applicability in real-world scenarios.
  • Enable dynamic module composition and expansion without task IDs by introducing module-specific local relevance scoring.
  • Support out-of-distribution (OOD) generalization and modular network composition across independently trained models.
  • Evaluate robustness and scalability in long-tailed task sequences with 30 and 100 tasks.

Proposed method

  • Equip each module with a local structural component that estimates its relevance to an input via a learned score.
  • Perform layer-wise dynamic module composition using normalized relevance scores, eliminating the need for task IDs.
  • Trigger new module creation when all current modules flag input as out-of-distribution (OOD), using a local OOD detection mechanism.
  • Introduce a projection phase where new shallow modules are trained to maximize relatedness scores of deeper modules, ensuring compatibility.
  • Use a generative model as the structural component to reconstruct module inputs, enabling OOD detection and structural learning.
  • Apply weighted sum aggregation (Eq. 4) across modules at each layer to implicitly enable module communication and consolidation.

Experimental results

Research questions

  • RQ1Can a modular continual learning system achieve strong performance without relying on task identities during inference?
  • RQ2Can local structural learning enable effective out-of-distribution (OOD) generalization to unseen tasks?
  • RQ3Can independently trained modular networks be composed into a new modular network without fine-tuning?
  • RQ4How does module selection performance degrade in long task sequences with many candidate modules?
  • RQ5Can the local relevance scoring mechanism support scalable, dynamic, and stable continual learning in realistic settings?

Key findings

  • LMC achieves superior or comparable performance to state-of-the-art methods on the CTrL benchmark without requiring task IDs at test time.
  • LMC successfully generalizes to out-of-distribution (OOD) tasks not seen during training, demonstrating zero-shot transfer capability.
  • LMC enables composition of modular networks trained on different task sequences into a single functional network without any fine-tuning.
  • On 30- and 100-task sequences, LMC spawns significantly fewer modules than the oracle-based MNTDP baseline, yet achieves slightly lower accuracy, indicating challenges in automatic module selection with large candidate sets.
  • The projection phase significantly improves compatibility between shallow and deep modules, enabling stable training and effective composition.
  • LMC's performance is sensitive to the reliability of the local OOD detector and generative model, highlighting dependencies on advances in OOD detection and generative modeling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.