Representation choice for effective-spin inference: a controlled gravitational-wave case study
Abstract
Energy-based reduced-basis compression and neural architecture jointly affect amortized parameter inference. We examine effective spin in a controlled suite of aligned-spin binary black hole signals with a measured GW150914 H1 noise spectrum. At the pre-specified 99%-energy rank (r=128), the recorded SVD-coefficient MLP has 2.23 times the effective-spin error of a full-resolution dilated CNN across five paired training seeds (seed-level 95% interval 2.07 to 2.39). Recorded 90% credible coverage is lower by 0.080. A full-resolution MLP performs worse than both, highlighting architecture as a confound. These results describe legacy checkpoints trained with unbounded linear posterior coordinates. Corrected bounded and circular coordinates are implemented but the headline experiments have not been regenerated. The present evidence therefore motivates a controlled comparison rather than validating a compression mechanism. We specify matched-architecture projection experiments, converged reference posteriors and independent confirmation data to separate information loss, amortization error and optimization effects.
Keywords: simulation-based inference · gravitational waves · data compression · effective spin · calibration · reproducibility
1Introduction
Neural posterior estimation has made gravitational-wave parameter inference fast enough to run in seconds [1, 2]. Like most amortized simulation-based inference (SBI) pipelines [3], these systems often compress the data before the density estimator sees it. The usual compression is a reduced basis obtained by singular value decomposition (SVD) of a waveform bank [4], truncated at the rank that retains a chosen fraction of template energy.
Energy retention is a sensible way to choose a basis for reconstruction. Inference is a different problem. Parameters differ greatly in how strongly they shape the signal. Effective spin \chi_{\mathrm{eff}} [5], a mass-weighted combination of the aligned spin components, enters the waveform weakly and in partial degeneracy with the mass ratio. A basis that reconstructs 99% of signal energy can still leave the information about such a parameter in directions that a finite downstream network finds hard to use.
This paper reports a preliminary encoder comparison and a validation protocol for separating compression, architecture and amortization effects. The recorded checkpoints and their limitations are identified explicitly so the proposed confirmation experiments can be evaluated against a fixed baseline.
2Experimental setup
2.1Simulation suite
Signals are aligned-spin IMRPhenomD waveforms [6, 7] drawn in a region around GW150914 [8]. They are whitened with an H1 power spectral density estimated from public GWOSC strain [9] and injected into unit Gaussian noise at fixed single-detector signal-to-noise ratio. The inferred parameters are chirp mass, mass ratio, \chi_{\mathrm{eff}}, a spin-difference coordinate, phase and a coalescence-time offset; \chi_{\mathrm{eff}} is the target of the analysis. Generation and training use the same approximant, the detector response is fixed, and noise is idealized after whitening. The experiment isolates a restricted simulation setting; event-level inference requires additional detector, prior and noise controls.
2.2Estimators
All arms use the same flow-matching density head and differ only in how the observation is encoded:
- SVD + MLP. Projection onto the top r right-singular vectors of a training waveform bank, r \in \{16, \ldots, 512\}, followed by a six-layer MLP of width 512.
- Dilated CNN. A full-resolution dilated convolutional encoder with a global receptive field.
- Local CNN. A full-resolution convolutional control with a local receptive field.
- Full-resolution MLP. An MLP on the raw whitened series.
The SVD rank used for the primary comparison was fixed before outcomes were examined: the smallest evaluated rank retaining at least 99% of template energy, r = 128.
2.3Statistical unit
Each arm was trained with five seeds and evaluated on the same 2,000 held-out injections. The inferential unit is the paired training seed. For each seed we compute the mean absolute error of the posterior point estimate for \chi_{\mathrm{eff}} and the empirical coverage of the 90% credible interval, then form paired differences or ratios between arms and a t interval across seeds. These intervals describe training-seed variation conditional on one shared test suite. Generalization over new injections requires additional test suites.
3Results
3.1The primary comparison
Table 1 gives the five-seed results. At the pre-specified rank, the compressed amortizer's \chi_{\mathrm{eff}} error is 0.172 against 0.077 for the dilated CNN. The paired per-seed error ratio has mean 2.23 (95% interval 2.07 to 2.39). Its 90% coverage is 0.839 against 0.919; the paired difference is -0.080 (interval -0.107 to -0.052), and all five paired differences have the same sign.
| Encoder | \chi_{\mathrm{eff}} abs. error | 90% coverage | Status |
|---|---|---|---|
| SVD, r = 128 (99% energy) | 0.172 [0.168, 0.175] | 0.839 [0.798, 0.880] | pre-specified |
| SVD, r = 64 | 0.167 [0.164, 0.169] | 0.839 [0.810, 0.867] | best observed, post hoc |
| Dilated CNN | 0.077 [0.073, 0.082] | 0.919 [0.895, 0.942] | comparator |
| Local CNN | 0.098 [0.065, 0.131] | 0.897 [0.886, 0.908] | architecture control |
| Full-resolution MLP | 0.210 [0.198, 0.223] | 0.807 [0.756, 0.859] | architecture control |
Two controls constrain the interpretation. The full-resolution MLP is worse than every SVD arm, so simply having the raw samples does not help without a suitable inductive bias. The local CNN falls between the two, which suggests the global receptive field of the dilated CNN matters. The best-performing SVD rank, r = 64, was identified after looking at outcomes and is reported only descriptively. Across the sweep, SVD error first falls and then rises with rank.
3.2Interpreting the encoder comparison
SVD coefficient sets are nested: a rank-(r{+}1) representation contains the rank-r coefficients, and a full-rank transform is invertible. The observed U-shaped error curve therefore reflects the tested finite estimator and training procedure. Identifying information loss at a particular truncated rank requires comparing full-data and projected-data reference posteriors. The recorded comparison is:
On the legacy simulation suite, the tested SVD-plus-MLP checkpoints record higher effective-spin error and lower empirical coverage than the tested full-resolution dilated CNN.
Calibration and informativeness require separate measurements. A posterior equal to the prior is perfectly calibrated and uninformative. Coverage must be read together with sharpness and proper scores [10].
4Evidence status and validation requirements
The recorded experiments have statistical, parameter-support and reference-model limitations. Table 2 records the scope of usable evidence and the conditions for a corrected comparison.
| Finding | Effect |
|---|---|
| Pooled tests treated 5 seeds × 2,000 injections as 10,000 independent outcomes | Repeated-measures dependence [11] requires seed-level or crossed analysis. Ranks 256 and 512 include nominal coverage in the seed-level intervals. |
| Arms described as compared at matched validation loss | Best flow losses were about 1.125 (SVD) and 0.965 (CNN), leaving training convergence as a confound. |
| Non-monotone rank sweep | Nested features require interpretation as an estimator learning curve. |
| Posterior support: affine flow output with phase on a line | Mass outside bounded priors and wrong topology for phase; corrected code uses bounded and circular coordinates. Stored artifacts predate it. |
| Population-genetics reference: grid beyond the training prior, wrong nuisance marginalization | Cross-domain result excluded until regenerated. |
| Hodgkin–Huxley reference: time window inconsistent with sample rate; removable singularities mishandled | Cross-domain result excluded until regenerated. |
| Synthetic field controls renormalized every example to identical SNR | Coupled parameters; control excluded. |
| Linear probe selected hyperparameters on test outcomes | Probe result excluded. |
| Real-strain comparison: older checkpoint, H1-only against an H1+L1 public posterior with different priors | Descriptive only; not evidence of correctness. |
The paired-seed analysis measures training variation on a shared injection set. Independent injection sets and validated reference posteriors are needed to extend the inference beyond that conditional comparison.
5Decisive next experiments
The current result cannot separate three quantities: the difference between the exact posteriors p(\theta \mid x) and p(\theta \mid T_r(x)) (compression loss), the gap between the learned and exact compressed-data posteriors (amortization loss), and the effect of architecture and optimization. Three experiments would separate them.
- Identical downstream architecture. Train the same CNN on raw data x, on reconstructed projections V_r V_r^\top x, and on a full-rank reconstruction as an identity check, with data-size, capacity and training-budget curves.
- Reference posteriors. On tractable configurations, converge both the full-data and projected-data posteriors on identical observations, and compare learned posteriors to them with proper scores and distribution distances rather than only point error.
- External validity. Matched-prior multi-detector injections and real events, real off-source noise, an independent approximant hold-out, and a comparison with a current production pipeline including importance-sampling correction [2].
Calibration should be measured with SBC and TARP [12, 13] together with sharpness and out-of-support mass.
6Conclusion
Legacy experiments identify a substantial effective-spin error gap between the tested SVD-plus-MLP and dilated-CNN estimators. The existing comparison combines compression and architecture changes and predates corrected posterior-support training. Matched CNN projection controls and converged reference posteriors provide a direct route to determining which mechanism explains the gap.
Data and code availability
Simulation, training and validation code, frozen result files and readiness-gate configuration are retained in the private project repository. Posterior samples and checkpoints are not redistributed. A public immutable artifact bundle and corrected reruns are required for independent reproduction of the full result; reproduce.py --check validates a locally available bundle.
References
- M. Dax, S. R. Green, J. Gair, J. H. Macke, A. Buonanno, and B. Schölkopf. Real-time gravitational wave science with neural posterior estimation. Physical Review Letters, 127(24):241103, 2021.
- M. Dax, S. R. Green, J. Gair, M. Pürrer, J. Wildberger, J. H. Macke, A. Buonanno, and B. Schölkopf. Neural importance sampling for rapid and reliable gravitational-wave inference. Physical Review Letters, 130(17):171403, 2023.
- K. Cranmer, J. Brehmer, and G. Louppe. The frontier of simulation-based inference. Proceedings of the National Academy of Sciences, 117(48):30055–30062, 2020.
- S. E. Field, C. R. Galley, J. S. Hesthaven, J. Kaye, and M. Tiglio. Fast prediction and evaluation of gravitational waveforms using surrogate models. Physical Review X, 4(3):031006, 2014.
- P. Ajith, M. Hannam, S. Husa, et al. Inspiral-merger-ringdown waveforms for black-hole binaries with nonprecessing spins. Physical Review Letters, 106(24):241101, 2011.
- S. Husa, S. Khan, M. Hannam, M. Pürrer, F. Ohme, X. Jiménez Forteza, and A. Bohé. Frequency-domain gravitational waves from nonprecessing black-hole binaries. I. New numerical waveforms and anatomy of the signal. Physical Review D, 93(4):044006, 2016.
- S. Khan, S. Husa, M. Hannam, F. Ohme, M. Pürrer, X. Jiménez Forteza, and A. Bohé. Frequency-domain gravitational waves from nonprecessing black-hole binaries. II. A phenomenological model for the advanced detector era. Physical Review D, 93(4):044007, 2016.
- B. P. Abbott et al. (LIGO Scientific and Virgo Collaborations). Observation of gravitational waves from a binary black hole merger. Physical Review Letters, 116(6):061102, 2016.
- R. Abbott et al. (LIGO Scientific and Virgo Collaborations). Open data from the first and second observing runs of Advanced LIGO and Advanced Virgo. SoftwareX, 13:100658, 2021.
- T. Gneiting and A. E. Raftery. Strictly proper scoring rules, prediction, and estimation. Journal of the American Statistical Association, 102(477):359–378, 2007.
- S. H. Hurlbert. Pseudoreplication and the design of ecological field experiments. Ecological Monographs, 54(2):187–211, 1984.
- S. Talts, M. Betancourt, D. Simpson, A. Vehtari, and A. Gelman. Validating Bayesian inference algorithms with simulation-based calibration. arXiv preprint arXiv:1804.06788, 2018.
- P. Lemos, A. Coogan, Y. Hezaveh, and L. Perreault-Levasseur. Sampling-based accuracy testing of posterior estimators for general inference. In Proceedings of the 40th International Conference on Machine Learning, PMLR 202:19256–19273, 2023.