[Paper Review] Do Bayesian Neural Networks Need To Be Fully Stochastic?
This paper challenges the conventional assumption that Bayesian neural networks (BNNs) require full stochasticity across all parameters to achieve expressive uncertainty quantification. It proves that partially stochastic networks—with as few as $ n $ stochastic biases—are universal probabilistic predictors, and empirically demonstrates across four inference methods and eight datasets that such networks match or outperform fully stochastic BNNs in predictive performance while reducing memory and training costs.
We investigate the benefit of treating all the parameters in a Bayesian neural network stochastically and find compelling theoretical and empirical evidence that this standard construction may be unnecessary. To this end, we prove that expressive predictive distributions require only small amounts of stochasticity. In particular, partially stochastic networks with only $n$ stochastic biases are universal probabilistic predictors for $n$-dimensional predictive problems. In empirical investigations, we find no systematic benefit of full stochasticity across four different inference modalities and eight datasets; partially stochastic networks can match and sometimes even outperform fully stochastic networks, despite their reduced memory costs.
Motivation & Objective
- To investigate whether full stochasticity in Bayesian neural networks is truly necessary for expressive and accurate uncertainty quantification.
- To challenge the prevailing assumption that fully stochastic BNNs are more principled and effective than partially stochastic alternatives.
- To evaluate whether partially stochastic networks can achieve comparable or better predictive performance than fully stochastic BNNs across diverse inference methods and datasets.
- To establish theoretical and empirical foundations for partially stochastic BNNs as a viable, efficient, and equally principled alternative to full stochasticity.
Proposed method
- Prove that partially stochastic networks with only $ n $ stochastic biases are universal conditional distribution approximators (UCDAs), capable of approximating any continuous conditional distribution arbitrarily well.
- Use theoretical analysis to show that finite-width, bounded-variance fully stochastic layers can degrade input information, undermining expressivity.
- Apply four inference modalities—Hamiltonian Monte Carlo, SWAG, variational inference with Flipout, and mean-field variational inference—across eight datasets to compare predictive performance.
- Train and evaluate partially stochastic networks where only selected layers or biases are stochastic, while others are fixed or deterministically optimized.
- Use negative log likelihood (NLL), expected calibration error (ECE), and accuracy as evaluation metrics across multiple random seeds to ensure robustness.
- Systematically vary stochastic configurations (e.g., first layer only, last layer only, bottleneck layers) to identify high-performing partial stochastic setups.
Experimental results
Research questions
- RQ1Is full stochasticity in Bayesian neural networks necessary for expressive predictive distributions?
- RQ2Can partially stochastic BNNs achieve universal approximation of conditional distributions?
- RQ3Does full stochasticity systematically improve predictive performance across diverse inference methods and datasets?
- RQ4Can partially stochastic networks outperform fully stochastic networks in terms of NLL, calibration, and efficiency?
- RQ5What are the optimal configurations of stochastic parameters that maximize performance while minimizing computational cost?
Key findings
- Partially stochastic Bayesian neural networks with only $ n $ stochastic biases are universal conditional distribution approximators, proving that full stochasticity is not required for expressivity.
- In empirical evaluations, partially stochastic networks matched or outperformed fully stochastic networks across four inference modalities and eight datasets, including CIFAR-10 and CIFAR-10-C.
- On average, partially stochastic networks achieved lower negative log likelihood (NLL) and expected calibration error (ECE) than fully stochastic counterparts, indicating better uncertainty calibration.
- The best-performing partially stochastic configuration varied by inference modality, suggesting that optimal design depends on the inference scheme used.
- Despite reduced memory and faster training (e.g., ~7× faster with first-layer-only stochasticity), partially stochastic networks maintained or improved predictive performance.
- Even state-of-the-art inference methods like Hamiltonian Monte Carlo and SWAG showed no systematic benefit from full stochasticity, with partially stochastic variants often yielding superior or comparable results.
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.