Nested Sampling with Normalising Flows for Gravitational-Wave Inference

Michael J. Williams, John Veitch, Chris Messenger
2/22/2021
gr-qcastro-ph.HEastro-ph.IM
diffusion-flow

Official code: mj-will/nessai (50 stars, Python, MIT, PyTorch, last commit 2026-09-22).

Abstract

We present a novel method for sampling iso-likelihood contours in nested sampling using a type of machine learning algorithm known as normalising flows and incorporate it into our sampler nessai. Nessai is designed for problems where computing the likelihood is computationally expensive and therefore the cost of training a normalising flow is offset by the overall reduction in the number of likelihood evaluations.

Show full abstract

We validate our sampler on 128 simulated gravitational wave signals from compact binary coalescence and show that it produces unbiased estimates of the system parameters. Subsequently, we compare our results to those obtained with dynesty and find good agreement between the computed log-evidences whilst requiring 2.07 times fewer likelihood evaluations. We also highlight how the likelihood evaluation can be parallelised in nessai without any modifications to the algorithm. Finally, we outline diagnostics included in nessai and how these can be used to tune the sampler's settings.

View on arXivView PDF

Code Implementations(1)

mj-will/nessaiOfficial100%
PyTorchMIT

nessai: Nested Sampling with Artificial Intelligence

504PythonOct 23, 20202 months agoMIT
bayesian-inferencebilbymachine-learningnested-samplingnormalizing-flows+2 more

Similar Papers

Cite this paper

@article{williams2021nested,
  title  = {Nested Sampling with Normalising Flows for Gravitational-Wave Inference},
  author = {Michael J. Williams and John Veitch and Chris Messenger},
  year   = {2021},
  eprint = {2102.11056},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.11056}
}

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

Discussion