Abstract
Catastrophic forgetting remains a significant hurdle in continual learning, where neural networks tend to overwrite knowledge of previous tasks when learning new ones. This paper introduces Bayesian Generative Regularization (BGR), a novel framework that addresses this by enforcing the learning of "sufficient features" through generative modeling. By treating a standard classifier as an Energy-Based Model (EBM), BGR ensures that shared network layers capture a holistic representation of data, satisfying the mathematical independence assumptions required for effective Bayesian continual learning.
Introduction
In the paradigm of continual learning, a model must adapt to a sequence of tasks without access to previous data, often due to storage constraints or privacy regulations like GDPR. A prominent approach is Variational Continual Learning (VCL), which utilizes Bayesian inference to update weight distributions. However, VCL often fails in practice because it assumes independence between shared network parameters and task-specific heads—an assumption frequently violated as shared layers specialize too narrowly on current task features, leading to the loss of information vital for prior tasks.
Methodology: Bayesian Generative Regularization
The proposed BGR method mitigates this coupling by introducing a generative regularization term. This forces the shared layers to retain features descriptive enough to reconstruct the input, rather than just those sufficient for discrimination.
Hybrid Objective and Architecture
BGR treats the model as an Energy-Based Model (EBM), allowing it to learn the joint distribution of inputs and labels. The training objective is a hybrid loss function that combines three key components:
- Variational Bayesian Term: A KL-divergence penalty that keeps current weights close to the posterior distribution of the previous task.
- Discriminative Term: A standard negative log-likelihood (NLL) loss for classification accuracy.
- Generative Regularization: A term that encourages the model to assign low energy to real data and high energy to synthetic samples generated via Gibbs-Langevin Dynamic Sampling.
By requiring the model to "imagine" the data, the shared layers are pressured to maintain a diverse and stable set of features across different tasks, preventing the "lazy" learning typical of purely discriminative models.
Experimental Evaluation
The authors evaluated BGR across several benchmarks: Permuted-MNIST, Split-MNIST, Fashion-MNIST, and the complex CUB (Caltech-UCSD Birds) dataset.
Performance Results
BGR consistently outperformed state-of-the-art baselines, including Elastic Weight Consolidation (EWC) and standard VCL. The performance gap was particularly pronounced on more challenging datasets. For instance, on Fashion-MNIST, BGR maintained an average accuracy of 97.2%, significantly higher than VCL's 76.9%.
On the high-dimensional CUB dataset, BGR achieved 78.8% accuracy, outperforming the next best baseline by 2% and standard VCL by over 11%. These results highlight the synergy between the Bayesian framework and generative regularization.
Discussion and Conclusion
The core insight of BGR is the "Sufficient Feature" argument: if features are sufficient for generation, they are likely robust enough to support multiple tasks without interference. While BGR introduces some computational overhead due to Langevin dynamics—taking roughly 5.5 times longer than simpler methods like VGR on Split-MNIST—the gains in stability and accuracy are substantial.
Future work may focus on reducing the sampling cost and scaling EBM-based regularization to even higher-resolution datasets like ImageNet. BGR represents a significant step toward robust, scalable continual learning systems that can grow their knowledge base without losing their past.
Summary updated