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

Continual Learning via Sequential Function-Space Variational Inference

Tim G. J. Rudner, Freddie Bickford Smith, Qixuan Feng, Yee Whye Teh, Yarin Gal

Continual learning (CL) aims to enable models to learn a sequence of tasks without suffering from "catastrophic forgetting"—where learning a new task wipes out knowledge of previous ones. This paper introduces Sequential Function-Space Variational Inference (S-FSVI), a framework that tackles CL by regularizing a neural network's predictions (function-space) rather than its weights (parameter-space).

The Flaws of Parameter-Space Regularization

Most existing CL solutions, such as Elastic Weight Consolidation (EWC) or Variational Continual Learning (VCL), rely on parameter-space regularization. They penalize changes to the network's weights to preserve old knowledge. However, the authors argue that weights are a poor proxy for a model's actual behavior. Because neural networks are highly overparameterized, many different weight configurations can produce identical outputs. Conversely, a tiny nudge in weight space can sometimes cause a massive, unwanted shift in predictions.

Conceptual illustration of parameter-space vs. function-space regularization.

While some "function-space" methods exist, they often rely on restrictive assumptions. They might be limited to linear models or use rigid approximations (like the Laplace approximation) that prevent the model from effectively learning its own uncertainty parameters.

The S-FSVI Framework

To overcome these limitations, the authors propose S-FSVI. The core idea is to treat the posterior distribution over functions from the previous task as the "prior" for the current task.

Key technical components include:

  • Variational Objective: The optimization objective balances fitting the current task's data with a Kullback–Leibler (KL) divergence term. This term ensures the model's predictive distribution on "context points" (representative data from past tasks) doesn't drift too far from previous versions.
  • Decoupling: By working in function space, the model allows weights to change significantly to adapt to new tasks, provided the actual outputs on old data remain stable.
  • Stochasticity: Unlike previous methods, S-FSVI supports fully stochastic neural networks, allowing for direct optimization of both the mean and the variance of the predictive distribution.
  • Scalability: To make this computationally feasible for deep networks, the authors use a mean-field approximation (diagonalizing the covariance) and a linearized version of the model to estimate the function-space KL divergence.

Key Insights and Empirical Success

The method was evaluated on a rigorous suite of benchmarks, including Split MNIST, Permuted MNIST, Sequential Omniglot, Split CIFAR, and 2D synthetic datasets.

Evolution of decision boundaries across 5 sequential tasks on a 2D synthetic dataset.
  • Function vs. Parameter Space Flexibility: Regularizing predictions is fundamentally more flexible than regularizing weights. Weights can move widely to accommodate new data while the function remains pinned to previous knowledge.
  • Variance is a First-Class Citizen: By optimizing variational variance parameters directly, S-FSVI maintains better-calibrated uncertainty. It stays "unsure" about regions where it hasn't seen data, preventing overconfident, incorrect predictions on new tasks.
  • Coreset Robustness: Surprisingly, S-FSVI is remarkably indifferent to how the memory buffer (coreset) is chosen. While other methods require complex active learning strategies to pick representative points, S-FSVI performs nearly as well with simple random selection.
  • State-of-the-Art Accuracy: S-FSVI consistently outperformed existing objective-based methods. On Single-Head Split MNIST, it achieved 92.87% accuracy (compared to ~30% for previous leaders like VCL). On the 50-task Omniglot sequence, it reached 83.29%, surpassing the previous best by a statistically significant margin. It also demonstrated superior forward transfer and comparable backward transfer.

Limitations and Future Directions

While highly effective, S-FSVI has limitations. The linearized approximation requires calculating Jacobians of the network outputs with respect to parameters, adding computational overhead compared to simple point-estimate training. Additionally, the model still requires a "context set" (a form of replay memory); truly memory-less continual learning remains an open challenge. Future work may explore non-Gaussian variational distributions and scaling the approach to even larger, more diverse architectures.

Summary updated

BibTeX
@inproceedings{rudner2022continual,
  author = {Tim G. J. Rudner and Freddie Bickford Smith and Qixuan Feng and Yee Whye Teh and Yarin Gal},
  title = {{Continual Learning via Sequential Function-Space Variational Inference}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=ECmL-9TUdcF},
}
Figure