Learning to Continually Learn with the Bayesian Principle

Soochan Lee, Hyeonseong Jeon, Jaehyeon Son, Gunhee Kim

Introduction

Continual learning remains a significant challenge in artificial intelligence. Most neural networks suffer from catastrophic forgetting, where training on new tasks overwrites the parameters necessary for previous ones. While existing solutions like replay buffers or regularization techniques offer partial relief, they often function as temporary fixes rather than fundamental solutions. In contrast, classical Bayesian models possess "perfect memory" through sequential update rules but lack the representational power to handle high-dimensional data like images. This paper introduces Sequential Bayesian Meta-Continual Learning (SB-MCL), a framework that bridges the gap between deep learning's representational capacity and the mathematical stability of Bayesian inference.

Methodology: The SB-MCL Framework

The core innovation of SB-MCL is the separation of the learning process into two distinct loops, leveraging the "Bayesian Principle" to ensure lossless knowledge retention.

The SB-MCL framework architecture, illustrating the interaction between the meta-trained learner and the sequential Bayesian update process.

The Inner Loop: Continual Learning

Instead of relying on Stochastic Gradient Descent (SGD) for task-specific updates—the primary driver of forgetting—SB-MCL employs Sequential Bayesian Updates. Drawing on the Fisher-Darmois-Koopman-Pitman theorem, the authors utilize "Exponential Family" distributions (e.g., Gaussians). These distributions allow the system to compress all necessary information from a data stream into fixed-size "sufficient statistics," enabling indefinite learning without memory growth or information loss.

The Outer Loop: Meta-Learning

To handle complex data, neural networks act as a "bridge" in the outer loop. These networks are meta-trained to map raw input data into the parameters of the Bayesian model. Crucially, once meta-training is complete, these neural networks remain fixed during the continual learning phase. This architectural choice protects the learned representations from being erased by new data.

Evaluation and Key Insights

The framework was rigorously tested across diverse benchmarks, including classification (Omniglot, CASIA, MS-Celeb-1M), regression (Sine waves), and generative modeling (Image completion, VAE, DDPM).

  • Representational Capacity: The authors frame continual learning as a task of finding a latent space where Bayesian updates can occur losslessly.
  • Exchangeability and Order Independence: Because Bayesian updates are commutative, SB-MCL is inherently robust to the non-stationary data streams that typically degrade SGD-based models.
  • Scalability and Efficiency: Unlike sequential meta-learning methods like OML, SB-MCL supports parallel training, leading to significant efficiency gains. For instance, meta-training a Diffusion model (DDPM) took only 8 hours with SB-MCL, compared to an estimated 5 days for OML.

Key Results

SB-MCL demonstrates superior scalability and robustness compared to state-of-the-art baselines. While Transformers (TF) often struggle with "length generalization" as task counts increase, SB-MCL remains stable even across 500 tasks. On the CASIA dataset, SB-MCL achieved a remarkably low classification error of 0.002, outperforming both OML (0.015) and Linear Transformers (0.006).

Performance comparison in many-shot scenarios. SB-MCL (blue) maintains low and stable loss as the number of shots increases, whereas methods like Transformers (green) show significant performance degradation.

Furthermore, in "many-shot" settings, SB-MCL's performance improves or stays stable with more data, whereas SGD-based methods frequently degrade because additional updates exacerbate forgetting.

Limitations and Future Work

The primary constraint of SB-MCL is the reliance on the Exponential Family assumption, which assumes a fixed-dimension distribution can capture the belief state of a task. Additionally, the assumption of data exchangeability may be a drawback for curriculum learning, where the sequence of information is vital. Future research may explore non-parametric posterior distributions to relax these constraints and further enhance the model's flexibility.

Summary updated

BibTeX
@inproceedings{lee2024learning,
  author = {Soochan Lee and Hyeonseong Jeon and Jaehyeon Son and Gunhee Kim},
  title = {{Learning to Continually Learn with the Bayesian Principle}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=IpPnmhjw30},
}
Figure