English

Differentiable Cosmological Simulation with Adjoint Method

Instrumentation and Methods for Astrophysics 2024-02-13 v2 Cosmology and Nongalactic Astrophysics

Abstract

Rapid advances in deep learning have brought not only myriad powerful neural networks, but also breakthroughs that benefit established scientific research. In particular, automatic differentiation (AD) tools and computational accelerators like GPUs have facilitated forward modeling of the Universe with differentiable simulations. Based on analytic or automatic backpropagation, current differentiable cosmological simulations are limited by memory, and thus are subject to a trade-off between time and space/mass resolution, usually sacrificing both. We present a new approach free of such constraints, using the adjoint method and reverse time integration. It enables larger and more accurate forward modeling at the field level, and will improve gradient based optimization and inference. We implement it in an open-source particle-mesh (PM) NN-body library pmwd (particle-mesh with derivatives). Based on the powerful AD system JAX, pmwd is fully differentiable, and is highly performant on GPUs.

Keywords

Cite

@article{arxiv.2211.09815,
  title  = {Differentiable Cosmological Simulation with Adjoint Method},
  author = {Yin Li and Chirag Modi and Drew Jamieson and Yucheng Zhang and Libin Lu and Yu Feng and François Lanusse and Leslie Greengard},
  journal= {arXiv preprint arXiv:2211.09815},
  year   = {2024}
}

Comments

5 figures + 2 tables; repo at https://github.com/eelregit/pmwd ; v2 matches published version with better typesetting