Differentiable Cosmological Simulation with Adjoint Method
arXiv:2211.09815 · doi:10.3847/1538-4365/ad0ce7
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) -body library pmwd (particle-mesh with derivatives). Based on the powerful AD system JAX, pmwd is fully differentiable, and is highly performant on GPUs.
5 figures + 2 tables; repo at https://github.com/eelregit/pmwd ; v2 matches published version with better typesetting
References in corpus (11)
- Array Programming with NumPy
- Fast likelihood-free cosmology with neural density estimators and active learning
- Large-scale dark matter simulations
- ELUCID - Exploring the Local Universe with reConstructed Initial Density field I: Hamiltonian Markov Chain Monte Carlo Method with Particle Mesh Dynamics
- The Cosmological -body Code
- Accurate initial conditions for cosmological N-body simulations: Minimizing truncation and discreteness errors
- FlowPM: Distributed TensorFlow Implementation of the FastPM Cosmological N-body Solver
- Learning effective physical laws for generating cosmological hydrodynamics with Lagrangian Deep Learning
- pmwd: A Differentiable Cosmological Particle-Mesh -body Library
- Hybrid Physical-Neural ODEs for Fast N-body Simulations
- Emulating cosmological growth functions with B-Splines
Cited by in corpus (10)
- Bayesian Inference of Initial Conditions from Non-Linear Cosmic Structures using Field-Level Emulators
- Differentiable and accelerated spherical harmonic and Wigner transforms
- BullFrog: Multi-step perturbation theory as a time integrator for cosmological simulations
- A Differentiable, End-to-End Forward Model for 21 cm Cosmology: Estimating the Foreground, Instrument, and Signal Joint Posterior
- Differentiable Cosmological Hydrodynamics for Field-Level Inference and High Dimensional Parameter Constraints
- Learning the Universe: Learning to Optimize Cosmic Initial Conditions with Non-Differentiable Structure Formation Models
- Introducing cosmosTNG: simulating galaxy formation with constrained realizations of the COSMOS field
- Analytic auto-differentiable CDM cosmography
- A Hamiltonian, post-Born, three-dimensional, on-the-fly ray tracing algorithm for gravitational lensing
- Differentiable Fuzzy Cosmic-Web for Field Level Inference