TL;DR
Standard neural network training is a beautifully choreographed three-step dance: a forward pass, backpropagation, and a weight update. When we move to Bayesian deep learning—where weights are probability distributions rather than single numbers—this choreography usually breaks down into noisy random sampling or disconnected approximations. This paper bridges statistical geometry and neural network architecture to create a unified, sampling-free "Bayesian backpropagation" that upgrades practical optimizers with crisp uncertainty estimates.
What Problem Does This Paper Address?
In ordinary deep learning, backpropagation exploits a network’s layered structure to compute exact gradients cheaply via local operations. In variational Bayesian learning, however, we maintain an uncertain posterior distribution over the weights. Computing expected losses and their gradients across deep, nonlinear networks becomes mathematically intractable.
The Bayesian Learning Rule (BLR) offers an elegant recipe for updating exponential family posteriors (like Gaussians) using natural gradients—which conveniently equal ordinary gradients taken with respect to distribution moments (like means and variances). Yet BLR treats the neural network largely as a black box. In practice, scalable Bayesian optimizers like IVON rely on Monte Carlo sampling (drawing random networks at each step), which injects substantial variance. Meanwhile, deterministic moment-propagation methods exist, but they lack a unified mathematical link connecting forward uncertainty, backward curvature sensitivities, and the global BLR update. The authors ask: What is the true variational Bayesian counterpart to the coupled forward, backward, and update steps of standard deep learning?
Methods
The authors unify two classic mathematical dualities using a constrained Lagrangian formulation:
- Statistical duality (linking an exponential family's natural parameters $\boldsymbol{\lambda}$ and expectation/moment parameters $\boldsymbol{\mu}$).
- Computational duality (linking forward layer states and backward adjoint sensitivities—the mathematical engine behind backpropagation).
Instead of passing single activation vectors forward, the network propagates distributional states $\mathbf{z}_v^n$ (specifically, means and covariances). The Lagrangian enforces two rules: parameter moments must match the posterior, and layer states must obey local moment-propagation rules.
Taking derivatives of this Lagrangian yields a clean three-part loop:
- Forward pass: Propagates activation means and variances analytically through dense/convolutional layers and elementwise GeLU activations.
- Backward pass: Propagates two adjoint channels backward—a gradient channel (mean sensitivity) and a Hessian channel (covariance sensitivity)—using Gaussian-averaged Jacobians and Hessians. To keep the math clean and mirror standard Hessian backpropagation, the authors deliberately apply a stop-gradient to the averaged Jacobian inside the covariance rule.
- Update (Diag-FO IVON): Pulling these sensitivities back to the weights directly yields the exact "loss-site" updates BLR needs. The authors plug these deterministic gradient and diagonal-Hessian estimates directly into the IVON optimizer, replacing its noisy Monte Carlo samples while keeping its momentum and regularization machinery intact.
Datasets
The authors evaluate standard benchmark datasets (no new datasets are introduced):
- Image Classification: MNIST, Fashion-MNIST (using MLPs), and CIFAR-10 (using a CNN).
- Tabular Regression: Eight standard UCI regression benchmarks (including Naval and Yacht, using MLPs).
Key Insights and Ideas
- Two dualities are secretly partners: Lagrange multipliers for statistical moment constraints are posterior natural parameters; Lagrange multipliers for forward layer constraints are backpropagation adjoints. Coupling them turns layerwise backpropagation directly into Bayesian posterior updates.
- Clean recovery of classical deep learning: If you replace the Gaussian-averaged activation derivatives with point evaluations at the mean ("delta-method localization"), the framework's equations collapse identically into standard forward propagation, ordinary backpropagation (BP), and Hessian backpropagation (HBP)—notably without requiring the weight variances to shrink to zero.
Summary of how different choices in the framework recover classical algorithms and connect to existing Bayesian methods. (Note: See Table 1 below for exact mappings.)
- Trading sampling noise for projection bias: Standard IVON gets unbiased gradient/curvature estimates at the cost of high Monte Carlo sampling variance. This structure-aware variant (
Diag-FO) eliminates sampling noise completely, trading it for a small, deterministic approximation bias that speeds up early learning and sharpens calibration.
Key Results
Across classification and regression, replacing IVON's Monte Carlo estimators with deterministic distributional passes (Diag-FO) consistently improves performance, especially uncertainty calibration:
- Faster convergence & better accuracy:
Diag-FOclimbs in accuracy faster during early epochs and edges out standard IVON at epoch 50 across MNIST (98.18% vs. 98.15%), Fashion-MNIST (88.95% vs. 88.48%), and CIFAR-10 (74.62% vs. 74.30%). - Markedly better calibration: Expected Calibration Error (ECE, lower is better) drops by more than half on Fashion-MNIST (0.0105 vs. 0.0258) and nearly half on CIFAR-10 (0.0196 vs. 0.0365), alongside lower Negative Log Predictive Density (NLPD) on all three datasets.
- Regression:
Diag-FOachieves lower mean test RMSE and NLPD than standard IVON across all eight UCI regression benchmarks, with especially strong gains on Naval and Yacht.
Limitations and Future Work
- Diagonal assumptions: To stay fast and scalable, the implementation tracks only diagonal variances, ignoring correlations between weights and across spatial locations in convolutional layers (where shared filters and overlapping receptive fields naturally induce correlations).
- Error accumulation with depth: Because each layer projects non-Gaussian activations back onto a simple Gaussian summary, approximation errors can compound in very deep networks.
- Architectural reach: Analytical moment propagation is straightforward for dense layers, convolutions, and GeLUs. Extending this sampling-free approach to complex modern blocks (like attention or intricate normalizations) will require deriving new, efficient local moment projections and their adjoints—areas where Monte Carlo methods like standard IVON currently remain easier to drop in.
Summary updated