Bayesian continual learning and forgetting in neural networks

Djohan Bonnet, Kellian Cottart, Tifenn Hirtzlin, Tarcisius Januel, Thomas Dalgaty +2 more
4/18/2025
cs.LG

No official code found. Best implementation: djo1996/Bayesian_Continual_Learning_And_Forgetting (16 stars, last commit 2025-07-15).

Abstract

Biological synapses effortlessly balance memory retention and flexibility, yet artificial neural networks still struggle with the extremes of catastrophic forgetting and catastrophic remembering. Here, we introduce Metaplasticity from Synaptic Uncertainty (MESU), a Bayesian framework that updates network parameters according their uncertainty. This approach allows a principled combination of learning and forgetting that ensures that critical knowledge is preserved while unused or outdated information is gradually released. Unlike standard Bayesian approaches -- which risk becoming overly constrained, and popular continual-learning methods that rely on explicit task boundaries, MESU seamlessly adapts to streaming data. It further provides reliable epistemic uncertainty estimates, allowing out-of-distribution detection, the only computational cost being to sample the weights multiple times to provide proper output statistics. Experiments on image-classification benchmarks demonstrate that MESU mitigates catastrophic forgetting, while maintaining plasticity for new tasks. When training 200 sequential permuted MNIST tasks, MESU outperforms established continual learning techniques in terms of accuracy, capability to learn additional tasks, and out-of-distribution data detection. Additionally, due to its non-reliance on task boundaries, MESU outperforms conventional learning techniques on the incremental training of CIFAR-100 tasks consistently in a wide range of scenarios. Our results unify ideas from metaplasticity, Bayesian inference, and Hessian-based regularization, offering a biologically-inspired pathway to robust, perpetual learning.

View on arXivView PDF

Code Implementations(1)

160Python, Jupyter NotebookMar 13, 20251 years ago

Similar Papers

Cite this paper

@article{bonnet2025bayesian,
  title  = {Bayesian continual learning and forgetting in neural networks},
  author = {Djohan Bonnet and Kellian Cottart and Tifenn Hirtzlin and Tarcisius Januel and Thomas Dalgaty and Elisa Vianello and Damien Querlioz},
  year   = {2025},
  eprint = {2504.13569},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.13569v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.13569.svg)](https://codeofpaper.com/paper/2504.13569)

Discussion