Abstract
Training Bayesian Neural Networks (BNNs) remains a significant challenge due to high-dimensional parameter spaces. Partial BNNs (pBNNs) mitigate this by treating only a subset of parameters as stochastic. This paper introduces Guided Open-Horizon Sequential Monte Carlo (GOHSMC), which improves upon traditional Sequential Monte Carlo (SMC) samplers by incorporating gradient-based Langevin Dynamics into the particle proposal process. Experimental results across six UCI regression benchmarks demonstrate that GOHSMC sets a new state-of-the-art for pBNN performance, particularly as the dimensionality of the stochastic layer increases.
Introduction
Bayesian Neural Networks (BNNs) are valued for their ability to quantify uncertainty, yet their millions of parameters make them notoriously difficult to train. Partial BNNs (pBNNs) offer a practical middle ground by treating only a small subset of parameters—often the first layer—as stochastic, while the remainder are deterministic. Sequential Monte Carlo (SMC) samplers are frequently used for training pBNNs, representing probability distributions as collections of "particles." However, existing methods like Open-Horizon SMC (OHSMC) often rely on "blind" random-walk proposals. As dimensionality grows, these random moves rarely reach high-probability regions, leading to particle degeneracy and inaccurate estimates.
Methods
The proposed Guided Open-Horizon Sequential Monte Carlo (GOHSMC) introduces a guided proposal mechanism using gradient information.
- Gradient-Based Markov Kernels: GOHSMC employs Unadjusted Langevin Dynamics (LD) instead of random walks. By calculating the gradient of the target posterior, the algorithm "pushes" particles toward high-probability regions.
- Tractable Weight Updates: To ensure convergence to the true posterior, the authors implement a specific "backward kernel" (L-kernel) approach, making the necessary weight updates for gradient-based moves computationally feasible.
- Warm-Starting: Building on the OHSMC framework, GOHSMC uses a "warm-start" strategy where the posterior from one training iteration serves as the starting point for the next, enhancing efficiency over methods that restart from scratch.
Experimental Setup
The method was evaluated on six standard UCI regression benchmarks: Red Wine Quality, White Wine Quality, California Housing, Concrete Compressive Strength, Yacht Hydrodynamics, and Naval Propulsion. These datasets provide a range of dimensionalities and complexities to test the scalability of the sampler.
Results
GOHSMC LD was compared against several baselines, including the original OHSMC (Random Walk), Variational Inference (VI), SGHMC, and Stochastic Weight Averaging Gaussian (SWAG).
As shown in the comprehensive results in Table 1, GOHSMC LD achieved the lowest Root Mean Square Error (RMSE) on five of the six datasets. The performance gains were most significant in higher-dimensional stochastic layers, where random-walk methods typically struggle. Furthermore, GOHSMC remained highly competitive in uncertainty calibration metrics, such as Negative Log-Likelihood (NLL) and Continuous Ranked Probability Score (CRPS), often outperforming state-of-the-art methods like SWAG and VI.
Discussion and Future Work
While GOHSMC is more computationally intensive per iteration due to gradient calculations, the higher quality of each particle move results in superior final accuracy. The non-parametric nature of the SMC approach also allows it to capture complex, multi-modal uncertainties that parametric methods like VI might miss.
Future work may explore integrating more advanced gradient-based moves, such as the No-U-Turn Sampler (NUTS) or full Hamiltonian Monte Carlo (HMC), and automating hyperparameter tuning during the warm-up phase.
Summary updated