[Paper Review] Infinitely Deep Bayesian Neural Networks with Stochastic Differential Equations
This paper introduces infinitely deep Bayesian neural networks using stochastic differential equations (SDE-BNNs), where weight uncertainty at each infinitesimal layer induces random trajectories in hidden units. By formulating gradient-based variational inference with a novel zero-variance gradient estimator, the method enables arbitrarily expressive approximate posteriors and scalable, memory-efficient training—achieving state-of-the-art performance on MNIST and CIFAR-10 with improved calibration and robustness.
We perform scalable approximate inference in continuous-depth Bayesian neural networks. In this model class, uncertainty about separate weights in each layer gives hidden units that follow a stochastic differential equation. We demonstrate gradient-based stochastic variational inference in this infinite-parameter setting, producing arbitrarily-flexible approximate posteriors. We also derive a novel gradient estimator that approaches zero variance as the approximate posterior over weights approaches the true posterior. This approach brings continuous-depth Bayesian neural nets to a competitive comparison against discrete-depth alternatives, while inheriting the memory-efficient training and tunable precision of Neural ODEs.
Motivation & Objective
- To develop a continuous-depth Bayesian neural network model that combines the benefits of Neural ODEs and Bayesian uncertainty quantification.
- To enable scalable, gradient-based variational inference in infinite-parameter models with arbitrarily expressive approximate posteriors.
- To derive a novel gradient estimator that approaches zero variance as the approximate posterior converges to the true posterior.
- To demonstrate competitive performance on classification tasks while maintaining the memory efficiency and adaptive computation of Neural ODEs.
Proposed method
- Models the limit of infinitely deep Bayesian neural networks as a stochastic differential equation (SDE) governing hidden unit dynamics.
- Parameterizes the drift and diffusion functions of the SDE using deep neural networks to model time-correlated weight uncertainty.
- Applies stochastic variational inference to optimize a variational posterior over the SDE's parameters, maximizing a modified variational lower bound (ELBO).
- Introduces a variance-reduced gradient estimator inspired by the 'sticking the landing' trick, which approaches zero variance in the limit of posterior accuracy.
- Uses black-box adaptive SDE solvers to compute the output layer state, preserving constant memory cost during training.
- Employs parameterization with augmented state dimensions to improve expressivity and enable better posterior approximation.
Experimental results
Research questions
- RQ1Can continuous-depth Bayesian neural networks be constructed such that their posterior approximations are arbitrarily expressive?
- RQ2Can a gradient estimator be designed for infinite-parameter Bayesian models that approaches zero variance as the posterior approximation improves?
- RQ3Can SDE-based Bayesian networks achieve competitive performance on standard benchmarks while maintaining the memory efficiency of Neural ODEs?
- RQ4How does the proposed method compare in calibration and robustness to out-of-distribution data against discrete-depth alternatives?
Key findings
- The SDE-BNN achieved 99.30% ± 0.09 accuracy on MNIST and 88.08% ± 1.25 accuracy on CIFAR-10, outperforming baseline ResNets and other Bayesian models in calibration and robustness.
- The SDE-BNN with the 'sticking the landing' (STL) gradient estimator improved test accuracy to 96.89% on CIFAR-10 and reduced negative log-likelihood by 75% compared to standard SVI.
- Expected Calibration Error (ECE) was reduced to 6.44 × 10⁻² on CIFAR-10 with the SDE-BNN + STL variant, indicating better-calibrated predictions.
- The model maintained consistent performance across all corruption severity levels in the CIFAR-10C benchmark, demonstrating robustness to distribution shift.
- The proposed gradient estimator reduced variance significantly, enabling stable training even with highly flexible posterior parameterizations.
- Augmented state dimensions allowed the model to learn meaningful representations in non-extraneous dimensions, while ignoring irrelevant or redundant dimensions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.