Real-time gravitational-wave science with neural posterior estimation

Maximilian Dax, Stephen R. Green, Jonathan Gair, Jakob H. Macke, Alessandra Buonanno, Bernhard Schölkopf · OpenReview

Abstract

We demonstrate unprecedented accuracy for rapid gravitational-wave parameter estimation with deep learning. Using neural networks as surrogates for Bayesian posterior distributions, we analyze eight gravitational-wave events from the first LIGO-Virgo Gravitational-Wave Transient Catalog and find very close quantitative agreement with standard inference codes, but with inference times reduced from O(day) to a minute per event. Our networks are trained using simulated data, including an estimate of the detector-noise characteristics near the event. This encodes the signal and noise models within millions of neural-network parameters, and enables inference for any observed data consistent with the training distribution, accounting for noise nonstationarity from event to event. Our algorithm -- called "DINGO" -- sets a new standard in fast-and-accurate inference of physical parameters of detected gravitational-wave events, which should enable real-time data analysis without sacrificing accuracy.

Introduction

The detection of gravitational waves (GWs) by the LIGO and Virgo observatories has opened a new window into the universe. However, extracting physical parameters—such as black hole masses, spins, and sky locations—from the observed strain data remains a significant computational challenge. Traditional Bayesian inference methods, such as Markov Chain Monte Carlo (MCMC), rely on likelihood-based sampling that requires millions of waveform simulations. This process typically takes hours or days per event, creating a bottleneck as detector sensitivity improves and detection rates increase. Rapid parameter estimation is particularly critical for multi-messenger astronomy, where electromagnetic telescopes must be alerted quickly to capture transient signals from mergers.

Methods: The DINGO Framework

To address these challenges, we developed DINGO (Deep INference for Gravitational-wave Observations), a framework based on Neural Posterior Estimation (NPE). Unlike traditional methods that search for a fit, DINGO learns the direct mapping from observed data to the probability distribution of physical parameters.

The DINGO architecture incorporates noise conditioning and group equivariant neural posterior estimation (GNPE) to map strain data to physical parameters.

The architecture leverages several key innovations:

  • Normalizing Flows: DINGO uses normalizing flows to represent complex, high-dimensional posterior distributions.
  • Noise Conditioning: By conditioning the network on the detector's Power Spectral Density (PSD), DINGO accounts for the non-stationary nature of detector noise without requiring retraining for each new event.
  • GNPE (Group Equivariant NPE): This iterative algorithm handles time-translation symmetry by "off-loading" the time-shift parameter, allowing the network to focus on more complex physical correlations.
  • Embedding Network: A residual network (ResNet) compresses high-dimensional strain data into a compact set of 128 features for the flow.

Results and Validation

We validated DINGO using eight binary black hole (BBH) events from the GWTC-1 catalog. The results demonstrate that DINGO achieves accuracy indistinguishable from gold-standard Bayesian codes like LALInference.

Comparison of posterior distributions for component masses ($m_1, m_2$) between DINGO (solid) and LALInference (dashed) for eight GWTC-1 events.

Key performance metrics include:

  • Massive Speedup: Inference time is reduced from approximately 24 hours to just 20 seconds per event.
  • High Fidelity: The mean Jensen-Shannon Divergence (JSD) across all events and parameters was 0.0009 nat, significantly below the 0.002 nat threshold typically used to define indistinguishability.
  • Statistical Consistency: P-P plots generated from 1,000 simulated injections confirmed that the network's predicted credible intervals are statistically well-calibrated.

Discussion and Future Directions

DINGO represents a shift toward amortized inference, where the heavy computational cost is moved to a one-time training phase. By treating detector noise as context, we have overcome a major hurdle in applying deep learning to real-world GW data.

While currently optimized for high-mass BBH mergers using the IMRPhenomPv2 waveform model, future work will expand DINGO's scope. This includes incorporating more complex physics (e.g., higher-order multipoles and precession), extending the framework to binary neutron star signals—which pose greater dimensionality challenges—and addressing non-Gaussian noise artifacts ("glitches") in the training data. DINGO sets a new standard for the real-time analysis required for the next generation of gravitational-wave astronomy.

Summary updated

BibTeX
@misc{dax2021real,
  author = {Maximilian Dax and Stephen R. Green and Jonathan Gair and Jakob H. Macke and Alessandra Buonanno and Bernhard Schölkopf},
  title = {{Real-time gravitational-wave science with neural posterior estimation}},
  year = {2021},
  eprint = {2106.12594},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.12594},
}
Figure