Executive Summary
Modern deep learning models are massive and overparameterized, yet they generalize remarkably well without explicit constraints. This success is largely credited to implicit regularization—the natural tendency of optimizers like Stochastic Gradient Descent (SGD) to find "simple" solutions. However, standard deep networks are notoriously brittle; they are often overconfident and fail spectacularly on out-of-distribution (OOD) data.
Bayesian Deep Learning (BDL) addresses this by learning a distribution over weights rather than a single point estimate, providing better uncertainty quantification. The catch is that standard BDL, such as Variational Inference (VI), requires an explicit prior and a KL-divergence penalty. This explicit regularization often fights against the very implicit biases that make deep learning work, while also being computationally expensive and difficult to scale.
This paper introduces Implicit Bias Variational Inference (IBVI), a method for training Bayesian neural networks that completely ditches the standard explicit KL-divergence penalty. By relying solely on the implicit regularization of SGD, IBVI achieves state-of-the-art robustness and uncertainty quantification with minimal computational overhead and easier hyperparameter tuning.
Methods: Dropping the KL Penalty
The authors propose a deceptively simple shift: train a variational neural network by maximizing only the expected log-likelihood.
In standard Variational Inference, models minimize the Evidence Lower Bound (ELBO), which consists of the expected loss plus a KL-divergence penalty between the variational distribution and a prior. In IBVI, the KL term is dropped entirely.
At first glance, removing the penalty might seem like it would cause the distribution to collapse into a single point, losing all "Bayesian" benefits. However, the authors show that if initialized correctly and optimized with SGD, the optimizer’s own trajectory acts as a regularizer.
Key Technical Components
- Theoretical Characterization: The authors prove that for overparameterized linear models, training with the expected loss via SGD is mathematically equivalent to Generalized Variational Inference using a 2-Wasserstein distance regularizer. This penalizes deviations from the initialization, effectively acting as an "implicit prior."
- Low-Rank Covariance: To maintain computational efficiency, IBVI utilizes Gaussian variational distributions with factorized or low-rank covariances.
- Variational $\mu$P: The paper extends the "Maximal Update Parametrization" ($\mu$P) to the variational setting. This allows researchers to tune hyperparameters (like learning rates) on a tiny proxy model and "transfer" them directly to a massive model without re-tuning.
- Efficiency: By training with a single parameter sample ($M=1$) per step and utilizing momentum, the computational cost is reduced to nearly that of a standard, non-Bayesian network.
Key Insights
- The "Aha" Moment on Variance Collapse: One might expect the variance to drop to zero without a KL term. The paper demonstrates that while uncertainty does collapse on the training data (where the model is certain), it remains high in the "null space" of the data. This means the model stays "honestly ignorant" about data it hasn't seen, which is the exact behavior desired for OOD detection.
- Wasserstein over KL: The implicit bias of SGD aligns with the 2-Wasserstein distance. Unlike the KL divergence, which can be pathologically sensitive in high-dimensional spaces, the Wasserstein distance provides a much more stable inductive bias for weight distributions.
- Initialization is the Prior: In IBVI, the initialization is the prior. By starting the variational distribution at the prior and letting SGD drift, the model receives a "prior-centered" regularization essentially for free.
Empirical Results
The authors evaluated IBVI across a rigorous suite of benchmarks, including standard datasets (MNIST, CIFAR-10, CIFAR-100, TinyImageNet) and their corrupted, out-of-distribution counterparts (e.g., CIFAR-100-C) which feature 15 different types of severe image corruptions.
- Robustness: IBVI consistently outperformed or matched heavyweights like Deep Ensembles and SWAG on corrupted OOD data in terms of both accuracy and calibration.
- Uncertainty Quantification: IBVI achieved significantly lower Expected Calibration Error (ECE) and Negative Log-Likelihood (NLL) compared to standard neural networks.
- Minimal Overhead: The method requires only ~10% more memory than a standard network and boasts nearly identical training times.
- Hyperparameter Transfer: Using their variational $\mu$P scaling, the authors successfully demonstrated that the optimal learning rate remains constant even as model width increases drastically (from 128 to 2048 hidden units).
Limitations and Future Work
While highly effective, IBVI does have limitations. It often requires lower learning rates than standard training to handle the added stochasticity of sampling weights. Additionally, it can take more epochs to become "certain" about critical features during the early stages of training. Finally, the current study focused on Gaussian distributions with specific covariance structures; exploring more complex or non-Gaussian families, as well as highly informative or "learned" priors, remains an exciting open area for future research.
Summary updated