Hierarchical Indian buffet neural networks for Bayesian continual learning

Samuel Kessler, Vu Nguyen, Stefan Zohren, Stephen J. Roberts

Introduction

In the field of Continual Learning (CL), artificial agents are tasked with learning a stream of distinct tasks sequentially. A primary obstacle in this domain is catastrophic forgetting, where the acquisition of new information leads to the abrupt loss of previously learned knowledge. While Bayesian Neural Networks (BNNs) offer a principled way to mitigate forgetting by treating weights as probability distributions, they typically rely on fixed architectures. This leads to a "Goldilocks problem": a network that is too small lacks the capacity for complex new tasks, while one that is too large overfits early data and wastes computational resources.

This paper introduces Hierarchical Indian Buffet Neural Networks (HIBNNs), a framework that leverages Bayesian nonparametrics to allow neural networks to automatically adapt their capacity. By treating the number of active neurons as a learnable latent variable, HIBNNs ensure the model is always "just right" for the task at hand.

Methodology

The core of the HIBNN is the Indian Buffet Process (IBP), a nonparametric prior that defines a distribution over binary matrices with an infinite number of columns. In the context of neural networks, the IBP acts as a binary mask over hidden neurons, allowing the model to select a finite subset of active units from a theoretically infinite pool.

The Hierarchical Extension (H-IBP)

To prevent disjointed growth across layers, the authors propose a Hierarchical IBP (H-IBP). This approach shares a global prior across all layers, encouraging structural regularity. Without this hierarchy, a network might develop an inefficient bottleneck or an excessively wide single layer.

Optimization via Structured Variational Inference

To handle the discrete nature of the IBP masks, the researchers employ Structured Variational Inference (VI). They utilize techniques such as the Concrete relaxation and implicit reparameterization to enable gradient-based optimization of the discrete "on/off" neuron switches. Following the Bayesian paradigm, the posterior distribution learned from one task serves as the prior for the next, naturally preserving knowledge while allowing for expansion.

Experimental Evaluation

The model was tested on several rigorous benchmarks, including Permuted MNIST, Split MNIST, and a sequence of increasing complexity (MNIST → Fashion-MNIST → CIFAR-10).

Key Results and Sparsity

HIBNNs consistently outperformed standard Bayesian CL methods and EWC. For instance, on Permuted MNIST, the model achieved 95.6% accuracy compared to 93.9% for standard BNNs. A standout feature of the HIBNN is its inherent sparsity. Because the IBP prior favors reusing existing useful neurons (a "rich get richer" property), the model remains highly efficient.

Figure 4: Test error vs. Pruning % for different models. HIBNN and IBNN show significantly higher robustness to weight pruning compared to Mean-Field Variational Inference (MFVI) baselines.

As shown in the figure above, HIBNNs can maintain high performance even when 95% of their weights are pruned, whereas standard MFVI models experience a total collapse in accuracy under similar conditions. This demonstrates that the learned masks effectively identify a minimal, robust sub-network for the task sequence.

Structural Regularity

The hierarchical prior is crucial for maintaining a balanced architecture across tasks. By sharing information across layers, the H-IBP ensures that the growth of the network remains coordinated.

Figure 5: Comparison of neuron counts and activity between H-IBP and standard IBP. The box plots (left) show that H-IBP maintains more consistent neuron counts across layers 1 and 2 compared to the non-hierarchical IBP. The heatmaps (right) visualize the sparse neuron activation patterns.

Conclusion

HIBNNs provide a unified probabilistic framework for both weight regularization and architectural expansion. By successfully bridging Bayesian nonparametrics with deep learning, the authors offer a principled solution to the resource allocation problem in continual learning. While future work is needed to scale these methods to convolutional architectures and massive datasets, HIBNNs represent a significant step toward truly adaptive, lifelong learning agents.

Summary updated

BibTeX
@inproceedings{kessler2021hierarchical,
  author = {Samuel Kessler and Vu Nguyen and Stefan Zohren and Stephen J. Roberts},
  title = {{Hierarchical Indian buffet neural networks for Bayesian continual learning}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2021},
}
Figure