Efficient Continual Learning Ensembles in Neural Network Subspaces

Thang Doan, Seyed-Iman Mirzadeh, Joelle Pineau, Mehrdad Farajtabar

Abstract

Continual learning (CL) is often hampered by catastrophic forgetting, where neural networks lose previously acquired knowledge when learning new tasks. While ensembling is a proven technique for improving robustness, its high computational cost typically precludes its use in resource-constrained CL scenarios. This paper presents Subspace-Connectivity, a novel framework that combines neural network subspaces with mode connectivity. By navigating the weight space to find low-loss paths between task-specific subspaces, the method achieves the performance benefits of large ensembles at the computational cost of a single model.

Introduction

In the paradigm of continual learning, models must adapt to a sequential stream of data without forgetting. Most existing research focuses on single-model architectures. While ensembles—collections of independently trained models—offer superior generalization, their memory and compute requirements scale linearly with the number of members. This paper addresses the challenge of bringing ensemble-level robustness to CL without the associated overhead, specifically targeting applications on edge devices where resource efficiency is paramount.

Methodology: Subspace-Connectivity CL

The authors propose a hybrid approach that leverages the geometric properties of neural network loss landscapes. The method, termed Subspace-Connectivity, involves three primary steps:

  1. Subspace Learning: For each new task, the model learns a subspace defined by a convex combination of weights, rather than a single point.
  2. Midpoint Extraction: The center (midpoint) of the learned subspace is identified as the most stable solution for the current task, yielding higher accuracy and robustness to weight perturbations.
  3. Linear Mode Connectivity: To prevent "subspace drift"—the gradual loss of previous task knowledge—the algorithm uses a small replay buffer to enforce a low-loss linear path between the current task's midpoint and the previous task's midpoint. This regularizes the learning process, anchoring the new solution to the historical knowledge base.

Key Insights and Diversity

A central finding of this work is that the diversity inherent in ensembles is a natural defense against forgetting. Individual models within an ensemble may forget different aspects of a task; when their predictions are averaged, the collective knowledge remains more stable than any single constituent.

Comparison of individual model accuracies versus the ensemble average across four distinct tasks. The ensemble average (Avg) consistently outperforms individual members.

As shown in the task-specific analysis above, the ensemble average consistently yields higher accuracy than the median performance of individual models. This supports the hypothesis that collaboration between diverse solutions is more effective than simply increasing the parameter count of a single model.

Experimental Results

The proposed method was evaluated on standard benchmarks including Permuted MNIST, Rotated MNIST, Split CIFAR-100, and Split miniImageNet.

Performance Scaling

The benefits of ensembling in CL are directly proportional to the number of models utilized. As illustrated in the scaling analysis, the final average accuracy increases as more models are added to the ensemble, maintaining a significant lead over single-model baselines.

Final average accuracy as a function of ensemble size. The ensemble approach consistently maintains higher accuracy than the single-model baseline.

Efficiency and Accuracy

  • Rotated MNIST: Subspace-Connectivity achieved 86.7% accuracy, surpassing both single-model (81.9%) and 3-model vanilla ensembles (83.6%).
  • Split CIFAR-100: The method reached 61.7% accuracy, significantly outperforming the single-model baseline (58.2%) while requiring only ~1.1x the FLOPs of a single model, compared to the 3x cost of a standard ensemble.

Conclusion

Subspace-Connectivity provides a path toward efficient, robust continual learning. By utilizing the geometric connectivity between task solutions, the method captures the advantages of ensembling—diversity and stability—without the prohibitive computational costs. Future work will explore dynamic ensemble expansion to further balance the trade-off between stability (remembering old tasks) and plasticity (learning new ones).

Summary updated

BibTeX
@inproceedings{doan2023efficient,
  author = {Thang Doan and Seyed-Iman Mirzadeh and Joelle Pineau and Mehrdad Farajtabar},
  title = {{Efficient Continual Learning Ensembles in Neural Network Subspaces}},
  booktitle = {CoLLAs},
  year = {2023},
}
Figure