pith. sign in

arxiv: 2510.05206 · v1 · pith:ZE3M7CR2new · submitted 2025-10-06 · 🌌 astro-ph.CO · astro-ph.IM

DISCO-DJ II: a differentiable particle-mesh code for cosmology

classification 🌌 astro-ph.CO astro-ph.IM
keywords disco-djdifferentiableaccuracycodestepsstructuretimeaccurate
0
0 comments X
read the original abstract

The mildly non-linear regime of cosmic structure formation holds much of the information that upcoming large-scale structure surveys aim to exploit, making fast and accurate predictions on these scales essential. We present the $N$-body module of DISCO-DJ (DIfferentiable Simulations for COsmology - Done with Jax), designed to deliver high-fidelity, GPU-accelerated, and differentiable particle-mesh simulations tailored for cosmological inference. Theory-informed time integrators such as the recently introduced BullFrog method allow for accurate predictions already with few time steps (e.g. $6$ steps for per-cent-level accuracy in terms of the present-day power spectrum at $k \approx 0.2 \, h / \mathrm{Mpc}$ using $N = 512^3$ particles, which takes just a few seconds). To control discreteness effects and achieve high accuracy, the code incorporates a suite of advanced techniques, for example a custom non-uniform FFT implementation for force evaluation. Both forward- and reverse-mode differentiation are supported, with memory requirements independent of the number of time steps; in the reverse case, this is achieved through an adjoint formulation. We extensively study the effect of various numerical parameters on the accuracy. As an application of DISCO-DJ, we perform field-level inference by recovering $\sigma_8$ and the initial conditions from a noisy Gadget matter density field. Coupled with our recently introduced Einstein--Boltzmann solver, the DISCO-DJ ecosystem provides a self-consistent, fully differentiable pipeline for modelling the large-scale structure of the universe. The code is available at https://github.com/cosmo-sims/DISCO-DJ.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 3 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. JZ-Tree: GPU friendly neighbour search and friends-of-friends with dual tree walks in JAX plus CUDA

    cs.DC 2026-04 unverdicted novelty 7.0

    JZ-Tree introduces a flattened Morton plane-based tree hierarchy enabling collaborative dual-tree walks that deliver more than 10x faster exact k-NN search and FoF clustering on GPUs for N greater than 10 million part...

  2. GalSBI: Forward Modelling Galaxy Clustering and Population

    astro-ph.CO 2026-06 unverdicted novelty 6.0

    GalSBI extended with optimal transport subhalo matching and SBI to forward-model galaxy population plus clustering, validated against DES Y3 and HSC data with public code release.

  3. Towards Practical Field-Level Inference for Weak Lensing

    astro-ph.CO 2026-06 unverdicted novelty 6.0

    Field-level inference from weak lensing maps yields significantly tighter cosmological constraints than power-spectrum analysis when using the same forward-modeling pipeline, especially on small scales.