Learned harmonic mean estimation of the marginal likelihood for multimodal posteriors with flow matching

Alicja Polanska, Jason D. McEwen
1/26/2026
stat.MEastro-ph.IMcs.LG
diffusion-flowbayesian

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{polanska2026learned,
  title  = {Learned harmonic mean estimation of the marginal likelihood for multimodal posteriors with flow matching},
  author = {Alicja Polanska and Jason D. McEwen},
  year   = {2026},
  eprint = {2601.18683},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.18683v1}
}

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/2601.18683.svg)](https://codeofpaper.com/paper/2601.18683)

Discussion