# Real-time gravitational-wave inference for binary neutron stars using machine learning

arXiv: https://arxiv.org/abs/2407.09602 · HTML: https://mlsanity.com/paper/2407.09602/

## Key facts

- Cited by 21 papers in the map (data through 14 Oct 2026).
- Builds on 16 of its 92 references that are in the map.
- First posted on arXiv 12 Jul 2024.

## Builds on (most cited first, 16 of 16)

- [Deep Residual Learning for Image Recognition](https://mlsanity.com/paper/1512.03385/) (2015)
- [Variational Inference with Normalizing Flows](https://mlsanity.com/paper/1505.05770/) (2015)
- [Neural Spline Flows](https://mlsanity.com/paper/1906.04032/) (2019)
- [The frontier of simulation-based inference](https://mlsanity.com/paper/1911.01429/) (2019)
- [Automatic Posterior Transformation for Likelihood-Free Inference](https://mlsanity.com/paper/1905.07488/) (2019)
- [Flexible statistical inference for mechanistic models of neural dynamics](https://mlsanity.com/paper/1711.01861/) (2017)
- [Flow Matching for Scalable Simulation-Based Inference](https://mlsanity.com/paper/2305.17161/) (2023)
- [Real-time gravitational-wave science with neural posterior estimation](https://mlsanity.com/paper/2106.12594/) (2021)
- [Truncated proposals for scalable and hassle-free simulation-based inference](https://mlsanity.com/paper/2210.04815/) (2022)
- [Bayesian parameter estimation using conditional variational autoencoders for gravitational-wave astronomy](https://mlsanity.com/paper/1909.06296/) (2019)
- [Neural Importance Sampling for Rapid and Reliable Gravitational-Wave Inference](https://mlsanity.com/paper/2210.05686/) (2022)
- [Complete parameter inference for GW150914 using deep learning](https://mlsanity.com/paper/2008.03312/) (2020)
- [Gravitational-wave parameter estimation with autoregressive neural network flows](https://mlsanity.com/paper/2002.07656/) (2020)
- [Lightning-Fast Gravitational Wave Parameter Inference through Neural Amortization](https://mlsanity.com/paper/2010.12931/) (2020)
- [Group equivariant neural posterior estimation](https://mlsanity.com/paper/2111.13139/) (2021)
- [Adapting to noise distribution shifts in flow-based gravitational-wave inference](https://mlsanity.com/paper/2211.08801/) (2022)

## Built on by (most cited first, 21 of 21)

- [Simulation-Based Inference: A Practical Guide](https://mlsanity.com/paper/2508.12939/) (2025)
- [SciTS: Scientific Time Series Understanding and Generation with LLMs](https://mlsanity.com/paper/2510.03255/) (2025)
- [Effortless, Simulation-Efficient Bayesian Inference using Tabular Foundation Models](https://mlsanity.com/paper/2504.17660/) (2025)
- [Towards autonomous quantum physics research using LLM agents with access to intelligent tools](https://mlsanity.com/paper/2511.11752/) (2025)
- [Fast and Reliable Probabilistic Reflectometry Inversion with Prior-Amortized Neural Posterior Estimation](https://mlsanity.com/paper/2407.18648/) (2024)
- [FlowVAT: Normalizing Flow Variational Inference with Affine-Invariant Tempering](https://mlsanity.com/paper/2505.10466/) (2025)
- [Do Diffusion Models Dream of Electric Planes? Discrete and Continuous Simulation-Based Inference for Aircraft Design](https://mlsanity.com/paper/2603.13284/) (2026)
- [An agentic framework for gravitational-wave counterpart association in the multi-messenger era](https://mlsanity.com/paper/2605.10584/) (2026)
- [Learning Individual Reproductive Behavior from Aggregate Fertility Rates via Neural Posterior Estimation](https://mlsanity.com/paper/2506.22607/) (2025)
- [Flexible Gravitational-Wave Parameter Estimation with Transformers](https://mlsanity.com/paper/2512.02968/) (2025)
- [An Introduction to Bayesian and Frequentist Simulation-Based Inference with Machine Learning](https://mlsanity.com/paper/2607.21702/) (2026)
- [Amortized Bayesian Inference on Multilevel Models of Arbitrary Structure](https://mlsanity.com/paper/2609.40024/) (2026)
- [Enhancing the reliability of machine learning for gravitational wave parameter estimation with attention-based models](https://mlsanity.com/paper/2501.10486/) (2025)
- [Recent Advances in Simulation-based Inference for Gravitational Wave Data Analysis](https://mlsanity.com/paper/2507.11192/) (2025)
- [STEP: Scientific Time-Series Encoder Pretraining via Cross-Domain Distillation](https://mlsanity.com/paper/2603.18688/) (2026)
- [Binary Black Hole Parameter Estimation with Hybrid CNN-Transformer Neural Networks](https://mlsanity.com/paper/2606.13941/) (2026)
- [AI-enabled gravitational-waves searches for binary neutron stars at optimal sensitivity](https://mlsanity.com/paper/2607.01372/) (2026)
- [Fast, accurate, and differentiable: a neural-network surrogate for NRSur7dq4 precessing binary black hole waveforms](https://mlsanity.com/paper/2607.24960/) (2026)
- [Simulation-Based Quantum System Inference with Neural Posterior Estimation](https://mlsanity.com/paper/2609.34995/) (2026)
- [High-Dimensional Simulation-Based Inference in Latent Spaces](https://mlsanity.com/paper/2609.37381/) (2026)
- [Machine Learning Meets High-Energy Nuclear Physics: From Pattern Recognition to Physics-Integrated Discovery](https://mlsanity.com/paper/2610.12293/) (2026)

## Abstract (arXiv)

Mergers of binary neutron stars (BNSs) emit signals in both the gravitational-wave (GW) and electromagnetic (EM) spectra. Famously, the 2017 multi-messenger observation of GW170817 led to scientific discoveries across cosmology, nuclear physics, and gravity. Central to these results were the sky localization and distance obtained from GW data, which, in the case of GW170817, helped to identify the associated EM transient, AT 2017gfo, 11 hours after the GW signal. Fast analysis of GW data is critical for directing time-sensitive EM observations; however, due to challenges arising from the length and complexity of signals, it is often necessary to make approximations that sacrifice accuracy. Here, we present a machine learning framework that performs complete BNS inference in just one second without making any such approximations. Our approach enhances multi-messenger observations by providing (i) accurate localization even before the merger; (ii) improved localization precision by ~30% compared to approximate low-latency methods; and (iii) detailed information on luminosity distance, inclination, and masses, which can be used to prioritize expensive telescope time. Additionally, the flexibility and reduced cost of our method open new opportunities for equation-of-state studies. Finally, we demonstrate that our method scales to extremely long signals, up to an hour in length, thus serving as a blueprint for data analysis for next-generation ground- and space-based detectors.
