NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On Sequential Bayesian Inference for Continual Learning

Samuel Kessler, Adam D. Cobb, Tim G. J. Rudner, Stefan Zohren, Stephen J. Roberts · DOI

Introduction

Continual Learning (CL) represents a significant challenge in artificial intelligence: the ability of a model to learn a sequence of tasks without forgetting previously acquired knowledge. This phenomenon, known as catastrophic forgetting, occurs when the optimization for a new task overwrites the parameters essential for prior tasks.

In theory, Sequential Bayesian Inference offers a mathematically elegant solution. By treating the posterior distribution of a previous task as the prior for the subsequent one, a model should naturally integrate new information while preserving the old. However, in practice, calculating the true posterior for high-dimensional neural networks is computationally intractable, leading researchers to rely on approximations like Variational Inference or Laplace methods. This paper, published in Entropy, investigates whether the failure of Bayesian CL is merely a result of these approximations or if there are deeper, structural issues within the Bayesian framework itself when applied to neural networks.

The Limits of Exact Inference

To isolate the impact of approximation errors, the authors employed Hamiltonian Monte Carlo (HMC), often considered the "gold standard" for high-fidelity Bayesian sampling. By generating near-exact posterior samples and propagating them through the task sequence—using a Gaussian Mixture Model (GMM) to approximate the posterior for use as a subsequent prior—the researchers tested the limits of the Bayesian approach.

Surprisingly, the results indicated that even near-exact inference via HMC yielded no significant benefit over simpler approximate methods like Variational Continual Learning (VCL). This finding suggests that the primary obstacle to successful Continual Learning is not the quality of the posterior approximation, but rather fundamental issues related to the model and the data.

Theoretical Obstacles: Misspecification and Imbalance

The authors identify two primary culprits for the failure of exact Bayesian inference in CL:

  1. Model Misspecification: If a neural network's architecture is "misspecified"—meaning it lacks the capacity or the right inductive bias to perfectly represent the joint solution for all tasks—Bayesian inference will converge on a compromise. This compromise often performs poorly on individual tasks, leading to what appears to be forgetting, even though the mathematics of the update were performed correctly.
  2. Data Imbalance: In sequential updates, if a new task provides significantly more data than the prior tasks, the likelihood of the new data will overwhelm the prior. This "washes out" the knowledge gained from previous tasks, effectively resetting the model's focus to the current objective.

Prototypical Bayesian Continual Learning (ProtoCL)

Given the difficulties of performing Bayesian inference over millions of neural network weights, the authors propose a shift in strategy: Prototypical Bayesian Continual Learning (ProtoCL). Instead of weight-space inference, ProtoCL focuses on the generative process in a low-dimensional embedding space.

In ProtoCL, images are mapped to an embedding space where each class is represented by a "prototype" (modeled as a Gaussian distribution). To prevent these prototypes from drifting as new tasks are introduced, the model utilizes a small coreset—a memory buffer of representative examples from past tasks. This approach simplifies the Bayesian problem by moving it from the high-dimensional parameter space to a more manageable functional space.

Experimental Results

The authors evaluated ProtoCL against state-of-the-art Bayesian methods, including S-FSVI and FROMP, across several benchmarks:

  • Accuracy: ProtoCL achieved 93.73% accuracy on Split-MNIST and 82.73% on Split-FMNIST, consistently outperforming more complex weight-space Bayesian competitors.
  • Scalability: On the more challenging Split-CIFAR100 benchmark (10 tasks), ProtoCL demonstrated robust scalability where other Bayesian methods often falter.
  • Efficiency: The computational advantages were stark. For Split-CIFAR10, ProtoCL completed training in approximately 384 seconds, whereas S-FSVI required over 44,000 seconds. Despite the massive reduction in time, ProtoCL achieved higher accuracy (55.81% vs. 50.85%).

Conclusion

The findings of this paper provide a sobering reality check for the application of Sequential Bayesian Inference in neural networks. The research demonstrates that "Exact Bayes" on a "Wrong Model" cannot solve catastrophic forgetting. Instead, the authors suggest that the path forward for Continual Learning lies in moving away from weight-space inference and toward functional regularization and embedding-space methods like ProtoCL, which focus on preserving the behavior and representations of the model rather than its specific parameter values.

Summary updated

BibTeX
@article{kessler2023sequential,
  author = {Samuel Kessler and Adam D. Cobb and Tim G. J. Rudner and Stefan Zohren and Stephen J. Roberts},
  title = {{On Sequential Bayesian Inference for Continual Learning}},
  journal = {Entropy},
  year = {2023},
  doi = {10.3390/e25060884},
}
Figure