HIcosmo: a differentiable JAX-based framework for cosmology inference
Jing-Zhao Qi, Jing-Fei Zhang, Xin Zhang
astro-ph.CO, gr-qc, hep-ph
Submitted: 2026-06-26
Comments: 29 pages, 8 figures
Code: https://github.com/JingZhaoQi/hicosmo-jax
Project page: https://jingzhaoqi.github.io/hicosmo-jax
License: http://creativecommons.org/licenses/by/4.0/
The gist: The Stage IV cosmological surveys, such as Euclid, LSST, DESI, and SKA, will deliver observational data of unprecedented volume, calling for efficient and reliable inference tools.
Terminology
Abstract
The Stage IV cosmological surveys, such as Euclid, LSST, DESI, and SKA, will deliver observational data of unprecedented volume, calling for efficient and reliable inference tools. This paper presents HIcosmo (High-performance Inference for Cosmology), an open-source JAX-based framework for cosmology inference. In HIcosmo, the forward model, distance integrals, likelihood evaluations, posterior sampling, and Fisher forecasts are all built from JAX primitives, so that gradients and Hessians of the log-likelihood are obtained directly by automatic differentiation, without any finite-difference approximation. The framework implements the CDM, w CDM, w 0 w a CDM, and interacting dark-energy models, and provides likelihoods for Type Ia supernovae (Pantheon+, DES-SN5YR, Union3), baryon acoustic oscillations (DESI DR1/DR2, SDSS), Planck 2018 distance priors, local H 0 measurements, and strong-lensing time delays. Its scope is restricted to background cosmology, with Boltzmann solvers and full perturbation-level likelihoods left to external tools. We validate HIcosmo against the reference implementation of each likelihood and against Cobaya. chi squared values agree to absolute differences of 10-6 - 10-2, and the marginalized constraints from the two codes differ by less than 0.2 sigma in every analysis tested. Leveraging just-in-time compilation and automatic differentiation, HIcosmo achieves about 8.7 times the end-to-end sampling throughput of Cobaya on CPU. As the dataset grows to survey scale, GPU acceleration over CPU reaches up to 20 times. As applications, we present multi-probe CDM joint constraints, dark-energy equation-of-state constraints, and Fisher forecasts for six 21 cm intensity-mapping surveys, including SKA1, MeerKAT, BINGO, Tianlai, and CHIME.
Sources
- Planck 2015 results. XIII. Cosmological parameters
- Planck 2018 results. VI. Cosmological parameters
- Large Magellanic Cloud Cepheid Standards Provide a 1% Foundation for the Determination of the Hubble Constant and Stronger Evidence for Physics Beyond LambdaCDM
- In the Realm of the Hubble tension $-$ a Review of Solutions
- Can the $H_0$ tension be resolved in extensions to $\Lambda$CDM cosmology?
- KiDS-1000 Cosmology: Multi-probe weak gravitational lensing and spectroscopic galaxy clustering constraints
- Planck evidence for a closed Universe and a possible crisis for cosmology
- LSST: from Science Drivers to Reference Design and Anticipated Data Products
- DESI 2024 VI: Cosmological Constraints from the Measurements of Baryon Acoustic Oscillations
- Ultra-compact structure in intermediate-luminosity radio quasars: building a sample of standard cosmological rulers and improving the dark energy constraints up to $z\sim 3$
- Using a multi-messenger and multi-wavelength observational strategy to probe the nature of dark energy through direct measurements of cosmic expansion history
- Measurements of the Hubble constant and cosmic curvature with quasars: ultra-compact radio structure and strong gravitational lensing
- Model-independent measurement of cosmic curvature with the latest $H(z)$ and SNe Ia data: A comprehensive investigation
- Testing the Cosmic Distance Duality Relation Using Strong Gravitational Lensing Time Delays and Type Ia Supernovae
- Impacts of gravitational-wave standard siren observation of the Einstein Telescope on weighing neutrinos in cosmology
- Improving cosmological parameter estimation with the future gravitational-wave standard siren observation from the Einstein Telescope
- Gravitational wave standard sirens and cosmological parameter measurement
- Cosmological parameter estimation with future gravitational wave standard siren observation from the Einstein Telescope
- A preliminary forecast for cosmological parameter estimation with gravitational-wave standard sirens from TianQin
- Prospects for improving cosmological parameter estimation with gravitational-wave standard sirens from Taiji
Related papers
- Angular clustering and bias of photometric quasars in the Kilo-Degree Survey Data Release 4
- A Novel kinetic Sunyaev-Zel'dovich Estimator for Electron-Electron Correlations
- Magnetic fields at the dawn of structure formation I. The CARLA J1510+5958 proto-cluster
- Dark Energy Survey Year 6 Results: Weak Lensing and Galaxy Clustering Cosmological Analysis Framework
- Exploring the Impact of Systematic Bias in Type Ia Supernova Cosmology Across Diverse Dark Energy Parametrizations
- Non-Gaussian Galaxy Stochasticity and the Noise-Field Formulation