Width improves sampling accuracy in Bayesian neural networks

Width Improves Posterior Sampling in Bayesian Neural Networks

Machine Learning

Summary

When neural networks get wider, training them becomes easier, but it's less clear how this affects assessing uncertainty in their predictions. The authors show that making networks wider helps the process of sampling from the network's plausible settings after seeing data, especially under certain math conditions. This means wider networks can better explore possible solutions and give more reliable uncertainty estimates. They also provide mathematical bounds and experiments supporting this improvement as the network width grows much larger than the data size.

What this means in practice

  • For machine learning engineers: Improve uncertainty quantification in classification models by using wider Bayesian neural networks to enhance posterior sampling efficiency.
  • For data scientists in healthcare: Use wider Bayesian neural networks to better capture uncertainties in medical diagnosis tasks, enabling more trustworthy predictions.

Authors

Nalin Tiwary, Meenal Jhajharia, Arindam Banerjee

Abstract

Increasing neural network width has been demonstrated to simplify optimization, but its effect on Bayesian neural network posterior sampling is less understood. We show that width improves the effectiveness of posterior sampling for classification networks with bounded smooth activations and Gaussian priors, under explicit bounds on the prior means. For a network of width $m$ and prior variance $σ^2$, the unrestricted posterior has Poincaré constant at most $σ^2+O(m^{-1/3})$ at fixed data and depth. The global Poincaré bound follows from controlling negative curvature and removing weight restrictions. Exploiting convexity in the output weights yields sharper logarithmic Sobolev inequalities (LSI). With two layers and $n$ observations, the global LSI constant is at most $σ^2+O(n/\sqrt m+n^2/m)$, approaching the prior scale when $m\gg n^2$. For general fixed depth, when $m\gg n^3$, the same conclusion holds on a convex spectral domain with posterior mass tending to one, leaving the output weights and first layer unrestricted. Experiments further support the predicted improvement in sampling with width. These results show that width based overparameterization can improve the geometry governing posterior fluctuations and Langevin relaxation, even as the parameter space grows.