NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Bayesian Convolutional Neural Networks

Marcus Liwicki, Felix Laumann, Kumar Shridhar, Adrian Llopart MaurinarXiv 2018

Introduction

Standard deep learning models are often "overconfident," relying on single point-estimates for weights. This lack of uncertainty estimation leads to two primary issues: overfitting, especially with scarce data, and "silent failure" in safety-critical applications like medical imaging or autonomous driving. While Bayesian Neural Networks (BNNs) address this by treating weights as probability distributions, their application to complex architectures like Convolutional Neural Networks (CNNs) has historically been computationally prohibitive. Furthermore, the standard Softmax output function introduces inconsistencies with common activation functions like ReLU, making it difficult for models to predict true "zero" probabilities.

Methods: Bayes by Backprop and Softplus Normalization

The authors propose a framework built on Bayes by Backprop, a variational inference method that approximates the posterior distribution of weights using Gaussian distributions. To adapt this for CNNs efficiently, they implement a Two-Pass Convolution strategy. Instead of a single operation, they apply two: one to learn the mean ($\mu$) and another for the variance ($\sigma^2$) of the weights, utilizing the "local reparameterization trick."

Comparison of standard convolution (left) and Bayesian convolution (right), where weights are represented as probability distributions rather than point estimates.

A key technical innovation is the replacement of the Softmax function with Softplus Normalization. By using the Softplus activation ($log(1 + e^x)$) for each class and normalizing by the sum, the network maintains consistency with hidden layers and can more naturally express near-zero probabilities. This framework also allows for the decomposition of predictive variance into aleatoric uncertainty (data noise) and epistemic uncertainty (model ignorance).

Key Results and Insights

The method was evaluated on MNIST, CIFAR-10, and CIFAR-100 using LeNet-5, AlexNet, and VGG architectures.

Performance and Regularization

The Bayesian models achieved validation accuracies comparable to traditional frequentist networks. Notably, Bayesian CNNs exhibit intrinsic regularization. The process of sampling from weight distributions during training acts as a natural alternative to Dropout. As shown in the training curves, the Bayesian approach effectively prevents the severe overfitting observed in frequentist models lacking explicit regularization.

Accuracy vs. Epochs on CIFAR-100. The Bayesian model (red) achieves stable performance and avoids the significant overfitting seen in the frequentist model without Dropout (blue).

Uncertainty as a Diagnostic Tool

The research highlights a clear negative correlation between validation accuracy and epistemic uncertainty; as the model learns, its "ignorance" decreases. Conversely, aleatoric uncertainty remains stable for a given dataset, accurately reflecting baseline data noise. This distinction is vital for identifying when a model is encountering out-of-distribution data versus simply processing a noisy input.

Limitations and Future Work

While promising, Bayesian CNNs still face challenges. They require roughly double the memory and computation of standard networks to track both means and variances. Additionally, hyperparameter sensitivity remains an issue for reproducibility. Future research could extend Softplus normalization to tasks beyond classification, such as object detection and semantic segmentation, where reliable uncertainty measures are equally critical.

Summary updated

BibTeX
@misc{liwicki2018bayesian,
  author = {Marcus Liwicki and Felix Laumann and Kumar Shridhar and Adrian Llopart Maurin},
  title = {{Bayesian Convolutional Neural Networks}},
  year = {2018},
  eprint = {1806.05978},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.05978},
}
Figure