EUVIMEDEUVIMED entdecken
Crossref

JAX-COSMO: An End-to-End Differentiable and GPU Accelerated Cosmology Library

Jean-Eric Campagne, François Lanusse, Joe Zuntz, Alexandre Boucaud, Santiago Casas, Minas Karamanis, David Kirkby, Denise Lanzieri, Austin Peel, Yin Li

The Open Journal of Astrophysics · 28.04.2023 · 6

DOI: 10.21105/astro.2302.05163 ↗

Kurz gefasst

Fachartikel in der Zeitschrift The Open Journal of Astrophysics, erschienen am 28.04.2023. Verfasst von Jean-Eric Campagne und 9 weiteren Autor:innen. Die Arbeit wurde bisher 59-mal zitiert (Crossref).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

We present jax-cosmo, a library for automatically differentiable cosmological theory calculations. It uses the JAX library, which has created a new coding ecosystem, especially in probabilistic programming. As well as batch acceleration, just-in-time compilation, and automatic optimization of code for different hardware modalities (CPU, GPU, TPU), JAX exposes an automatic differentiation (autodiff) mechanism. Thanks to autodiff, jax-cosmo gives access to the derivatives of cosmological likelihoods with respect to any of their parameters, and thus enables a range of powerful Bayesian inference algorithms, otherwise impractical in cosmology, such as Hamiltonian Monte Carlo and Variational Inference. In its initial release, jax-cosmo implements background evolution, linear and non-linear power spectra (using halofit or the Eisenstein and Hu transfer function), as well as angular power spectra with the Limber approximation for galaxy and weak lensing probes, all differentiable with respect to the cosmological parameters and their other inputs. We illustrate how autodiff can be a game-changer for common tasks involving Fisher matrix computations, or full posterior inference with gradient-based techniques. In particular, we show how Fisher matrices are now fast, exact, no longer require any fine tuning, and are themselves differentiable. Finally, using a Dark Energy Survey Year 1 3x2pt analysis as a benchmark, we demonstrate how jax-cosmo can be combined with Probabilistic Programming Languages to perform posterior inference with state-of-the-art algorithms including a No U-Turn Sampler, Automatic Differentiation Variational Inference,and Neural Transport HMC. We further demonstrate that Normalizing Flows using Neural Transport are a promising methodology for model validation in the early stages of analysis.

Zitieren

APA

Campagne, J., Lanusse, F., Zuntz, J., Boucaud, A., Casas, S., Karamanis, M., Kirkby, D., Lanzieri, D., Peel, A., & Li, Y. (2023). JAX-COSMO: An End-to-End Differentiable and GPU Accelerated Cosmology Library. The Open Journal of Astrophysics, 6. https://doi.org/10.21105/astro.2302.05163

Vancouver

Campagne J, Lanusse F, Zuntz J, Boucaud A, Casas S, Karamanis M, et al. JAX-COSMO: An End-to-End Differentiable and GPU Accelerated Cosmology Library. The Open Journal of Astrophysics. 2023;6. doi:10.21105/astro.2302.05163

BibTeX
@article{Campagne2023,
  author = {Campagne, Jean-Eric and Lanusse, François and Zuntz, Joe and Boucaud, Alexandre and Casas, Santiago and Karamanis, Minas and Kirkby, David and Lanzieri, Denise and Peel, Austin and Li, Yin},
  title = {JAX-COSMO: An End-to-End Differentiable and GPU Accelerated Cosmology Library},
  journal = {The Open Journal of Astrophysics},
  year = {2023},
  volume = {6},
  doi = {10.21105/astro.2302.05163}
}
Kostenlos starten →