Introduction
Bayesian Neural Networks (BNNs) are increasingly vital for safety-critical applications due to their ability to provide principled uncertainty estimates. By estimating a posterior distribution over weights rather than a single point estimate, BNNs can signal when they are likely to make incorrect predictions. However, the standard sampling method, Stochastic Gradient Markov Chain Monte Carlo (SGMCMC), often struggles with low sample diversity. Samplers frequently become trapped in local regions of the parameter space, leading to poor functional diversity compared to heuristic methods like Deep Ensembles. This paper introduces Parameter Expanded SGMCMC (PX-SGMCMC), a simple yet effective reparameterization strategy designed to enhance exploration without increasing inference costs.
Methodology: Parameter Expansion
The core innovation of PX-SGMCMC is the decomposition of weight matrices into products of multiple constituent matrices. Specifically, a weight matrix $W$ is reparameterized as: $$W = P_1 \dots P_c V Q_1 \dots Q_d$$ During the sampling process, the individual components ($P, V, Q$) are updated using standard SGMCMC rules. This expansion provides several key benefits:
- Implicit Preconditioning: Updating the components of a product is mathematically equivalent to updating the original weight matrix $W$ with a preconditioner that scales and rotates gradient steps, facilitating the crossing of loss barriers.
- Singular Value Dynamics: The expanded formulation encourages the growth of larger singular values, which effectively increases the step size in significant directions, promoting broader exploration of the landscape.
- Zero Inference Overhead: At the conclusion of training, the expanded matrices are multiplied back into a single matrix $W$. Consequently, the final model maintains the same architecture and inference speed as a standard neural network.
Experimental Results
Mode Exploration and Diversity
In toy experiments using a 25-cluster Mixture of Gaussians, standard SGMCMC (SP) failed to capture the full distribution, often remaining trapped in a small subset of clusters. In contrast, PX-SGMCMC (EP) successfully explored all 25 modes, demonstrating its superior ability to escape local minima.
Benchmarks and Robustness
Rigorous testing on CIFAR-10 and CIFAR-100 showed that PX-SGMCMC significantly improves both accuracy and uncertainty calibration. On CIFAR-10, the method reduced classification error from 13.3% to 12.1% and improved Negative Log-Likelihood (NLL) from 0.422 to 0.388 compared to standard SGHMC. Furthermore, the method demonstrated exceptional performance in Out-of-Distribution (OOD) detection, achieving an AUROC of 0.832 on SVHN data, and showed increased robustness to image corruptions in the CIFAR-10-C benchmark.
Discussion and Conclusion
PX-SGMCMC offers a powerful tool for improving the reliability of BNNs. By leveraging matrix decomposition, it achieves high functional diversity and "Ensemble Ambiguity" scores that rival deep ensembles while maintaining a more rigorous Bayesian framework. While the method requires additional GPU memory during the training phase to store expanded matrices, the lack of inference-time overhead makes it highly practical for real-world deployment. Future work may explore non-linear expansions or automated methods for determining optimal expansion depths per layer.
Summary updated