Probabilistic Backpropagation for Scalable Learning of Bayesian Neural Networks

José Miguel Hernández-Lobato, Ryan P. Adams

TL;DR

Probabilistic Backpropagation (PBP) is a novel algorithm that brings the benefits of Bayesian inference—automatic hyperparameter tuning and robust uncertainty estimates—to deep learning without the massive computational overhead. By propagating distributions instead of point estimates, PBP achieves competitive accuracy significantly faster than traditional Bayesian methods and standard backpropagation.

What Problem Does This Paper Address?

Standard neural networks (NNs) are powerful but "brittle." When trained with classic backpropagation (BP), they provide only point estimates for weights, meaning they cannot tell you how "sure" they are about a prediction. This leads to three major headaches:

  1. Hyperparameter Hell: You have to manually tune learning rates, momentum, and regularization (weight decay) via expensive grid searches or Bayesian optimization.
  2. Overfitting: Without careful regularization, large networks easily memorize noise in small datasets.
  3. Lack of Uncertainty: In safety-critical fields (like medicine or autonomous driving), a model that is "confidently wrong" is dangerous.

Bayesian Neural Networks (BNNs) theoretically solve these issues by treating weights as probability distributions. However, traditional BNN methods like Hamiltonian Monte Carlo (HMC) are too slow for large data, and Variational Inference (VI) often struggles with noisy gradient estimates.

Methods: Enter Probabilistic Backpropagation

The authors introduce Probabilistic Backpropagation (PBP), which adapts the framework of Assumed Density Filtering (ADF) and Expectation Propagation (EP) to neural networks.

  • The Representation: Instead of a single value for each weight, PBP maintains a mean and a variance (a Gaussian distribution) for every connection in the network.
  • The Forward Pass: Instead of passing numbers through the network, PBP propagates the mean and variance of the activations through the layers. For example, when passing through a ReLU activation, the algorithm calculates how the mean and variance of the input distribution are transformed.
  • The Backward Pass: At the output layer, the algorithm computes the marginal log-likelihood of the target. It then uses a process similar to backpropagation to propagate the gradients of this likelihood back through the network to update the means and variances of the weights.
  • Automatic Tuning: Because it is a Bayesian method, PBP automatically infers the optimal values for hyperparameters (like the noise level of the data and the scale of the weights) as it trains, eliminating the need for a separate validation-based search.
Predictive distributions for a toy 1D dataset. PBP captures uncertainty similarly to the gold-standard HMC, unlike standard BP or VI.

Key Insights and Ideas

  • No More Learning Rates: One of the most practical "aha" moments is that PBP doesn't require a learning rate. The "step size" is effectively determined by the current uncertainty in the weights.
  • Sequential Learning: PBP is naturally an online learning algorithm. It processes data points one by one (or in minibatches), updating its beliefs as it goes.
  • Calibrated Uncertainty: Unlike standard NNs, PBP provides a predictive variance. The authors demonstrate this through Active Learning experiments: by picking data points where the model is most uncertain, PBP improves much faster than a model picking points at random.
  • Efficiency: PBP avoids the "noisy gradients" problem of Variational Inference by using closed-form moment matching for the updates, making the training process much more stable.

Key Results

The authors evaluated PBP on ten real-world regression datasets from the UCI repository, ranging from small (Boston Housing) to very large (Year Prediction MSD with over 500,000 samples).

Performance comparison across UCI datasets. PBP achieves competitive or superior accuracy and log-likelihood in a fraction of the time compared to standard BP and VI.
  • Speed: PBP is dramatically faster than standard BP when you account for hyperparameter tuning. For the Boston Housing dataset, PBP took just 13 seconds to reach a solution that took standard BP 677 seconds (which included the time for Bayesian Optimization of hyperparameters).
  • Accuracy: PBP consistently outperformed Variational Inference (VI) in terms of Root Mean Squared Error (RMSE) and Log-Likelihood across almost all datasets. It was competitive with, and often better than, standard BP.
  • Active Learning: In tests on the Yacht and Energy datasets, PBP's uncertainty estimates allowed it to reach peak performance using significantly fewer data points compared to random sampling or other approximation methods.

Limitations and Future Work

  • Gaussian Assumption: PBP assumes a "factored Gaussian" posterior, meaning it treats every weight as independent. This ignores potential correlations between weights that might be important for complex features.
  • Regression Focus: This paper focuses primarily on regression tasks (predicting continuous numbers). While the authors mention it can be extended to classification, the specific math for categorical outputs wasn't the primary focus.
  • Architectural Constraints: The current implementation is tailored for fully connected feed-forward networks. Adapting PBP to more complex architectures like Convolutional Neural Networks (CNNs) or Recurrent Neural Networks (RNNs) remains an exciting challenge for future research.

Summary updated

BibTeX
@inproceedings{hernandezlobato2015probabilistic,
  author = {José Miguel Hernández-Lobato and Ryan P. Adams},
  title = {{Probabilistic Backpropagation for Scalable Learning of Bayesian Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2015},
  url = {https://openreview.net/forum?id=r1bGRqW_-S},
}
Figure