Abstract
In the continual learning setting, tasks are encountered sequentially. The goal is to learn whilst i) avoiding catastrophic forgetting, ii) efficiently using model capacity, and iii) employing forward and backward transfer learning. In this paper, we explore how the Variational Continual Learning (VCL) framework achieves these desiderata on two benchmarks in continual learning: split MNIST and permuted MNIST. We first report significantly improved results on what was already a competitive approach. The improvements are achieved by establishing a new best practice approach to mean-field variational Bayesian neural networks. We then look at the solutions in detail. This allows us to obtain an understanding of why VCL performs as it does, and we compare the solution to what an 'ideal' continual learning solution might be.
Introduction
Artificial neural networks typically suffer from catastrophic forgetting: when trained on a new task, they tend to overwrite the weights necessary for previous tasks, causing performance on old data to plummet. The field of Continual Learning (CL) seeks to build models that can learn a stream of tasks while retaining old knowledge, using model capacity efficiently, and enabling transfer learning (both forward and backward).
Variational Continual Learning (VCL) was previously proposed as a Bayesian solution to these challenges. By maintaining a distribution over weights, the model uses the posterior from one task as the prior for the next, naturally penalizing changes to weights that are critical for previous knowledge. This paper demonstrates that VCL's performance can be significantly boosted through optimization refinements and reveals an emergent "pruning" mechanism that manages model capacity automatically.
Methodology and Optimization Refinements
The authors build upon the VCL framework but introduce three practically vital improvements to the training process to address slow convergence and local minima:
- Extended Optimization: Training for significantly more epochs (up to 600-800) was found to be necessary for VCL to reach its full potential.
- Local Reparameterization Trick: This technique reduces gradient noise during Monte Carlo sampling of the network, leading to more stable and reliable training.
- Smart Initialization: Initializing weights with small random means and small variances before every new task helps the optimizer find better local minima in the complex loss landscape.
Additionally, the study evaluates the use of coresets—small buffers of representative data from past tasks—which can be combined with the inference-based VCL approach to further mitigate forgetting.
The Emergent Pruning Mechanism
A key contribution of this work is the discovery of an emergent "pruning" effect. In the Split MNIST benchmark, the model does not use its entire capacity for the first task. Instead, it learns to use approximately one hidden unit per task. The remaining units are effectively "turned off" (their output weights are set to near-zero), preserving them for future use.
This pruning is driven by the Variational objective function. The model finds it mathematically "cheaper" in terms of KL-divergence to deactivate unused units—keeping their input weights at the prior—than to allow them to interfere with the output. In Permuted MNIST, the model uses its first hidden layer to "de-permute" images, while the second layer maintains a small, constant number of active units to perform classification across all tasks.
Experimental Results
The optimization tweaks led to a new state-of-the-art for VCL across standard benchmarks. On Split MNIST, accuracy improved to 98.5% (up from 97.0% in the original VCL paper), significantly outperforming methods like Elastic Weight Consolidation (EWC), which achieved only 63.1%.
On Permuted MNIST, the improved VCL reached 93% accuracy, rising to 94.6% when combined with a small coreset. As shown in the table below, these results are highly competitive with, and often superior to, other established continual learning methods, even those using much larger hidden layer sizes.
Discussion and Future Work
While VCL proves remarkably efficient, several avenues for improvement remain. The current "mean-field" approximation assumes weight uncertainties are independent; incorporating structured approximations that account for weight correlations could yield further gains. Furthermore, while MNIST provides a solid baseline, more complex benchmarks are required to fully explore the potential for sophisticated forward and backward transfer learning. Finally, a more rigorous mathematical characterization of the conditions that trigger the emergent pruning effect remains an open research question.
Summary updated