Humble your Overconfident Networks: Unlearning Overfitting via Sequential Monte Carlo Tempered Deep Ensembles
Andrew Millard, Zheng Zhao, Joshua Murphy, Simon Maskell
TL;DR
The paper presents a scalable post‑training Bayesian refinement for pretrained neural networks by embedding Stochastic Gradient Hamiltonian Monte Carlo (SGHMC) proposals into Sequential Monte Carlo (SMC) samplers. This nonparametric posterior sampling approach mitigates overfitting from SGD, improves calibration, and enhances uncertainty quantification for image classification, OOD detection, and transfer learning, outperforming SGD and competitive Bayesian baselines in several metrics. The method leverages mini‑batch gradients for proposal dynamics while using full‑dataset likelihoods for weight updates, and employs tempered or cold posterior targets to avoid particle degeneracy, with a warm‑up and SGD‑initialization strategy to accelerate convergence. Practically, this yields well‑calibrated Bayesian neural networks that better capture predictive uncertainty, translating into more reliable OOD detection and transfer performance, albeit with increased computational cost and sensitivity to long sampling runs.
Abstract
Sequential Monte Carlo (SMC) methods offer a principled approach to Bayesian uncertainty quantification but are traditionally limited by the need for full-batch gradient evaluations. We introduce a scalable variant by incorporating Stochastic Gradient Hamiltonian Monte Carlo (SGHMC) proposals into SMC, enabling efficient mini-batch based sampling. Our resulting SMCSGHMC algorithm outperforms standard stochastic gradient descent (SGD) and deep ensembles across image classification, out-of-distribution (OOD) detection, and transfer learning tasks. We further show that SMCSGHMC mitigates overfitting and improves calibration, providing a flexible, scalable pathway for converting pretrained neural networks into well-calibrated Bayesian models.
