Stacking Variational Bayesian Monte Carlo

Francesco Silvestrin, Chengkun Li, Luigi Acerbi
4/7/2025
stat.MLcs.LG

Official code: acerbilab/svbmc (3 stars, BSD-3-Clause, last commit 2025-11-10).

Abstract

Approximate Bayesian inference for models with computationally expensive, black-box likelihoods poses a significant challenge, especially when the posterior distribution is complex. Many inference methods struggle to explore the parameter space efficiently under a limited budget of likelihood evaluations. Variational Bayesian Monte Carlo (VBMC) is a sample-efficient method that addresses this by building a local surrogate model of the log-posterior. However, its conservative exploration strategy, while promoting stability, can cause it to miss important regions of the posterior, such as distinct modes or long tails. In this work, we introduce Stacking Variational Bayesian Monte Carlo (S-VBMC), a method that overcomes this limitation by constructing a robust, global posterior approximation from multiple independent VBMC runs. Our approach merges these local approximations through a principled and inexpensive post-processing step that leverages VBMC's mixture posterior representation and per-component evidence estimates. Crucially, S-VBMC requires no additional likelihood evaluations and is naturally parallelisable, fitting seamlessly into existing inference workflows. We demonstrate its effectiveness on two synthetic problems designed to challenge VBMC's exploration and two real-world applications from computational neuroscience, showing substantial improvements in posterior approximation quality across all cases. Our code is available as a Python package at https://github.com/acerbilab/svbmc.

View on arXivView PDF

Code Implementations(1)

acerbilab/svbmcOfficial100%
BSD-3-Clause

Stacking Variational Bayesian Monte Carlo (S-VBMC) algorithm for combining Variational Bayesian Monte Carlo (VBMC) posteriors to boost inference performance.

30PythonJul 7, 202511 months agoBSD-3-Clause
bayesian-inferencedata-analysismachine-learningmodel-fittingpython+2 more

Similar Papers

Cite this paper

@article{silvestrin2025stacking,
  title  = {Stacking Variational Bayesian Monte Carlo},
  author = {Francesco Silvestrin and Chengkun Li and Luigi Acerbi},
  year   = {2025},
  eprint = {2504.05004},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.05004v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.05004.svg)](https://codeofpaper.com/paper/2504.05004)

Discussion