Uncertainty-guided Continual Learning with Bayesian Neural Networks
Sayna Ebrahimi, Mohamed Elhoseiny, Trevor Darrell, Marcus Rohrbach
TL;DR
The paper tackles catastrophic forgetting in continual learning under fixed capacity by leveraging uncertainty in Bayesian neural networks. It introduces Uncertainty-guided Continual Bayesian Neural Networks (UCB), which adapt learning rates per parameter using posterior uncertainty $\sigma$, and a hard-pruning variant UCB-P that freezes important weights via task-specific masks. Across MNIST variants and multi-dataset sequences, UCB and UCB-P achieve state-of-the-art or competitive results, often with minimal forgetting and without requiring task labels at test time (single-head/generalized accuracy). The work highlights uncertainty as a natural criterion to decide what to remember and what to change, offering practical deployment without memory replay or explicit task boundaries.
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' \textit{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 \textit{what to remember} and \textit{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.
