Assumed Density Filtering Methods for Learning Bayesian Neural Networks

Soumya Ghosh, Francesco Maria Delle Fave, Jonathan S. YedidiaAAAI 2016

Abstract

Buoyed by the success of deep multilayer neural networks, there is renewed interest in scalable learning of Bayesian neural networks. Here, we study algorithms that utilize recent advances in Bayesian inference to efficiently learn distributions over network weights. In particular, we focus on recently proposed assumed density filtering based methods for learning Bayesian neural networks – Expectation and Probabilistic backpropagation. Apart from scaling to large datasets, these techniques seamlessly deal with non-differentiable activation functions and provide parameter (learning rate, momentum) free learning. In this paper, we first rigorously compare the two algorithms and in the process develop several extensions, including a version of EBP for continuous regression problems and a PBP variant for binary classification. Next, we extend both algorithms to deal with multiclass classification and count regression problems. On a variety of diverse real world benchmarks, we find our extensions to be effective, achieving results competitive with the state-of-the-art.

Introduction

Deep neural networks are powerful, but they have two major Achilles' heels: they tend to be overconfident (overfitting) and they require a "dark art" of hyperparameter tuning, such as manually selecting learning rates and momentum. Bayesian Neural Networks (BNNs) offer a solution by treating weights as probability distributions rather than single points, naturally providing uncertainty estimates and robustness.

However, traditional Bayesian methods like Markov Chain Monte Carlo do not scale well to large datasets. Recent "Assumed Density Filtering" (ADF) methods, such as Expectation Backpropagation (EBP) and Probabilistic Backpropagation (PBP), were proposed to bridge this gap. This paper unifies and extends these methods to support modern architectures (ReLU activations) and diverse tasks like multiclass classification and count regression, making them a viable, general-purpose alternative to standard backpropagation.

Methodology

The authors build upon Assumed Density Filtering (ADF), an online inference algorithm that updates the distribution of network weights one data point at a time.

PBP vs. EBP

The core difference lies in the approximation. PBP tracks both the mean and variance for every weight, while EBP constrains the variance to one to save memory. A significant contribution of this work is the derivation of mathematical moments required to propagate distributions through Rectified Linear Units (ReLU).

Smoothing Discontinuities

A fascinating property of these methods is that by convolving activations with a Gaussian distribution during the forward pass, they "smooth out" non-differentiable points, such as the kink in a ReLU or the jump in a sign function. This makes the underlying mathematics cleaner and more robust.

The expected value of Sign and ReLU activations under Gaussian distributions with varying variances (tau). As tau increases, the non-differentiable points are smoothed.

Extensions to Multiclass and Count Data

To handle multiclass classification, the authors explore a stochastic approximation using the "reparameterization trick" to compute gradients of the log marginal likelihood. For count regression (e.g., predicting bike rental demand), they utilize a Poisson likelihood, approximating the rate parameter with a Gamma distribution to leverage Gamma-Poisson conjugacy.

Key Results and Insights

The authors evaluated their extensions on various benchmarks, including UCI regression datasets, MNIST for multiclass classification, and real-world bike rental data for count regression.

Top row: Decision boundaries for toy data showing PBP and EBP provide better uncertainty estimates than standard BP. Bottom row: Performance metrics across regression, classification, MNIST, and count data tasks.
  • The Cost of Memory: Tracking weight variance (PBP) significantly improves performance over the memory-efficient version (EBP). PBP achieved an average RMSE of 2.65 across regression tasks, compared to 3.87 for EBP.
  • Parameter-Free Learning: Because these are Bayesian methods, they don't require a manually tuned learning rate. The "step size" is effectively determined by the current uncertainty in the weights.
  • Uncertainty Awareness: On toy datasets, ADF methods are far less likely than standard backpropagation (BP) to make confident, incorrect predictions in regions far away from the training data. As seen in the decision boundary visualizations, BP produces a sharp, overconfident split, while PBP and EBP show a gradual transition reflecting higher uncertainty.
  • Task Performance: On MNIST, the proposed stochastic approximation achieved a test error of ~1.5%, competitive with state-of-the-art Bayesian methods like "Bayes by Backprop." For count data, the specialized Poisson model achieved a significantly higher predictive log-likelihood (-3.21) compared to the common practice of rounding Gaussian regression results (-5.12).

Conclusion

This work demonstrates that ADF-based methods like EBP and PBP are scalable, effective, and largely parameter-free alternatives to standard backpropagation. While they tend to underestimate uncertainty over many epochs due to the nature of the ADF update, they provide a robust framework for BNNs in modern machine learning. Future work includes extending these methods to convolutional and recurrent architectures.

Summary updated

BibTeX
@inproceedings{ghosh2016assumed,
  author = {Soumya Ghosh and Francesco Maria Delle Fave and Jonathan S. Yedidia},
  title = {{Assumed Density Filtering Methods for Learning Bayesian Neural Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2016},
  url = {https://openreview.net/forum?id=BJZ1GyZOWr},
}
Figure