JZ-FMM: GPU-native differentiable N-body simulations with the Fast Multipole Method
Abstract
N-body simulations are an essential tool for modelling the evolution of gravitating systems. Differentiable N-body simulations allow solving complicated reconstruction problems by connecting observations of evolved systems to simple informative priors on their initial conditions. While so far most reconstruction efforts focus on mildly non-linear large scale dynamics, the internal dynamics of galaxies and clusters should exhibit rich information about their formation. The exploration of reconstruction possibilities in this highly non-linear regime naturally requires highly performant differentiable N-body simulations with small scale forces. Here, we present JZ-FMM, a GPU-native differentiable implementation of the fast multipole method for N-body simulations. We show that the GPU oriented design of tree structure, dual tree traversal and multipole translation operators improves performance over established CPU-native and hybrid N-body codes by notably more than an order of magnitude. Further, we show that gradients can be evaluated efficiently and accurately so that JZ-FMM can be used as an essential building block in future field-level reconstruction efforts. We apply the new code to the reconstruction problem of a tidally stripped satellite to show that deeply non-linear problems can indeed be solved efficiently with simulation gradients, although appropriate care must be taken to navigate the complicated optimization landscape.
Create a lesson
Metadata
- Categories
- astro-ph.CO, astro-ph.GA, physics.comp-ph
- Comments
- 19 pages, 15 figures, 1 table. Code available at https://github.com/jstuecker/jzfmm
Related papers
Cosmological N-Body Simulations of Dissipative Self-Interacting Dark Matter
Shared title terminologyastro-ph.COYash Koushal, Arka Banerjee, Susmita Adhikari
Enhanced spatial resolution and performance for N-body simulation of self-interacting dark matter
Shared title terminologyastro-ph.COMoritz S. Fischer
Merlin: Fast and flexible 3x2pt cosmology with simulation-based inference
Shared title terminologyastro-ph.COAlexandra Wernersson, Guillermo Franco-Abellán, Guadalupe Cañas-Herrera
Breaking the H_0-ω_{\rm b}f_d Degeneracy of Fast Radio Bursts with a Calibrated Energy Distribution
Shared title terminologyastro-ph.COYang Liu, Bao Wang, Wen-Long Zhang et al.
Differentiable forward modelling for field-level inference in Stage IV weak lensing surveys
Shared title terminologyastro-ph.COWassim Kabalan, François Lanusse, Alexandre Boucaud et al.
Fast finite-width CMB B modes from narrow primordial spectra
Shared title terminologyastro-ph.COYuki Inoue