Continual Learning Beyond a Single Model

Thang Doan, Seyed Iman Mirzadeh, Joëlle Pineau · DOI

Abstract

A growing body of research in continual learning focuses on the catastrophic forgetting problem. While many attempts have been made to alleviate this problem, the majority of the methods assume a single model in the continual learning setup. In this work, we question this assumption and show that employing ensemble models can be a simple yet effective method to improve continual performance. However, ensembles' training and inference costs can increase significantly as the number of models grows. Motivated by this limitation, we study different ensemble models to understand their benefits and drawbacks in continual learning scenarios. Finally, to overcome the high compute cost of ensembles, we leverage recent advances in neural network subspace to propose a computationally cheap algorithm with similar runtime to a single model yet enjoying the performance benefits of ensembles.

Introduction: The Stability-Plasticity Dilemma

In Continual Learning (CL), an AI model learns from a stream of data where tasks arrive sequentially. The primary challenge is Catastrophic Forgetting (CF)—learning new information without overwriting old knowledge. Most research attempts to squeeze all knowledge into a single set of weights, creating a "stability-plasticity" dilemma: if weights change enough to learn a new task (plasticity), they often lose the logic for previous tasks (stability). While Deep Ensembles are known to be robust, their computational cost grows linearly with the number of models, making them impractical for resource-constrained environments.

Methods

The authors analyze the efficacy of ensembles in CL and propose more efficient alternatives:

  1. Vanilla Ensembles (VE): Training $n$ independent models. While high-performing, the $n \times$ cost is prohibitive.
  2. Subspace Ensembles (SE): The model learns a "subspace" (a convex combination of weights). Sampling random points in this subspace encourages a "low-loss" region in the weight space.
  3. Subspace-Connectivity CL: To prevent "drift" over many tasks, this method combines subspace learning with Mode Connectivity. It learns a subspace for the current task and uses a small buffer of past data to find a "low-loss path" that connects the current subspace's midpoint to the previous task's midpoint. This "tethers" the subspaces together, ensuring long-term retention.

Key Insights and Ideas

A core finding is that diversity acts as a buffer against forgetting. In an ensemble, even if one model forgets a specific task, another member may have a weight initialization that allows it to retain that task more effectively. The average prediction remains stable across the sequence.

Individual model accuracy vs. ensemble average across four tasks

Furthermore, the "Midpoint" Advantage suggests that the midpoint of a learned weight subspace is consistently more accurate and robust than individual "corner" models. The authors also demonstrate that simply increasing the size of a single model does not yield the same benefits as an ensemble with the same total parameter count, highlighting that model communication and diversification are more critical than raw capacity.

Experimental Results

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

Performance and Scaling

As the number of models in a Vanilla Ensemble increases, the performance gap between the best individual member and the ensemble average grows, demonstrating the potency of the "wisdom of the crowd" in sequential learning.

Final Average Accuracy vs. Number of Models

Efficiency

Subspace-Connectivity CL achieves ensemble-level performance with a Relative FLOPS ratio of ~1.03, representing only a 3% increase in computational overhead compared to a single model. On Rotated MNIST (20 tasks), the proposed method achieved 86.7% accuracy, significantly outperforming the single-model state-of-the-art MC-SGD (81.9%) and rivaling a 3-model ensemble (83.6%) while maintaining superior speed.

Limitations and Future Work

The method currently relies on a small replay buffer to calculate connectivity loss, which may be a hurdle in strictly memory-less scenarios. Additionally, tying subspaces together for stability might eventually limit plasticity as tasks become more numerous. Future research could explore dynamic expansion—adding new members to the subspace only when capacity is reached—to further optimize the stability-plasticity trade-off.

Summary updated

BibTeX
@inproceedings{doan2023continual,
  author = {Thang Doan and Seyed Iman Mirzadeh and Joëlle Pineau},
  title = {{Continual Learning Beyond a Single Model}},
  booktitle = {CoLLAs},
  year = {2023},
}
Figure