Toward Solving the Galactic Foreground Problem in Gravitational-Wave Astronomy with Machine Learning

Author(s)

Liang, Bo, Deng, Jinwen, Du, Minghui, Song, Hanlin, Fan, Xilong, Xu, Peng, Luo, Ziren, Shao, Lijing

Abstract

Space-borne gravitational-wave detectors will see tens of millions of Galactic binaries. Resolved, they would form a census of the Galaxy's ultracompact binaries unhindered by dust; unresolved, they are the dominant noise up to a few millihertz for massive black-hole binaries, extreme-mass-ratio inspirals and backgrounds from the early Universe. Separating the two requires the number of binaries, which is ill-defined because binaries exist at every amplitude. We make it an observable by defining a source as a binary above a signal-to-noise threshold. Neural flows count the binaries to within one in 99% of 1 microhertz intervals over 0.5-10 mHz, and nested sampling resolves them, even pairs closer than one frequency bin. The data themselves set a limit: a source is resolvable only if its signal pays for its own description, about 20 nats, which biases even ideal trans-dimensional samplers. Like the diffraction limit in imaging, this Bayesian confusion limit is set by the data rather than by the method, and it governs any superposition of weak sources, from radio surveys and pulsar timing arrays to super-resolution microscopy. For future space-borne detectors, the method turns the Galactic foreground into a definite, calibrated count of binaries with an analytic selection function, the basis for global fits and for tests of population models.

Figures

Binaries counted by 13 band flows in 9330 cores of 32 bins ($1~\mu$Hz) over $0.5$--$10$~mHz. (a) Binaries per core with SNR above $\rth=8$ and $10$ in cells of $0.01$--$0.5$~mHz: truth (black) and flows (colored); shading alternates between flows. (b),(c) Truth (line), 95\% interval (shading) and most probable count (dots) per core at $\rth=8$ and $10$, for the densest stretch of 48 consecutive cores in which every count is within $\pm1$ of the truth and every truth inside the interval.
Caption Binaries counted by 13 band flows in 9330 cores of 32 bins ($1~\mu$Hz) over $0.5$--$10$~mHz. (a) Binaries per core with SNR above $\rth=8$ and $10$ in cells of $0.01$--$0.5$~mHz: truth (black) and flows (colored); shading alternates between flows. (b),(c) Truth (line), 95\% interval (shading) and most probable count (dots) per core at $\rth=8$ and $10$, for the densest stretch of 48 consecutive cores in which every count is within $\pm1$ of the truth and every truth inside the interval.
Resolving the densest segments, from the brightest binaries down. (a) Amplitude spectral density of channel $A$, averaged over pairs of bins, over a segment of $4.2$--$4.6$~mHz (middle core shaded): data, residual after Stage~2, ideal residual (data minus every injected binary above SNR~10), noise realization and $\sqrt{S_n}$; triangles mark the binaries above SNR~10, filled when recovered. (b) Middle-core power of the segment with the highest flow count at $\rth=10$ in each of the 13 bands, relative to the noise expectation, with the residual after the first pass (open squares), iterating (filled) and fitting neighbouring segments jointly (purple); on top, recovered over true binaries above SNR~10 and spurious components (red) of the last fit. Where the joint-fit residual falls below the noise realization, it stays above the floor of a correct fit, which absorbs the noise its waveforms can describe (see Supplemental Material).
Caption Resolving the densest segments, from the brightest binaries down. (a) Amplitude spectral density of channel $A$, averaged over pairs of bins, over a segment of $4.2$--$4.6$~mHz (middle core shaded): data, residual after Stage~2, ideal residual (data minus every injected binary above SNR~10), noise realization and $\sqrt{S_n}$; triangles mark the binaries above SNR~10, filled when recovered. (b) Middle-core power of the segment with the highest flow count at $\rth=10$ in each of the 13 bands, relative to the noise expectation, with the residual after the first pass (open squares), iterating (filled) and fitting neighbouring segments jointly (purple); on top, recovered over true binaries above SNR~10 and spurious components (red) of the last fit. Where the joint-fit residual falls below the noise realization, it stays above the floor of a correct fit, which absorbs the noise its waveforms can describe (see Supplemental Material).
Blind against localized nested sampling for four injected binaries (32 parameters), on the same data with the same likelihood: the highest log likelihood found so far against the number of likelihood calls. Two versions of a blind sampler over the full prior (dotted and dashed) stall more than 900 below the injected parameters (gray dotted line); the localized, Fisher-whitened sampler (blue) starts at the joint mode.
Caption Blind against localized nested sampling for four injected binaries (32 parameters), on the same data with the same likelihood: the highest log likelihood found so far against the number of likelihood calls. Two versions of a blind sampler over the full prior (dotted and dashed) stall more than 900 below the injected parameters (gray dotted line); the localized, Fisher-whitened sampler (blue) starts at the joint mode.
Joint posterior of the dense segment of $4.2$--$4.6$~mHz after iterative Stage~2, the largest joint fit of this work: 68\% (filled) and 95\% contours of the 14 fitted components in frequency against (a) ecliptic longitude and (b) the sine of ecliptic latitude (spurious components gray; the frequency widths, 2--8~nHz, are narrower than the lines), with the 15 injected binaries above SNR~10 as crosses, black when recovered and red when missed; middle core shaded. The spectrum of the segment is Fig.~3(a) of the Letter.
Caption Joint posterior of the dense segment of $4.2$--$4.6$~mHz after iterative Stage~2, the largest joint fit of this work: 68\% (filled) and 95\% contours of the 14 fitted components in frequency against (a) ecliptic longitude and (b) the sine of ecliptic latitude (spurious components gray; the frequency widths, 2--8~nHz, are narrower than the lines), with the 15 injected binaries above SNR~10 as crosses, black when recovered and red when missed; middle core shaded. The spectrum of the segment is Fig.~3(a) of the Letter.
Residual spectra of the densest segment of every band after iterative Stage~2, the full band of Fig.~3(b) of the Letter: ASD of channel $A$ over the prior region, averaged over pairs of bins (middle core shaded), of the residual after subtracting every component of the final fit (blue), the ideal residual, the data minus every injected binary above $\rth=10$ (green), and $\sqrt{S_n}$ (dashed). Panel titles give the number $K$ of fitted components, the binaries above 10 recovered over the true ones (middle core) and the spurious components. In the six crowded bands of $3.3$--$6.0$~mHz the joint fit of neighbouring segments lowers the residual further (Fig.~3(b) of the Letter; spectra in Fig.~D17 of the data release).
Caption Residual spectra of the densest segment of every band after iterative Stage~2, the full band of Fig.~3(b) of the Letter: ASD of channel $A$ over the prior region, averaged over pairs of bins (middle core shaded), of the residual after subtracting every component of the final fit (blue), the ideal residual, the data minus every injected binary above $\rth=10$ (green), and $\sqrt{S_n}$ (dashed). Panel titles give the number $K$ of fitted components, the binaries above 10 recovered over the true ones (middle core) and the spurious components. In the six crowded bands of $3.3$--$6.0$~mHz the joint fit of neighbouring segments lowers the residual further (Fig.~3(b) of the Letter; spectra in Fig.~D17 of the data release).
Joint posterior of one of the 15 binaries above SNR~10 found by the joint fit of neighbouring segments at $4.6$--$5.0$~mHz, the best recovered: of the binaries whose eight injected values all lie inside the 95\% intervals, the one with the highest waveform match ($0.998$, injected SNR $22.7$), sampled together with the other seven components of its block. Contours enclose 68\% and 95\% of the posterior; crosses and dashed lines mark the injected values. Over all 15 binaries the matches are $0.819$--$0.999$, and 90 of the 120 injected values lie inside the 95\% intervals. $f_0$ and $\dot f_0$ are anticorrelated ($r=-0.94$) because $f_0$ refers to the start of the observation while the data fix the frequency at mid-observation, $f_0+\dot f_0\Tobs/2$; $\phi_0$ and $\psi$ show their usual degenerate modes.
Caption Joint posterior of one of the 15 binaries above SNR~10 found by the joint fit of neighbouring segments at $4.6$--$5.0$~mHz, the best recovered: of the binaries whose eight injected values all lie inside the 95\% intervals, the one with the highest waveform match ($0.998$, injected SNR $22.7$), sampled together with the other seven components of its block. Contours enclose 68\% and 95\% of the posterior; crosses and dashed lines mark the injected values. Over all 15 binaries the matches are $0.819$--$0.999$, and 90 of the 120 injected values lie inside the 95\% intervals. $f_0$ and $\dot f_0$ are anticorrelated ($r=-0.94$) because $f_0$ refers to the start of the observation while the data fix the frequency at mid-observation, $f_0+\dot f_0\Tobs/2$; $\phi_0$ and $\psi$ show their usual degenerate modes.
References
  • [1] P. A. G. Scheuer, A statistical method for analysing observations of faint radio stars, Math. Proc. Cambridge Philos. Soc. 53, 764 (1957).
  • [2] J. J. Condon, Confusion and flux-density error distributions, Astrophys. J. 188, 279 (1974).
  • [3] P. T. Komiske, E. M. Metodiev, B. Nachman, and M. D. Schwartz, Pileup mitigation with machine learning (PUMML), J. High Energy Phys. 2017 (12), 051.
  • [4] S. J. Holden, S. Uphoff, and A. N. Kapanidis, DAOSTORM: an algorithm for high-density super-resolution microscopy, Nat. Methods 8, 279 (2011).
  • [5] P. Amaro-Seoane et al., Laser interferometer space antenna (2017), arXiv:1702.00786.
  • [6] M. Armano et al., Sub-femto-g free fall for space-based gravitational wave observatories: LISA pathfinder results, Phys. Rev. Lett. 116, 231101 (2016).
  • [7] M. Colpi et al., LISA definition study report (2024), arXiv:2402.07571.
  • [8] W.-R. Hu and Y.-L. Wu, The Taiji program in space for gravitational wave physics and the nature of gravity, Natl. Sci. Rev. 4, 685 (2017).
  • [9] W.-H. Ruan, Z.-K. Guo, R.-G. Cai, and Y.-Z. Zhang, Taiji program: Gravitational-wave sources, Int. J. Mod. Phys. A 35, 2050075 (2020).
  • [10] J. Luo et al., TianQin: a space-borne gravitational wave detector, Class. Quantum Grav. 33, 035010 (2016).
  • [11] LIGO Scientific Collaboration and Virgo Collaboration, Observation of gravitational waves from a binary black hole merger, Phys. Rev. Lett. 116, 061102 (2016).
  • [12] LIGO Scientific, Virgo, and KAGRA Collaborations, GWTC-3: Compact binary coalescences observed by LIGO and Virgo during the second part of the third observing run, Phys. Rev. X 13, 041039 (2023).
  • [13] G. Nelemans, L. R. Yungelson, and S. F. Portegies Zwart, The gravitational wave signal from the Galactic disk population of binaries containing two compact objects, Astron. Astrophys. 375, 890 (2001).
  • [14] V. Korol, E. M. Rossi, P. J. Groot, G. Nelemans, S. Toonen, and A. G. A. Brown, Prospects for detection of detached double white dwarf binaries with Gaia, LSST and LISA, Mon. Not. R. Astron. Soc. 470, 1894 (2017).
  • [15] J. J. Hermes et al., Rapid orbital decay in the 12.75minute binary white dwarf J0651+2844, Astrophys. J. Lett. 757, L21 (2012).
  • [16] K. B. Burdge et al., General relativistic orbital decay in a seven-minute-orbital-period eclipsing binary system, Nature 571, 528 (2019).
  • [17] S. E. Timpano, L. J. Rubbo, and N. J. Cornish, Characterizing the galactic gravitational wave background with LISA, Phys. Rev. D 73, 122001 (2006).
  • [18] T. Robson, N. J. Cornish, and C. Liu, The construction and use of LISA sensitivity curves, Class. Quantum Grav. 36, 105011 (2019).
  • [19] N. Karnesis, S. Babak, M. Pieroni, N. Cornish, and T. Littenberg, Characterization of the stochastic signal originating from compact binary populations as measured by LISA, Phys. Rev. D 104, 043019 (2021).
  • [20] K. Breivik, K. Kremer, M. Bueno, S. L. Larson, S. Coughlin, and V. Kalogera, Characterizing accreting double white dwarf binaries with the Laser Interferometer Space Antenna and Gaia, Astrophys. J. Lett. 854, L1 (2018).
  • [21] G. Fiacco, N. J. Cornish, and H. Yu, Uncovering stealth bias in LISA observations of double white dwarf binaries due to tidal coupling, Phys. Rev. D 110, 083009 (2024).
  • [22] R. F. Webbink, Double white dwarfs as progenitors of R Coronae Borealis stars and type I supernovae, Astrophys. J. 277, 355 (1984).
  • [23] E. Roebber, R. Buscicchio, A. Vecchio, C. J. Moore, A. Klein, V. Korol, S. Toonen, D. Gerosa, J. Goldstein, S. M. Gaebel, and T. E. Woods, Milky way satellites shining bright in gravitational waves, Astrophys. J. Lett. 894, L15 (2020).
  • [24] V. Cardoso, K. Destounis, F. Duque, R. Panosso Macedo, and A. Maselli, Gravitational waves from extreme-massratio systems in astrophysical environments, Phys. Rev. Lett. 129, 241103 (2022).
  • [25] L. Speri, A. Antonelli, L. Sberna, S. Babak, E. Barausse, J. R. Gair, and M. L. Katz, Probing accretion physics with gravitational waves, Phys. Rev. X 13, 021035 (2023).
  • [26] F. Duque, C. F. B. Macedo, R. Vicente, and V. Cardoso, Extreme-mass-ratio inspirals in ultralight dark matter, Phys. Rev. Lett. 133, 121404 (2024).
  • [27] M. R. Adams and N. J. Cornish, Detecting a stochastic gravitational wave background in the presence of a galactic foreground and instrument noise, Phys. Rev. D 89, 022001 (2014).
  • [28] M. Hindmarsh, S. J. Huber, K. Rummukainen, and D. J. Weir, Gravitational waves from the sound of a first order phase transition, Phys. Rev. Lett. 112, 041301 (2014).
  • [29] T. B. Littenberg and N. J. Cornish, Prototype global analysis of LISA data with multiple source types, Phys. Rev. D 107, 063004 (2023).
  • [30] T. B. Littenberg, N. J. Cornish, K. Lackeos, and T. Robson, Global analysis of the gravitational wave signal from Galactic binaries, Phys. Rev. D 101, 123021 (2020).
  • [31] C. Cutler, Angular resolution of the LISA gravitational wave detector, Phys. Rev. D 57, 7089 (1998).
  • [32] N. J. Cornish and S. L. Larson, LISA data analysis: Source identification and subtraction, Phys. Rev. D 67, 103001 (2003).
  • [33] P. J. Green, Reversible jump Markov chain Monte Carlo computation and Bayesian model determination, Biometrika 82, 711 (1995).
  • [34] J. Crowder and N. J. Cornish, Solution to the galactic foreground problem for LISA, Phys. Rev. D 75, 043008 (2007).
  • [35] T. B. Littenberg, Detection pipeline for Galactic binaries in LISA data, Phys. Rev. D 84, 063009 (2011).
  • [36] M. L. Katz, N. Karnesis, N. Korsakova, J. R. Gair, and N. Stergioulas, Efficient GPU-accelerated multisource global fit pipeline for LISA data analysis, Phys. Rev. D 111, 024060 (2025).
  • [37] N. Korsakova, S. Babak, M. L. Katz, N. Karnesis, S. Khukhlaev, and J. R. Gair, Neural density estimation for Galactic binaries in the LISA data analysis, Phys. Rev. D 110, 104069 (2024).
  • [38] K. Lackeos, T. B. Littenberg, N. J. Cornish, and J. I. Thorpe, The LISA Data Challenge Radler analysis and time-dependent ultra-compact binary catalogues, Astron. Astrophys. 678, A123 (2023).
  • [39] S. H. Strub, L. Ferraioli, C. Schmelzbach, S. C. Stähler, and D. Giardini, Global analysis of LISA data with Galactic binaries and massive black hole binaries, Phys. Rev. D 110, 024005 (2024).
  • [40] A. J. K. Chua and M. Vallisneri, Learning Bayesian posteriors with neural networks for gravitational-wave inference, Phys. Rev. Lett. 124, 041102 (2020).
  • [41] 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, Phys. Rev. Lett. 127, 241103 (2021).
  • [42] H. Gabbard, C. Messenger, I. S. Heng, F. Tonolini, and R. Murray-Smith, Bayesian parameter estimation using conditional variational autoencoders for gravitationalwave astronomy, Nat. Phys. 18, 112 (2022).
  • [43] M. Dax, S. R. Green, J. Gair, et al., Real-time inference for binary neutron star mergers using machine learning, Nature 639, 49 (2025).
  • [44] M. Du, B. Liang, H. Wang, P. Xu, Z. Luo, and Y. Wu, Advancing space-based gravitational wave astronomy: Rapid parameter estimation via normalizing flows, Sci. China Phys. Mech. Astron. 67, 230412 (2024).
  • [45] B. Liang et al., Rapid parameter estimation for merging massive black hole binaries using continuous normalizing flows, Mach. Learn.: Sci. Technol. 5, 045040 (2024).
  • [46] J. Langendorff, A. Kolmus, J. Janquart, and C. Van Den Broeck, Normalizing flows as an avenue to studying overlapping gravitational wave signals, Phys. Rev. Lett. 130, 171402 (2023).
  • [47] A. Gulati et al., Conformer: Convolution-augmented transformer for speech recognition, in Proceedings of Interspeech 2020 (2020) p. 5036.
  • [48] C. Durkan, A. Bekasov, I. Murray, and G. Papamakarios, Neural spline flows, in Advances in Neural Information Processing Systems, Vol. 32 (2019).
  • [49] G. Papamakarios, E. Nalisnick, D. J. Rezende, S. Mohamed, and B. Lakshminarayanan, Normalizing flows for probabilistic modeling and inference, J. Mach. Learn. Res. 22, 1 (2021).
  • [50] K. Cranmer, J. Brehmer, and G. Louppe, The frontier of simulation-based inference, Proc. Natl. Acad. Sci. U.S.A. 117, 30055 (2020).
  • [51] P. Jaranowski, A. Królak, and B. F. Schutz, Data analysis of gravitational-wave signals from spinning neutron stars: The signal and its detection, Phys. Rev. D 58, 063001 (1998).
  • [52] S. G. Mallat and Z. Zhang, Matching pursuits with timefrequency dictionaries, IEEE Trans. Signal Process. 41, 3397 (1993).
  • [53] J. Skilling, Nested sampling for general Bayesian computation, Bayesian Anal. 1, 833 (2006).
  • [54] M. J. Williams, J. Veitch, and C. Messenger, Nested sampling with normalizing flows for gravitational-wave inference, Phys. Rev. D 103, 103006 (2021).
  • [55] H. Jeffreys, Theory of Probability, 3rd ed. (Oxford University Press, Oxford, 1961).
  • [56] C. Röver, R. Meyer, and N. Christensen, Modelling coloured residual noise in gravitational-wave signal processing, Class. Quantum Grav. 28, 015010 (2011).
  • [57] M. Tinto and S. V. Dhurandhar, Time-delay interferometry, Living Rev. Relativ. 24, 1 (2021).
  • [58] M. Du et al., Towards realistic detection pipelines of Taiji: New challenges in data analysis and high-fidelity simulations of space-based gravitational wave antenna, Sci. China Phys. Mech. Astron. 69, 249501 (2026), arXiv:2505.16500.
  • [59] D. J. C. MacKay, Information Theory, Inference, and Learning Algorithms (Cambridge University Press, Cambridge, 2003).
  • [60] J. Rissanen, Modeling by shortest data description, Automatica 14, 465 (1978).
  • [61] A. S. Eddington, On a formula for correcting statistics for the effects of a known probable error of observation, Mon. Not. R. Astron. Soc. 73, 359 (1913).
  • [62] M. Ryle and P. A. G. Scheuer, The spatial distribution and the nature of radio stars, Proc. R. Soc. A 230, 448 (1955).
  • [63] G. De Zotti, M. Massardi, M. Negrello, and J. Wall, Radio and millimeter continuum surveys and their astrophysical implications, Astron. Astrophys. Rev. 18, 1 (2010).
  • [64] I. Mandel, W. M. Farr, and J. R. Gair, Extracting distribution parameters from multiple uncertain observations with selection biases, Mon. Not. R. Astron. Soc. 486, 1086 (2019).
  • [65] M. Punturo et al., The Einstein Telescope: a thirdgeneration gravitational wave observatory, Class. Quantum Grav. 27, 194002 (2010).
  • [66] D. Reitze et al., Cosmic Explorer: The U.S. contribution to gravitational-wave astronomy beyond LIGO, Bull. Am. Astron. Soc. 51, 035 (2019), arXiv:1907.04833.
  • [67] A. Samajdar, J. Janquart, C. Van Den Broeck, and T. Dietrich, Biases in parameter estimation from overlapping gravitational-wave signals in the third-generation detector era, Phys. Rev. D 104, 044003 (2021).
  • [68] G. Agazie et al., The NANOGrav 15 yr data set: Evidence for a gravitational-wave background, Astrophys. J. Lett. 951, L8 (2023).
  • [69] H. Xu et al., Searching for the nano-hertz stochastic gravitational wave background with the Chinese Pulsar Timing Array data release I, Res. Astron. Astrophys. 23, 075024 (2023).
  • [70] B. J. Brewer and C. P. Donovan, Fast Bayesian inference for exoplanet discovery in radial velocity data, Mon. Not. R. Astron. Soc. 448, 3206 (2015).
  • [71] S. Cox et al., Bayesian localization microscopy reveals nanoscale podosome dynamics, Nat. Methods 9, 195 (2012). SUPPLEMENTAL MATERIAL Simulated data Detector and noise.—We simulate one year (Tobs = 3.15 × 107 s, sampled every 10 s) of a Taiji-like constellation with Triangle, the simulator of the Taiji Data Challenge II [58], and analyze the time-delay-interferometry channels A and E [57] in the frequency domain, in bins of width 1/Tobs = 31.7 nHz. The noise is Gaussian with a reference spectrum Sn(f) that contains the instrument noise and the confusion noise of the fainter Galactic binaries. Data are whitened by dividing every bin by (SnTobs/4)1/2 , so that the real and imaginary parts of the noise have unit variance. Galactic binaries.—Binaries are drawn from the Galactic-binary catalogue of the Taiji Data Challenge II [58]. Their frequencies follow the catalogue’s source density, histogrammed in bins of 1 µHz; their optimal SNRs are drawn from the SNR distribution of the catalogue binaries in the same band, capped at 100 (median 8–11 below 4.2 mHz, rising to 96 at 8–10 mHz),
  • [71] S. Cox et al., Bayesian localization microscopy reveals nanoscale podosome dynamics, Nat. Methods 9, 195 (2012). SUPPLEMENTAL MATERIAL Simulated data Detector and noise.—We simulate one year (Tobs = 3.15 × 107 s, sampled every 10 s) of a Taiji-like constellation with Triangle, the simulator of the Taiji Data Challenge II [58], and analyze the time-delay-interferometry channels A and E [57] in the frequency domain, in bins of width 1/Tobs = 31.7 nHz. The noise is Gaussian with a reference spectrum Sn(f) that contains the instrument noise and the confusion noise of the fainter Galactic binaries. Data are whitened by dividing every bin by (SnTobs/4)1/2 , so that the real and imaginary parts of the noise have unit variance. Galactic binaries.—Binaries are drawn from the Galactic-binary catalogue of the Taiji Data Challenge II [58]. Their frequencies follow the catalogue’s source density, histogrammed in bins of 1 µHz; their optimal SNRs are drawn from the SNR distribution of the catalogue binaries in the same band, capped at 100 (median 8–11 below 4.2 mHz, rising to 96 at 8–10 mHz),