Introducing sapphire: Towards Hybrid Physics-Informed, Data-Driven Modeling of Galaxy Formation
Apr 1, 2026ยท,,,,,,
,,,,,,,,,,,,,ยท
0 min read
Viraj Pandya
Greg L. Bryan
T. Lucas Makinen
Austen Gabrielpillai
Christopher Carr
Drummond B. Fielding
Lars Hernquist
Matthew Ho
Kartheik Iyer
Christian Kragh Jespersen
Sophie Koudmani
Marta Laska
Pablo Lemos
Christopher C. Lovell
Lucia A. Perez
William F., Jr. Robinson
Rachel S. Somerville
Tjitske K. Starkenburg
Richard Stiskalek
Bryan Terrazas
G. Mark Voit
Abstract
Semi-analytic models (SAMs) have been treating galaxy populations as dynamical systems for $\gtrsim50$ years, but their evolution equations remain poorly constrained. We introduce sapphire, a modular, automatically differentiable, GPU-accelerated SAM written in JAX. For the first time, we compute exact Jacobian and Hessian matrices of a galaxy formation SAM, using the Pandya et al. (2023) nonlinear differential equation system as an example. These allow efficient, interpretable local and global sensitivity analyses, which reveal that supernova energy loading is the key astrophysical parameter. We use gradient descent and Hamiltonian Monte Carlo (HMC) to perform comprehensive mock parameter recovery tests. These indicate that the $z=0$ stellar-to-halo-mass relation alone does not contain enough information to infer many astrophysical parameters. Using observations of star-forming galaxies from the MaNGA survey and the Behroozi et al. (2019) empirical model as one baseline, we derive multiple posteriors assuming different combinations of data, including $z=0$ interstellar medium gas fractions and metallicities. The inferred physical parameters suggest that galaxies self-regulate their star formation primarily through preventative rather than ejective feedback, though this remains uncertain due to the lack of satellite galaxies, black holes and multi-phase galactic atmosphere physics. Both Fisher and HMC forecasts demonstrate the potential of sapphire to enable precision inference for galaxy formation and cosmology in a hybrid physics-informed, data-driven way, but more work is needed to expand its library of models and methods. We make sapphire publicly available at https://github.com/virajpandya/sapphire.
Type
Publication
arXiv e-prints