Bayesian Neural Networks (BNNs) are often considered the gold standard for quantifying uncertainty in deep learning. However, they harbor a well-known practical flaw: when scaled using standard approximation techniques, they frequently underperform simple deterministic networks.
Specifically, when using Mean-Field Variational Inference (MFVI)—a method that approximates the complex posterior distribution of weights as a product of independent Gaussians—the model tends to underfit. As these networks grow wider, they often suffer from posterior collapse, a phenomenon where the learned distribution simply reverts to its starting prior, effectively "forgetting" the training data.
While previous research has documented that this happens, this paper investigates why. The authors demonstrate that invariances (symmetries in the model, such as swapping two neurons in a hidden layer without changing the output) are the primary culprits.
The Root of the Problem: Invariances
To understand this failure, the authors develop a theoretical framework comparing two types of approximations:
- Mean-Field Approximation ($q_0$): The standard, tractable approach that assumes weights are independent and ignores network symmetries.
- Invariance-Abiding Approximation ($q_{mix}$): A sophisticated (but often intractable) approach that explicitly accounts for symmetries by integrating over all weight transformations that leave the likelihood unchanged.
To make the mathematics concrete, the researchers analyze an over-parametrized linear regression model. This model is simple enough to solve analytically but complex enough to exhibit translation invariance (where shifting weights in opposite directions yields the same output). By comparing the two approaches, they derive the "Invariance Gap": the mathematical difference between the Evidence Lower Bound (ELBO) of the standard mean-field approach and the invariance-abiding one.
Key Insights and Ideas
- The Invariance Trap: Symmetries in neural networks create multiple "modes" (peaks) in the true posterior distribution. A single Gaussian used in mean-field inference can only capture one of these modes, missing the broader structure.
- The Gap Isn't Constant: Crucially, the invariance gap in the optimization objective is not a fixed penalty. The authors prove that this gap actually vanishes if the approximation reverts to the prior.
- Perverse Incentives: Because the optimizer's goal is to maximize the ELBO, it faces a dilemma. The "penalty" (invariance gap) for ignoring symmetries is high when the model accurately fits the data, but drops to zero when the model ignores the data. Consequently, the math perversely incentivizes the model to collapse to the prior.
- Width Matters: In their linear model analysis, the authors show that the invariance gap grows linearly with the number of dimensions. This explains why larger, wider networks are paradoxically more prone to underfitting than smaller ones.
Key Results
Through rigorous mathematical proofs and synthetic linear model evaluations, the authors demonstrate the mechanics of this collapse:
- Analytical Proof of Collapse: For the linear model, parameters optimized for a standard mean-field ELBO inevitably lead to prior collapse as the number of dimensions increases.
- Recovery of the True Posterior: Conversely, if the "invariance-abiding" objective is optimized, the true posterior is recovered even in highly over-parametrized settings.
The metrics clearly illustrate this collapse. As dimensions increase, the mean-field approximation's ELBO drops drastically, and its predictive variance climbs until it perfectly matches the prior (the dashed line), indicating that the data has been entirely ignored.
To bridge the gap between theory and practice, the authors extend their linear analysis to BNNs, providing a layer-by-layer iterative framework that could theoretically be used to build better variational approximations immune to this gap.
Limitations and Future Work
The primary limitation of this insight is computational tractability. While the authors successfully identified the invariance gap as the culprit for posterior collapse, calculating this gap for a deep, non-linear neural network is prohibitively expensive. The "invariance-abiding" posterior involves complex mixtures that are notoriously difficult to sample from or optimize directly in high dimensions.
The authors suggest that future work should focus on finding efficient approximations of the invariance gap itself. If researchers can cheaply estimate the "cost" of the mean-field assumption due to symmetries, this correction could be added back into the ELBO, potentially unlocking the true scaling potential of Bayesian Neural Networks.
Summary updated