English

PyBird-JAX: Accelerated inference in large-scale structure with model-independent emulation of one-loop galaxy power spectra

Cosmology and Nongalactic Astrophysics 2026-03-09 v2 Instrumentation and Methods for Astrophysics

Abstract

We present PyBird-JAX\texttt{PyBird-JAX}, a differentiable, JAX\texttt{JAX}-based implementation of PyBird\texttt{PyBird}, using internal neural network emulators to accelerate computationally costly operations for rapid large-scale structure (LSS) analysis. PyBird-JAX\texttt{PyBird-JAX} computes one-loop EFTofLSS predictions for redshift-space galaxy power spectrum multipoles in 1.2 ms on a CPU and 0.2 ms on a GPU, achieving 3-4 orders of magnitude speed-up over PyBird\texttt{PyBird}. The emulators take a compact spline-based representation of the input linear power spectrum P(k)P(k) as feature vectors, making the approach applicable to a wide range of cosmological models. We rigorously validate its accuracy against large-volume simulations and on BOSS data, including cosmologies not explicitly represented in the training set. Leveraging automatic differentiation, PyBird-JAX\texttt{PyBird-JAX} supports Fisher forecasting, Taylor expansion of model predictions, gradient-based searches, and vectorised ensemble sampling. Interfaced with a variety of samplers and Boltzmann solvers, PyBird-JAX\texttt{PyBird-JAX} provides a high-performance, end-to-end inference pipeline. Combined with a symbolic-P(k)P(k) generator, a typical Stage-4 LSS MCMC converges in minutes on a GPU. Our results demonstrate that PyBird-JAX\texttt{PyBird-JAX} delivers the precision and speed required for upcoming LSS surveys, opening the door to accelerated cosmological inference with minimal accuracy loss and no pretraining. In a companion paper [1], we put PyBird-JAX\texttt{PyBird-JAX} to use in achieving LSS marginalised constraints free from volume projection effects through non-flat measures.

Keywords

Cite

@article{arxiv.2507.20990,
  title  = {PyBird-JAX: Accelerated inference in large-scale structure with model-independent emulation of one-loop galaxy power spectra},
  author = {Alexander Reeves and Pierre Zhang and Henry Zheng},
  journal= {arXiv preprint arXiv:2507.20990},
  year   = {2026}
}

Comments

30 + 14 pages, 9 figures, 4 tables, V2: matches version accepted in JCAP. The PyBird-JAX code is available at https://github.com/pierrexyz/pybird