Nonparametric Bayesian Structure Adaptation for Continual Learning

Abhishek Kumar, Sunabha Chatterjee, Piyush RaiarXiv 2019

Introduction

In machine learning, the ability to learn a sequence of tasks without forgetting previously acquired knowledge—known as Continual Learning—remains a significant challenge. While humans naturally accumulate skills throughout their lives, artificial neural networks typically suffer from catastrophic forgetting. When trained on a new task, these models often overwrite weights essential for prior tasks, leading to a sharp decline in performance on earlier objectives.

Existing strategies to combat this issue generally fall into two categories: regularization-based methods, which constrain weight updates to preserve old knowledge, and architecture-based methods, which expand the network to accommodate new tasks. This paper proposes a unified Bayesian nonparametric framework that bridges these approaches, enabling both weight regularization and dynamic structural adaptation in a principled manner.

Methodology: Bayesian Nonparametric Structure

The core innovation of this work is treating the neural network's architecture as a learnable parameter. By leveraging Bayesian Nonparametrics, the model can infer the necessary complexity for each task automatically.

The Indian Buffet Process (IBP)

To manage network growth, the authors employ the Indian Buffet Process (IBP). In this analogy, tasks are "customers" who choose "dishes" (hidden nodes) from an infinite buffet. This prior allows the network to start with a minimal structure and allocate new nodes only as task complexity demands, facilitating efficient parameter sharing.

Visualization of structural adaptation across three tasks, showing how nodes are shared and new ones are allocated as tasks are added.

Weight Decomposition and Masking

The model decomposes every weight ($W$) into a binary mask ($B$) and a real-valued weight ($V$), such that $W = B \odot V$. The binary mask determines whether a connection exists for a specific task, while the real-valued weight determines its strength. This approach is integrated into the Variational Continual Learning (VCL) framework, where the posterior distribution of weights from one task serves as the prior for the next.

To prevent "negative transfer"—where learning a new, unrelated task degrades old weights—the authors introduce Masked Priors. If a weight was not utilized in any previous task, it is assigned a fresh, uninformative prior rather than being tethered to a partially learned, irrelevant value.

Probabilistic graphical model for the discriminative framework, illustrating the relationships between tasks, latent variables, and observed data.

Experimental Evaluation

The framework was evaluated on several standard continual learning benchmarks, including SplitMNIST, Permuted MNIST, Split notMNIST, and Fashion MNIST. It was also tested in unsupervised settings using Variational Autoencoders (VAEs) for sequential image generation.

Key Results

  • Superior Accuracy: On the Permuted MNIST benchmark, the model achieved 98.18% accuracy, surpassing standard VCL (97.35%) and Elastic Weight Consolidation (95.39%).
  • Generative Performance: In unsupervised tasks, the model maintained high log-likelihood scores across 10 sequential tasks, whereas competing methods showed significant performance decay.
  • Efficient Sparsity: Qualitative analysis revealed that the model used only approximately 15% of available connections for the initial task, leaving substantial capacity for future learning without immediate physical memory expansion.
  • Backward Transfer: By refining shared weights using "coresets" (representative samples of old data), the model occasionally demonstrated backward transfer, where learning a new task actually improved performance on a previous one.

Insights and Limitations

This approach provides a robust mechanism for Automatic Model Selection. Instead of manual hyperparameter tuning for network width, the IBP prior allows the network to infer the optimal size for each task. Furthermore, the model is notably immune to over-training; because each task operates on its own sparse subset of parameters, it avoids the forgetting that often plagues standard VCL during extended training iterations.

However, some limitations remain. The practical implementation requires a "truncation level" for the theoretically infinite IBP, and while a dynamic expansion scheme is proposed, it increases complexity. Additionally, the model requires storing a binary mask for every task, which could become a storage bottleneck for massive models or very long task sequences. Future research aims to extend this framework from feed-forward networks to more complex architectures like Convolutional (CNN) or Residual (ResNet) networks.

Summary updated

BibTeX
@misc{kumar2019nonparametric,
  author = {Abhishek Kumar and Sunabha Chatterjee and Piyush Rai},
  title = {{Nonparametric Bayesian Structure Adaptation for Continual Learning}},
  year = {2019},
  eprint = {1912.03624},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.03624},
}
Figure