Continual Learning Beyond a Single Model

Thang Doan, Seyed-Iman Mirzadeh, Mehrdad Farajtabar

Abstract

Continual Learning (CL) aims to enable AI agents to learn sequential tasks without suffering from catastrophic forgetting. While deep ensembles are known to improve robustness in stationary settings, their high computational overhead has historically limited their application in CL. This paper challenges the standard single-model paradigm by demonstrating that ensembles significantly enhance performance and mitigate forgetting. We propose Subspace-Connectivity, a novel framework that achieves ensemble-level accuracy with the runtime efficiency of a single model by leveraging neural network subspaces and mode connectivity.

Introduction

The primary obstacle in Continual Learning is catastrophic forgetting (CF), where learning a new task overwrites the parameters essential for previous tasks. Most existing research focuses on architectural or regularized solutions within a single-model framework. However, ensembles—training multiple independent models—offer a natural defense against forgetting through model diversity. Despite their benefits, the linear growth of computational cost with ensemble size makes them impractical for resource-constrained environments. This work seeks to bridge the gap between the robustness of ensembles and the efficiency required for practical CL.

Methodology

The authors evaluate three ensembling strategies:

  1. Vanilla Ensemble (VE): Independent training of $n$ models, providing peak performance at $n \times$ cost.
  2. Batch Ensemble (BE): A parameter-efficient approach using shared weights and rank-1 "fast" weights.
  3. Subspace Ensemble (SE): Learning a subspace defined by a convex combination of weight vectors, requiring only one forward/backward pass per iteration.

Subspace-Connectivity CL

To prevent "subspace drift"—where the optimal region for old tasks shifts as new tasks are added—the authors introduce a two-step optimization process:

  • Subspace Learning: The current subspace is fine-tuned to accommodate the new task.
  • Connectivity Constraint: Using a small data buffer, the model identifies a low-loss path connecting the new task solution to previous task solutions. This ensures the weight trajectory remains within a region of low loss for all observed tasks.

Key Insights: Diversity and Stability

A core finding is that diversity acts as a natural buffer against forgetting. In an ensemble, different members may specialize in different tasks or forget at different rates.

Figure 6: Accuracy of individual ensemble members (1-10) versus the ensemble average (Avg) across four tasks. The ensemble average consistently outperforms or matches the best individual models.

Furthermore, the "midpoint" of a weight subspace often proves more robust than individual "corner" models, suggesting that the aggregate representation captures more generalizable features. The proposed method balances plasticity (the ability to learn new tasks) with stability (the preservation of old knowledge) by constraining the subspace evolution.

Experimental Results

The approach was validated on standard benchmarks including Permuted MNIST, Rotated MNIST, Split CIFAR-100, and Split miniImageNet.

Figure 1: Final average accuracy as a function of the number of models. Ensembles significantly outperform single-model baselines, with performance scaling as more models are added.

On the Split CIFAR-100 benchmark, Subspace-Connectivity achieved a final average accuracy of 61.7%, surpassing the single-model MC-SGD baseline of 58.2%. Crucially, the method maintains a relative FLOPS ratio of approximately 1.0, matching the efficiency of a single model while delivering the performance of a 3-model ensemble.

Discussion and Future Work

While highly effective, the method currently relies on a small replay buffer to maintain connectivity. Future research could explore buffer-less connectivity or dynamic subspace expansion, where new dimensions are added to the ensemble only when the current capacity is exhausted. By moving beyond the single-model assumption, this work opens new avenues for efficient and robust lifelong learning agents.

Reference: Doan, T., Mirzadeh, S. I., & Farajtabar, M. (2023). Continual Learning Beyond a Single Model. Published at the 2nd Conference on Lifelong Learning Agents (CoLLAs).

Summary updated

BibTeX
@inproceedings{doan2023continual,
  author = {Thang Doan and Seyed-Iman Mirzadeh and Mehrdad Farajtabar},
  title = {{Continual Learning Beyond a Single Model}},
  booktitle = {CoLLAs},
  year = {2023},
}
Figure