Abstract
The current and upcoming generations of gravitational wave experiments represent an exciting step forward in terms of detector sensitivity and performance. For example, key upgrades at the LIGO, Virgo and KAGRA facilities will see the next observing run (O4) probe a spatial volume around four times larger than the previous run (O3), and design implementations for e.g. the Einstein Telescope, Cosmic Explorer and LISA experiments are taking shape to explore a wider frequency range and probe cosmic distances. In this context, however, a number of very real data analysis problems face the gravitational wave community. For example, it will be crucial to develop tools and strategies to analyse (amongst other scenarios) signals that arrive coincidentally in detectors, longer signals that are in the presence of non-stationary noise or other shorter transients, as well as noisy, potentially correlated, coherent stochastic backgrounds. With these challenges in mind, we develop peregrine, a new sequential simulation-based inference approach designed to study broad classes of gravitational wave signal. In this work, we describe the method and implementation, before demonstrating its accuracy and robustness through direct comparison with established likelihood-based methods. Specifically, we show that we are able to fully reconstruct the posterior distributions for every parameter of a spinning, precessing compact binary coalescence using one of the most physically detailed and computationally expensive waveform approximants (SEOBNRv4PHM). Crucially, we are able to do this using only 2% of the waveform evaluations that are required in e.g. nested sampling approaches. Finally, we provide some outlook as to how this level of simulation efficiency and flexibility in the statistical analysis could allow peregrine to tackle these current and future gravitational wave data analysis problems.
Introduction
As gravitational wave (GW) detectors like LIGO, Virgo, and KAGRA increase in sensitivity, the field is entering an era of "big data" for the cosmos. We are observing increasingly complex events, such as black hole mergers involving spinning, precessing, and eccentric systems.
Standard Bayesian parameter inference (PI) methods, such as Markov Chain Monte Carlo (MCMC) or Nested Sampling, rely on explicit likelihood functions and often require millions of waveform evaluations to map out multidimensional parameter spaces. As physical models (waveforms) become more sophisticated and computationally expensive, these traditional approaches face significant scaling challenges. Furthermore, future scenarios—including overlapping signals or non-stationary noise—may make defining an explicit likelihood function intractable.
Methodology: Truncated Marginal Neural Ratio Estimation (TMNRE)
To address these challenges, the authors introduce peregrine, an inference library built on the swyft framework. Peregrine utilizes Truncated Marginal Neural Ratio Estimation (TMNRE), a simulation-based inference (SBI) approach that bypasses the need for an explicit likelihood.
The TMNRE process consists of four iterative steps:
- (Re-) Simulate: Parameters are sampled from a (truncated) prior, and data is simulated using a forward model.
- Ratio Estimation: Neural networks are trained to approximate the posterior-to-prior ratio for specific marginal parameters of interest. This simplifies the learning task by targeting 1D and 2D marginals directly.
- Inference: The trained estimators are applied to a specific observation to compute ratios across the prior sample.
- Truncation: Regions with low posterior density are removed, and the process repeats with a refined, truncated prior over several rounds.
By focusing on marginal posteriors rather than the full 15D joint space, Peregrine avoids the "curse of dimensionality" that plagues traditional samplers.
Experimental Setup and Case Studies
Peregrine was evaluated using the SEOBNRv4PHM waveform model, a physically complete and computationally intensive model for spinning, precessing binary black holes. The study focused on two primary mock observations:
- C1 (Low SNR ~20): A quiet signal at 900 Mpc, testing the tool's sensitivity.
- C2 (High SNR ~100): A loud signal at 200 Mpc, providing a stringent test for precision.
Noise was simulated based on the projected sensitivity for LIGO’s O4 observing run. A key technique used during training is "noise shuffling," where new noise realizations are added to the same underlying signal in every training epoch, forcing the network to learn the underlying physics rather than specific noise patterns.
Key Results
Peregrine demonstrates massive efficiency gains over traditional methods:
- Simulation Efficiency: In the low SNR case, Peregrine required only 720,000 simulations, a 98% reduction compared to the 44 million required by standard nested samplers like
dynesty. - Computational Speed: The full analysis was completed in approximately 12 hours, compared to 43 hours for traditional methods on identical hardware.
- Accuracy and Calibration: Results were statistically indistinguishable from traditional methods, as measured by Jensen-Shannon Divergence (JSD). Coverage tests on 2,000 simulations confirmed that Peregrine's reported uncertainties are well-calibrated and trustworthy.
Conclusion and Future Outlook
Peregrine offers a flexible, "likelihood-free" alternative to traditional gravitational wave analysis. While it requires training overhead for each specific event, its simulation efficiency makes it highly scalable for complex waveform models.
Looking forward, Peregrine is uniquely positioned to handle the "overlapping signal" problem expected in next-generation detectors like the Einstein Telescope. By relying only on a forward simulator, it can adapt to non-Gaussian noise and complex instrumental effects that would otherwise break standard likelihood-based codes.
Check out the code: The peregrine library is available on GitHub to support community adoption and further development.
Summary updated