Revised Regularization for Efficient Continual Learning through Correlation-Based Parameter Update in Bayesian Neural Networks

Sanchar Palit, Biplab Banerjee, Subhasis ChaudhuriICVGIP 2024

Abstract

Artificial intelligence systems frequently encounter the challenge of catastrophic forgetting, where the acquisition of new information leads to the abrupt loss of previously learned knowledge. While Bayesian Neural Networks (BNNs) provide a theoretical framework for continual learning by representing weights as probability distributions, they are often hindered by high storage requirements and optimization instabilities. This paper presents ECL-RR (Revised Regularization for Efficient Continual Learning), a framework that replaces standard KL-divergence regularization with a correlation-based update rule. By integrating a Parameter Learning Network (PLN) and subspace partitioning, ECL-RR achieves state-of-the-art performance while significantly reducing the memory footprint of Bayesian models.

Introduction

Continual learning (CL) aims to mimic the human ability to learn tasks sequentially without degrading performance on prior tasks. Bayesian Neural Networks are naturally suited for this because they maintain uncertainty estimates (variance) for every parameter. However, standard BNN approaches face three primary obstacles:

  1. Storage Overhead: Storing both means and variances typically doubles the memory requirements compared to point-estimate networks.
  2. Optimization Instability: Variational Inference often relies on KL-divergence, which can lead to ill-posed gradient flows in high-dimensional parameter spaces.
  3. Parameter Correspondence: Maintaining a clear mapping between specific parameters and their relevance to specific datasets remains difficult as the task sequence grows.

Methodology

Revised Regularization (RR)

The core innovation of ECL-RR is the departure from standard KL-divergence. The authors introduce a revised loss function that penalizes the magnitude of mean changes and the ratio of variance changes based on parameter importance. This ensures that parameters with low variance (high certainty) are preserved, while those with high variance remain flexible for new tasks. This correlation-based update provides a smoother optimization trajectory than traditional variational methods.

Parameter Learning Network (PLN)

To address the storage bottleneck, ECL-RR utilizes a Parameter Learning Network. Instead of storing massive weight matrices for dense layers, the system trains a compact auxiliary network to generate the weights for the primary classification network. This "recipe-based" approach allows the model to recreate necessary parameters on the fly, drastically reducing the total number of parameters that must be saved to disk.

Subspace Partitioning and SVD

The framework employs Singular Value Decomposition (SVD) to partition the parameter space into two distinct areas:

  • Common Subspaces: Shared knowledge that is applicable across multiple tasks.
  • Distinctive Subspaces: Task-specific features that capture the unique nuances of a single dataset.

This partitioning facilitates "backward transfer," where the refinement of common features during a new task can actually improve the model's performance on previous tasks.

Importance-Weighted ELBO

To further stabilize training, the authors implement a tighter version of the Evidence Lower Bound (ELBO). By using importance sampling, the model better captures the correlation between data and network parameters across different training sessions, leading to more robust convergence.

Experimental Results

Performance Benchmarks

ECL-RR was evaluated against established baselines, including Elastic Weight Consolidation (EWC), Variational Continual Learning (VCL), and Hard Attention to the Task (HAT). Testing spanned several benchmarks:

  • Permuted MNIST: ECL-RR achieved 97.8% accuracy, a significant improvement over VCL’s 88.8%.
  • Alternating CIFAR 10/100: In this complex image classification sequence, the model reached 80.16% accuracy, outperforming the HAT method by approximately 2%.

Forgetting and Backward Transfer

A critical metric in continual learning is Backward Transfer (BWT). While many models exhibit negative BWT (forgetting), ECL-RR demonstrated near-zero or positive BWT. On the Permuted MNIST benchmark, it achieved a BWT of 0.03%, indicating that the model slightly improved its performance on old tasks while learning new ones.

Discussion and Limitations

The success of ECL-RR stems from its ability to identify which parameters are "done" learning through sparsity-inducing regularization. By treating weight generation as a functional task (via the PLN) rather than a storage task, the model circumvents the traditional memory-accuracy trade-off in BNNs.

However, some limitations remain. The PLN approach is currently most effective for dense layers; convolutional layers still rely on representation matrices and SVD, which may face scaling challenges in extremely deep architectures. Additionally, the framework assumes clear boundaries between tasks, leaving "task-free" or "blurry" continual learning as an area for future research.

Conclusion

ECL-RR represents a significant step forward in making Bayesian continual learning practical for real-world applications. By refining the regularization process and utilizing a Parameter Learning Network, the framework achieves superior accuracy and memory efficiency, effectively mitigating catastrophic forgetting while enabling positive knowledge transfer across tasks.

Summary updated

BibTeX
@inproceedings{palit2024revised,
  author = {Sanchar Palit and Biplab Banerjee and Subhasis Chaudhuri},
  title = {{Revised Regularization for Efficient Continual Learning through Correlation-Based Parameter Update in Bayesian Neural Networks}},
  booktitle = {ICVGIP},
  year = {2024},
}
Figure