Efficacy of Bayesian Neural Networks in Active Learning

Vineeth Rakesh, Swayambhoo Jain

Introduction

Active Learning (AL) is a strategic approach to data labeling where an algorithm identifies the most informative unlabeled data points for model training. This is particularly vital in specialized domains like medicine or biology, where expert annotation is costly. While Deep Ensembles have recently been considered the state-of-the-art for uncertainty estimation in AL, they impose significant computational and memory overhead. This paper re-evaluates Bayesian Neural Networks (BNNs) using a "scaled normal prior," demonstrating their superior robustness and efficiency, especially in incremental learning scenarios.

Methodology

The authors utilize a BNN framework based on a scaled normal prior—a continuous relaxation of the "spike-and-slab" distribution. This approach offers a more generalized framework than standard Monte Carlo Dropout (MCD).

Training Regimes and Uncertainty Estimation

The study compares two primary training paradigms:

  • Continual Training (CT): The model is updated incrementally, reusing weights from the previous AL round.
  • Retraining from Scratch (RFS): The model is completely reset and retrained on the expanded dataset in each round.

To address the latency inherent in BNNs (which typically require multiple forward passes for uncertainty estimation), the authors introduce Accelerated Uncertainty Estimation (AUE). AUE analytically propagates mean and variance through the network, allowing for a single-pass approximation of the predictive distribution.

Comparative Performance

The Continual Training Advantage

A key finding of the research is that Deep Ensembles struggle significantly in Continual Training settings due to overfitting and catastrophic forgetting. In contrast, BNNs remain robust when learning incrementally. On CIFAR10 under CT, BNNs achieved approximately 75% accuracy, vastly outperforming MCD (~67%) and Ensembles (~55%).

Classification accuracy across different architectures and training regimes (top) and expected calibration error (bottom).

As illustrated in Figure 5, BNN variants (BNN-VR) consistently match or exceed the accuracy of competitors across different architectures like AlexNet (ANL) and VGG, while maintaining significantly lower calibration errors in the CT regime compared to standard BNN implementations.

Accuracy and Calibration

Beyond global accuracy, BNNs demonstrate a distinct advantage in identifying "hard classes." For instance, on the Fashion MNIST 'Pullover' class, BNNs achieved 81.8% precision compared to 78.3% for Ensembles. While BNNs can be poorly calibrated out-of-the-box, the authors show that post-training temperature scaling effectively resolves this issue.

Performance benchmarks on MNIST and Fashion MNIST datasets using LeNet architectures.

Figure 1 highlights that BNNs (BNN-VR/E) provide strong performance even on standard benchmarks, often showing a steeper learning curve in the early rounds of active sampling compared to MCD and Ensembles.

Efficiency and Real-time Application

While Ensembles require multiple independent models (increasing memory and training time by 5x or more), a BNN only doubles the parameter count. Although BNNs traditionally require more forward passes (25 vs 5 for Ensembles) to reach peak uncertainty quality, the proposed AUE method mitigates this bottleneck. AUE performed nearly as well as iterative sampling on MNIST and FMNIST, suggesting a viable path for real-time AL applications.

Conclusion

This research positions BNNs with scaled normal priors as a powerful alternative to Deep Ensembles. By excelling in continual training environments and offering a path toward accelerated inference, BNNs reclaim their status as a highly effective tool for efficient, large-scale Active Learning.

Summary updated

BibTeX
@inproceedings{rakesh2021efficacy,
  author = {Vineeth Rakesh and Swayambhoo Jain},
  title = {{Efficacy of Bayesian Neural Networks in Active Learning}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  doi = {10.1109/cvprw53098.2021.00294},
}
Figure