Deducing Neutron Star Equation of State from Telescope Spectra with Machine-learning-derived Likelihoods

Delaney Farrell, Pierre Baldi, Jordan Ott, A. Ghosh, Andrew W. Steiner, Atharva Kavitkar, Lee Lindblom, D. Whiteson, Fridolin Weber

This paper presents a clever "middle ground" between traditional physics-based modeling and pure "black-box" machine learning to solve one of the toughest problems in astrophysics: figuring out what's inside a neutron star.

TL;DR

Researchers have developed a hybrid approach that uses neural networks to replace "intractable" components of statistical likelihood functions. By embedding machine learning within a traditional Bayesian framework, they can infer a neutron star's Equation of State (EOS) from X-ray spectra with 11.8% better precision than standard regression models while gaining a $10^5$ speedup in simulation.

What Problem Does This Paper Address?

Neutron stars are the universe's ultimate physics labs, packing the mass of the Sun into the size of a city. To understand the dense nuclear matter inside them, scientists look for the Equation of State (EOS)—the relationship between pressure and density.

The challenge is that we can't observe the EOS directly. We observe X-ray spectra through telescopes. The "forward" path is known but difficult:

  1. EOS $\rightarrow$ Mass/Radius ($M, R$): Solved via the Tolman-Oppenheimer-Volkoff (TOV) equations.
  2. $M, R$ + Nuisance Parameters (Distance, Temp) $\rightarrow$ Observed Spectrum: Calculated via complex atmosphere models and telescope response functions.

The "inverse" path (Spectrum $\rightarrow$ EOS) is mathematically "intractable." Traditional tools like XSPEC are too slow to run the millions of simulations needed for robust Bayesian inference, and pure machine learning regression often struggles to handle "nuisance parameters" (like the unknown distance to the star) or provide physically interpretable uncertainties.

Methods

The authors introduce Machine-learning-derived Likelihoods. Instead of training a single network to guess the EOS from a spectrum, they use neural networks to replace only the "slow" or "broken" parts of the Bayesian chain:

  • Model $f$ (The Spectral Emulator): A deep neural network that acts as a high-speed surrogate for the XSPEC simulator. It predicts expected photon counts given $M$, $R$, and nuisance parameters ($\nu$).
  • Model $h_\lambda[M]$ (The TOV Emulator): A network that maps a star's mass to its radius for a given set of EOS parameters ($\lambda$), bypassing the need to solve complex differential equations.

By plugging these fast emulators into a standard likelihood function, the authors can perform Maximum A Posteriori (MAP) estimation and full parameter scans, effectively "marginalizing" (averaging out) the uncertainty of nuisance parameters like distance and interstellar reddening.

Datasets

  • EOS Samples: 10,000 unique EOS variations based on the relativistic mean-field model (GM1L).
  • Simulated Stars: For each EOS, 100 $(M, R)$ pairs were generated.
  • Synthetic Spectra: Generated using the NSATMOS hydrogen atmosphere model and the response matrix of the Chandra X-ray Observatory.
  • Nuisance Scenarios: The models were tested against three levels of prior knowledge: "True" (exact parameters known), "Tight" (small uncertainty), and "Loose" (realistic, high uncertainty).

Key Insights and Ideas

  • ML as a Component, Not a Replacement: The core "aha moment" is that you don't need to learn the entire likelihood from scratch. By keeping the known parts (like Poisson fluctuations in photon counts) and only replacing the intractable mappings with ML, the model remains grounded in physics.
  • Handling Nuisance Parameters: Because the ML emulators are so fast, the researchers can integrate over the uncertainty of distance and temperature. This is something traditional tools are often too computationally expensive to do.
  • Speed vs. Accuracy: The $h_\lambda$ model generates $10^6$ stellar radii in 400ms—a $10^5$ speedup over solving the physical equations, with negligible loss in accuracy.

Key Results

  • Superior Precision: The ML-derived likelihood approach reduced the width of parameter residuals by 11.8% in the most realistic ("loose") scenario compared to pure regression models.
  • Robustness: The model performed essentially as well as XSPEC (the gold standard) even when it didn't have access to the explicit likelihood used to generate the data.
  • Better than Regression: While pure regression (MR_Net) often "blindly" learns the data, the ML-Likelihood approach benefits from the physics encoded in the approximate likelihood structure, leading to much smaller residuals.

Limitations and Future Work

  • Model Dependency: The networks were trained on a specific class of EOS (GM1L). If the real-world EOS contains "exotic" features like strong first-order phase transitions (which cause a sharp jump in the $M-R$ curve), the current $h_\lambda$ model might smooth them over.
  • Atmospheric Assumptions: The current work assumes a hydrogen atmosphere. Future iterations would need to account for different surface compositions (like helium or carbon).
  • Expansion: The authors plan to release these networks as a tool for the community, allowing other researchers to perform fast simulations without needing expert knowledge of XSPEC or TOV solvers.

Summary updated

Abstract

The interiors of neutron stars reach densities and temperatures beyond the limits of terrestrial experiments, providing vital laboratories for probing nuclear physics. While the star's interior is not directly observable, its pressure and density determine the star's macroscopic structure which affects the spectra observed in telescopes. The relationship between the observations and the internal state is complex and partially intractable, presenting difficulties for inference. Previous work has focused on the regression from stellar spectra of parameters describing the internal state. We demonstrate a calculation of the full likelihood of the internal state parameters given observations, accomplished by replacing intractable elements with machine learning models trained on samples of simulated stars. Our machine-learning-derived likelihood allows us to perform maximum a posteriori estimation of the parameters of interest, as well as full scans. We demonstrate the technique by inferring stellar mass and radius from an individual stellar spectrum, as well as equation of state parameters from a set of spectra. Our results are more precise than pure regression models, reducing the width of the parameter residuals by 11.8% in the most realistic scenario. The neural networks will be released as a tool for fast simulation of neutron star properties and observed spectra.
BibTeX
@article{farrell2023deducing,
  author = {Delaney Farrell and Pierre Baldi and Jordan Ott and A. Ghosh and Andrew W. Steiner and Atharva Kavitkar and Lee Lindblom and D. Whiteson and Fridolin Weber},
  title = {{Deducing Neutron Star Equation of State from Telescope Spectra with Machine-learning-derived Likelihoods}},
  journal = {Journal of Cosmology and Astroparticle Physics},
  year = {2023},
  doi = {10.1088/1475-7516/2023/12/022},
}
Figure