Skip to main content
QUICK REVIEW

[Paper Review] Bayesian evidence estimation from posterior samples with normalizing flows

Rahul Srinivasan, Marco Crisostomi|arXiv (Cornell University)|Apr 18, 2024
Anomaly Detection Techniques and ApplicationsComputer Science3 citations
TL;DR

This paper introduces floZ, a novel normalizing flow-based method to estimate Bayesian evidence and its uncertainty from posterior samples, bypassing the need for re-running expensive sampling methods. It outperforms existing post-processing techniques like k-nearest neighbors in accuracy and robustness, especially in high-dimensional and sharply peaked posteriors, while maintaining compatibility with MCMC and variational inference outputs.

ABSTRACT

We propose a novel method ($floZ$), based on normalizing flows, to estimate the Bayesian evidence (and its numerical uncertainty) from a pre-existing set of samples drawn from the unnormalized posterior distribution. We validate it on distributions whose evidence is known analytically, up to 15 parameter space dimensions, and compare with two state-of-the-art techniques for estimating the evidence: nested sampling (which computes the evidence as its main target) and a $k$-nearest-neighbors technique that produces evidence estimates from posterior samples. Provided representative samples from the target posterior are available, our method is more robust to posterior distributions with sharp features, especially in higher dimensions. For a simple multivariate Gaussian, we demonstrate its accuracy for up to 200 dimensions with $10^5$ posterior samples. $floZ$ has wide applicability, e.g., to estimate evidence from variational inference, Markov Chain Monte Carlo samples, or any other method that delivers samples and their likelihood from the unnormalized posterior density. As a physical application, we use $floZ$ to compute the Bayes factor for the presence of the first overtone in the ringdown signal of the gravitational wave data of GW150914, finding good agreement with nested sampling.

Motivation & Objective

  • To develop a robust, post-processing method for estimating Bayesian evidence from existing posterior samples without re-running costly sampling procedures.
  • To address the challenge of evidence estimation in high-dimensional and sharply peaked posterior distributions where traditional methods fail.
  • To leverage normalizing flows to model the transformation from complex posteriors to simple latent distributions, encoding evidence in the Jacobian determinant.
  • To validate the method on analytically tractable targets up to 15 dimensions and benchmark it against nested sampling and k-NN approaches.
  • To enable efficient evidence computation in applications like gravitational wave astronomy and cosmology where posterior samples are available but evidence is needed for model comparison.

Proposed method

  • The method uses normalizing flows to learn a bijective, differentiable transformation from the complex posterior distribution to a standard normal distribution in latent space.
  • The evidence is computed via the change-of-variables formula, where the log-evidence equals the log-prior density plus the log-Jacobian determinant of the flow, evaluated at the latent variable.
  • A custom loss function is designed to minimize variance in evidence estimates across samples by encouraging consistent density estimates in latent space.
  • The flow is trained on posterior samples drawn from the unnormalized posterior, using a combination of likelihood matching and regularization to ensure accurate volume estimation.
  • The method is validated on multivariate Gaussians, Gaussian mixtures, and Rosenbrock distributions with known analytical evidence up to 15 dimensions.
  • The approach is compared against dynesty (nested sampling) and a k-NN method, demonstrating superior robustness to sharp features and higher-dimensional posteriors.

Experimental results

Research questions

  • RQ1Can normalizing flows be effectively used to estimate Bayesian evidence from pre-existing posterior samples without re-running sampling algorithms?
  • RQ2How does the performance of the proposed method compare to state-of-the-art evidence estimation techniques like k-NN and nested sampling in high-dimensional and complex posteriors?
  • RQ3To what extent does the method remain robust when the posterior exhibits sharp features or high-dimensional concentration of measure?
  • RQ4Can the method reliably estimate numerical uncertainty in the evidence estimate from posterior samples?
  • RQ5In what scenarios does the method outperform existing post-processing techniques, especially when evidence computation is computationally expensive?

Key findings

  • floZ achieves evidence estimation accuracy comparable to nested sampling (e.g., dynesty) on analytical benchmarks up to 15-dimensional posteriors.
  • The method significantly outperforms the k-nearest neighbors technique in terms of accuracy and stability, especially in high-dimensional and sharply peaked posteriors.
  • Evidence estimates from floZ show lower variance across samples due to the regularization in the loss function, improving numerical reliability.
  • The method successfully encodes the Bayesian evidence through the Jacobian determinant of the normalizing flow, enabling direct computation from posterior samples.
  • floZ is applicable to any posterior samples from MCMC, variational inference, or other sampling methods, enabling post-hoc evidence computation.
  • The approach is particularly advantageous in scenarios where likelihood evaluation is expensive, as it avoids the need for additional nested sampling runs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.