CosmoPower-JAX: high-dimensional Bayesian inference with differentiable cosmological emulators
arXiv:2305.06347 · doi:10.21105/astro.2305.06347
Abstract
We present CosmoPower-JAX, a JAX-based implementation of the CosmoPower framework, which accelerates cosmological inference by building neural emulators of cosmological power spectra. We show how, using the automatic differentiation, batch evaluation and just-in-time compilation features of JAX, and running the inference pipeline on graphics processing units (GPUs), parameter estimation can be accelerated by orders of magnitude with advanced gradient-based sampling techniques. These can be used to efficiently explore high-dimensional parameter spaces, such as those needed for the analysis of next-generation cosmological surveys. We showcase the accuracy and computational efficiency of CosmoPower-JAX on two simulated Stage IV configurations. We first consider a single survey performing a cosmic shear analysis totalling 37 model parameters. We validate the contours derived with CosmoPower-JAX and a Hamiltonian Monte Carlo sampler against those derived with a nested sampler and without emulators, obtaining a speed-up factor of . We then consider a combination of three Stage IV surveys, each performing a joint cosmic shear and galaxy clustering (3x2pt) analysis, for a total of 157 model parameters. Even with such a high-dimensional parameter space, CosmoPower-JAX provides converged posterior contours in 3 days, as opposed to the estimated 6 years required by standard methods. CosmoPower-JAX is fully written in Python, and we make it publicly available to help the cosmological community meet the accuracy requirements set by next-generation surveys.
12 pages, 5 figures. Accepted for publication in The Open Journal of Astrophysics. CosmoPower-JAX is available at https://github.com/dpiras/cosmopower-jax
References in corpus (14)
- Wide-Field InfrarRed Survey Telescope-Astrophysics Focused Telescope Assets WFIRST-AFTA 2015 Report
- PolyChord: nested sampling for cosmology
- Extended Limber Approximation
- Composable Effects for Flexible and Accelerated Probabilistic Programming in NumPyro
- Fast optimal CMB power spectrum estimation with Hamiltonian sampling
- Accelerating astronomical and cosmological inference with Preconditioned Monte Carlo
- Efficient Cosmological Parameter Estimation with Hamiltonian Monte Carlo
- JAX-COSMO: An End-to-End Differentiable and GPU Accelerated Cosmology Library
- CosmicNet II: Emulating extended cosmologies with efficient and accurate neural networks
- Parameter Inference for Weak Lensing using Gaussian Processes and MOPED
- Hamiltonian Monte Carlo reconstruction from peculiar velocities
- Field-level inference of cosmic shear with intrinsic alignments and baryons
- Fast emulation of two-point angular statistics for photometric galaxy surveys
- High-accuracy emulators for observables in CDM, , , and cosmologies
Cited by in corpus (16)
- The CosmoVerse White Paper: Addressing observational tensions in cosmology with systematics and fundamental physics
- SPT-3G D1: CMB temperature and polarization power spectra and cosmology from 2019 and 2020 observations of the SPT-3G Main field
- candl: Cosmic Microwave Background Analysis with a Differentiable Likelihood
- DISCO-DJ I: a differentiable Einstein-Boltzmann solver for cosmology
- LINX: A Fast, Differentiable, and Extensible Big Bang Nucleosynthesis Package
- Cosmic Cartography: Bayesian reconstruction of the galaxy density informed by large-scale structure
- A representation learning approach to probe for dynamical dark energy in matter power spectra
- Reducing nuisance prior sensitivity via non-linear reparameterization, with application to EFT analyses of large-scale structure
- Cosmic Cartography II: completing galaxy catalogs for gravitational-wave cosmology
- jaxspec : a fast and robust Python library for X-ray spectral fitting
- : fast differentiable angular power spectra beyond Limber
- Differentiable Modeling of Planet and Substellar Atmosphere: High-Resolution Emission, Transmission, and Reflection Spectroscopy with ExoJAX2
- Constraining the primordial power spectrum using a differentiable likelihood
- Anchors no more: Using peculiar velocities to constrain and the primordial Universe without calibrators
- Conditional variational autoencoders for cosmological model discrimination and anomaly detection in cosmic microwave background power spectra
- ABCMB: A Python+JAX Package for the Cosmic Microwave Background Power Spectrum