Humble your Overconfident Networks: Unlearning Overfitting via Sequential Monte Carlo Tempered Deep Ensembles

Andrew Millard, Zheng Zhao, Joshua Murphy, Simon MaskellarXiv 2025 · DOI · arXiv

Introduction

Deep neural networks (DNNs) have achieved remarkable success in predictive accuracy but often suffer from poor calibration, exhibiting extreme overconfidence in incorrect predictions. While Bayesian methods offer a principled framework for uncertainty quantification, traditional approaches like Sequential Monte Carlo (SMC) struggle to scale to the high-dimensional parameter spaces of modern architectures. This paper introduces SMCSGHMC, a scalable Bayesian framework that transforms pretrained, overconfident networks into well-calibrated ensembles through a post-training refinement process.

Methodology: Bridging SMC and Deep Learning

The proposed method addresses the scalability of SMC by integrating a simplified Stochastic Gradient Hamiltonian Monte Carlo (SGHMC) proposal mechanism. The framework operates in three distinct stages:

  1. Pretraining with SGD: The process begins with a standard model or ensemble trained via Stochastic Gradient Descent (SGD) to find a high-performing region of the weight space.
  2. Warm-up Sampling: Pretrained weights initialize an SMC sampler, allowing a population of "particles" (model weights) to explore the local posterior landscape.
  3. Posterior Sampling: The sampler collects diverse weight configurations to form a non-parametric weighted ensemble.

Technical Innovations

To ensure stability and diversity in high-dimensional spaces, the authors employ the Cold Posterior Trick, using a constant temperature $T$ proportional to the dataset size $|D|$. This flattens the likelihood surface, preventing "particle degeneracy" where a single particle dominates the ensemble. Furthermore, the use of entropy-preserving SGHMC proposals—omitting standard noise and friction terms—simplifies implementation while maintaining effective exploration.

Synthetic multimodal data experiment demonstrating the sampler's ability to capture all 25 modes of a Gaussian Mixture Model.

Experimental Evaluation

The authors evaluated SMCSGHMC across synthetic benchmarks and large-scale image classification tasks, including MNIST, FashionMNIST, CIFAR-10, and CIFAR-100. A key synthetic test involved a 25-mode Gaussian Mixture Model (GMM), where the sampler successfully identified multiple "peaks," demonstrating its flexibility compared to Gaussian-assumption methods like SWAG.

Key Results and Insights

The most significant finding is the "unlearning" of overfitting. During the SMC sampling phase, the training loss typically increases while validation performance remains stable or improves. This indicates that the sampler moves the model away from sharp, overfitted local minima toward flatter, more robust regions of the weight space.

Superior Calibration

As shown in the results below, SMCSGHMC consistently outperforms standard SGD and competitive Bayesian baselines like Deep Ensembles and SWAG in terms of Expected Calibration Error (ECE).

Comparison of Accuracy, Loss, and ECE across standard image datasets. SMCSGHMC (SMC) shows superior calibration (lower ECE) particularly on complex datasets like CIFAR-100.

On CIFAR-100, SMCSGHMC achieved an ECE of 0.1001, a substantial improvement over Deep Ensembles (0.1411) and SWAG (0.1920). The method also demonstrated robust Out-of-Distribution (OOD) detection, achieving a 97.27% AUROC when detecting SVHN data using a CIFAR-10 model.

Conclusion

SMCSGHMC provides a powerful, model-agnostic refinement step that significantly enhances the reliability of deep learning models. By combining the principled nature of SMC with the scalability of stochastic gradients, it offers a practical path toward "humbling" overconfident networks. Future work will focus on automating stopping criteria and scaling the approach to massive Transformer architectures.

Summary updated

BibTeX
@misc{millard2025humble,
  author = {Andrew Millard and Zheng Zhao and Joshua Murphy and Simon Maskell},
  title = {{Humble your Overconfident Networks: Unlearning Overfitting via Sequential Monte Carlo Tempered Deep Ensembles}},
  year = {2025},
  eprint = {2505.11671},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.11671},
}
Figure