Learned harmonic mean estimation of the marginal likelihood for multimodal posteriors with flow matching
Alicja Polanska, Jason D. McEwen
TL;DR
The paper tackles the challenge of computing the Bayesian evidence $z$ for complex, multimodal posteriors by integrating flow matching-based continuous normalizing flows (CNFs) into the learned harmonic mean estimator. This yields a flexible, simulation-free target density $\varphi(\theta)$ that concentrates within the posterior, producing finite-variance estimates from posterior samples. The authors demonstrate robustness and accuracy on challenging benchmarks, including the Rastrigin function and a 20‑dimensional Gaussian mixture, without hand-tuned base distributions. The approach promises improved, sampling-agnostic model comparison in high-dimensional Bayesian inference and broad applications in physics and cosmology.
Abstract
The marginal likelihood, or Bayesian evidence, is a crucial quantity for Bayesian model comparison but its computation can be challenging for complex models, even in parameters space of moderate dimension. The learned harmonic mean estimator has been shown to provide accurate and robust estimates of the marginal likelihood simply using posterior samples. It is agnostic to the sampling strategy, meaning that the samples can be obtained using any method. This enables marginal likelihood calculation and model comparison with whatever sampling is most suitable for the task. However, the internal density estimators considered previously for the learned harmonic mean can struggle with highly multimodal posteriors. In this work we introduce flow matching-based continuous normalizing flows as a powerful architecture for the internal density estimation of the learned harmonic mean. We demonstrate the ability to handle challenging multimodal posteriors, including an example in 20 parameter dimensions, showcasing the method's ability to handle complex posteriors without the need for fine-tuning or heuristic modifications to the base distribution.
