Skip to main content
QUICK REVIEW

[Paper Review] Uncertainty-guided Continual Learning with Bayesian Neural Networks

Sayna Ebrahimi, Mohamed Elhoseiny|arXiv (Cornell University)|Jun 6, 2019
Domain Adaptation and Few-Shot LearningComputer Science45 references26 citations
TL;DR

This paper proposes Uncertainty-guided Continual Bayesian Neural Networks (UCB), which adaptively adjust learning rates based on weight uncertainty to mitigate catastrophic forgetting in continual learning. By leveraging Bayesian neural networks to estimate parameter uncertainty, UCB dynamically identifies important weights for preservation, achieving state-of-the-art or competitive performance across diverse benchmarks without requiring task labels at test time.

ABSTRACT

Continual learning aims to learn new tasks without forgetting previously learned ones. This is especially challenging when one cannot access data from previous tasks and when the model has a fixed capacity. Current regularization-based continual learning algorithms need an external representation and extra computation to measure the parameters' extit{importance}. In contrast, we propose Uncertainty-guided Continual Bayesian Neural Networks (UCB), where the learning rate adapts according to the uncertainty defined in the probability distribution of the weights in networks. Uncertainty is a natural way to identify extit{what to remember} and extit{what to change} as we continually learn, and thus mitigate catastrophic forgetting. We also show a variant of our model, which uses uncertainty for weight pruning and retains task performance after pruning by saving binary masks per tasks. We evaluate our UCB approach extensively on diverse object classification datasets with short and long sequences of tasks and report superior or on-par performance compared to existing approaches. Additionally, we show that our model does not necessarily need task information at test time, i.e. it does not presume knowledge of which task a sample belongs to.

Motivation & Objective

  • Address catastrophic forgetting in continual learning where models cannot access previous task data and have fixed capacity.
  • Overcome limitations of regularization-based methods that require explicit, task-dependent importance measures and extra computation.
  • Develop a method that implicitly identifies important parameters using inherent uncertainty in Bayesian neural networks.
  • Enable effective continual learning without requiring task information at test time, supporting realistic 'single head' deployment.
  • Introduce a pruning variant (UCB-P) that freezes critical parameters via learned binary masks, enabling permanent knowledge retention.

Proposed method

  • Use Bayesian neural networks with variational inference to represent each weight as a distribution (mean and variance), capturing parameter uncertainty.
  • Adapt the learning rate for each weight inversely proportional to its uncertainty: higher uncertainty allows larger updates, lower uncertainty restricts changes.
  • Leverage the posterior distribution of weights after each task to guide subsequent learning, preserving knowledge in low-uncertainty parameters.
  • Introduce UCB-P, a hard-threshold variant that freezes high-importance parameters using binary masks saved per task, preventing further updates.
  • Train and evaluate using a single classification head across all tasks, enabling generalized accuracy evaluation without task identity at inference.
  • Use Monte Carlo sampling for gradient estimation in variational inference to approximate posterior distributions efficiently.

Experimental results

Research questions

  • RQ1Can uncertainty in Bayesian neural network weights serve as a natural, implicit measure of parameter importance for continual learning?
  • RQ2Does uncertainty-guided learning rate adaptation outperform explicit importance regularization in mitigating catastrophic forgetting?
  • RQ3Can the method generalize to long sequences of tasks and diverse datasets without task information at test time?
  • RQ4How does the performance of UCB compare to state-of-the-art continual learning methods like HAT and EWC across standard and generalized accuracy metrics?
  • RQ5Can pruning based on uncertainty preserve performance while reducing memory overhead, and does it enable permanent knowledge retention?

Key findings

  • UCB achieves 98.7% generalized accuracy on 2-Split MNIST without task information at test time, outperforming BBB-FT (98.1%) and matching multi-head performance.
  • On Permuted MNIST, UCB reaches 92.5% generalized accuracy, significantly outperforming BBB-FT (86.1%) and surpassing strong baselines like HAT.
  • In the challenging 8-task CIFAR sequence, UCB achieves 76.8% generalized accuracy, outperforming BBB-FT (47.6%) and PNN by 3.6 percentage points.
  • UCB-P achieves 84.0% accuracy on the 8-task sequence, outperforming PNN by 3.6% and demonstrating effective knowledge retention via binary masks.
  • The performance drop from standard accuracy to generalized accuracy is minimal (≤4.1%), indicating robustness to class confusion in single-head settings.
  • UCB maintains strong performance with only a 0.3% drop in accuracy when switching from multi-head to single-head inference, showing strong generalization capability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.