Skip to main content
QUICK REVIEW

[Paper Review] Field Level Neural Network Emulator for Cosmological N-body Simulations

Drew Jamieson, Yin Li|arXiv (Cornell University)|Jun 9, 2022
Astronomy and Astrophysical ResearchPhysics and Astronomy6 citations
TL;DR

This paper introduces a differentiable, field-level neural network emulator for cosmological N-body simulations that accurately predicts nonlinear structure formation across diverse $Ω_{\mathrm{m}}$ cosmologies. By using style-based convolutional networks to model particle displacements and velocities from linear initial conditions, it achieves sub-percent accuracy down to $k \sim 1\ \mathrm{Mpc}^{-1}\,h$, outperforming COLA and fiducial neural networks while enabling fast, differentiable inference at the field level.

ABSTRACT

We build a field level emulator for cosmic structure formation that is accurate in the nonlinear regime. Our emulator consists of two convolutional neural networks trained to output the nonlinear displacements and velocities of N-body simulation particles based on their linear inputs. Cosmology dependence is encoded in the form of style parameters at each layer of the neural network, enabling the emulator to effectively interpolate the outcomes of structure formation between different flat $Λ$CDM cosmologies over a wide range of background matter densities. The neural network architecture makes the model differentiable by construction, providing a powerful tool for fast field level inference. We test the accuracy of our method by considering several summary statistics, including the density power spectrum with and without redshift space distortions, the displacement power spectrum, the momentum power spectrum, the density bispectrum, halo abundances, and halo profiles with and without redshift space distortions. We compare these statistics from our emulator with the full N-body results, the COLA method, and a fiducial neural network with no cosmological dependence. We find our emulator gives accurate results down to scales of $k \sim 1\ \mathrm{Mpc}^{-1}\, h$, representing a considerable improvement over both COLA and the fiducial neural network. We also demonstrate that our emulator generalizes well to initial conditions containing primordial non-Gaussianity, without the need for any additional style parameters or retraining.

Motivation & Objective

  • To develop a fast, differentiable, and accurate field-level emulator for cosmological N-body simulations that captures the full nonlinear evolution of large-scale structure.
  • To overcome the limitations of traditional summary statistics, which compress data and lose information, by enabling full-field inference without data reduction.
  • To incorporate cosmological parameter dependence (specifically $\Omega_{\mathrm{m}}$) directly into the neural network architecture via style modulation, enabling interpolation across cosmologies without retraining.
  • To achieve high accuracy in the nonlinear regime ($k \sim 1\ \mathrm{Mpc}^{-1}\,h$) while maintaining computational efficiency and differentiability for downstream inference tasks.
  • To demonstrate generalization to non-Gaussian initial conditions without additional fine-tuning or retraining.

Proposed method

  • The emulator uses two separate 3D U-Net-like convolutional neural networks to predict particle displacements and velocities from linear initial density fields.
  • Cosmological dependence on $\Omega_{\mathrm{m}}$ is encoded via style modulation: learned style vectors modulate convolutional kernel weights at each layer, enabling interpolation across cosmologies.
  • The displacement network is trained with a combined loss: $\log L_{\delta} + \lambda \log L_{\mathbf{\Psi}}$, where $L_{\delta}$ is MSE on particle density (via CIC assignment), and $L_{\mathbf{\Psi}}$ is MSE on displacement fields, with $\lambda = 3$.
  • The velocity network uses a multi-scale loss: $\log L_{\mathbf{v}(\mathbf{q})} + \log L_{\mathbf{v}(\mathbf{x})} + \log L_{{\mathbf{v}}^{2}(\mathbf{x})}$, where the last term minimizes residual in mass-weighted velocity dispersion to correctly model redshift-space distortions.
  • To handle large $512^3$ simulation fields within GPU memory limits, the model uses $128^3$ crop-based inference with periodic padding to preserve translational equivariance.
  • Efficient data loading is achieved via the map2map framework, which optimizes I/O to prevent GPU starvation during training on 12 TB of data.

Experimental results

Research questions

  • RQ1Can a differentiable neural network emulator accurately predict nonlinear large-scale structure formation across a range of cosmological parameters without relying on summary statistics?
  • RQ2How well can a field-level emulator reproduce key cosmological statistics such as power spectra, bispectra, halo abundances, and redshift-space distortions?
  • RQ3Can the emulator generalize to initial conditions with primordial non-Gaussianity without retraining or additional style parameters?
  • RQ4To what extent does incorporating cosmological dependence via style modulation improve generalization and accuracy compared to fiducial neural networks?
  • RQ5What is the minimum scale ($k$) down to which the emulator maintains sub-percent accuracy in the nonlinear regime?

Key findings

  • The emulator achieves sub-percent accuracy in the density power spectrum and displacement power spectrum down to $k \sim 1\ \mathrm{Mpc}^{-1}\,h$, significantly outperforming both the COLA method and a fiducial neural network without cosmological dependence.
  • The model accurately reproduces the Fingers of God effect in redshift-space distortions by using a second-order velocity loss ($L_{{\mathbf{v}}^{2}}$), which minimizes residuals in mass-weighted velocity dispersion.
  • The emulator generalizes well to initial conditions with primordial non-Gaussianity ($f_{\mathrm{NL}} \neq 0$) without any retraining or additional style parameters, indicating robustness to non-Gaussian initial conditions.
  • The differentiable architecture enables fast, field-level inference, supporting likelihood-free inference and parameter constraints with full information content, avoiding data compression losses inherent in summary statistics.
  • The model maintains high accuracy across a wide range of $\Omega_{\mathrm{m}}$ values in flat $\Lambda\mathrm{CDM}$ cosmologies, demonstrating effective interpolation via style-based modulation.
  • Training on 12 TB of data was made feasible through the map2map framework, which optimizes data loading and prevents GPU underutilization, enabling efficient large-scale training on $512^3$ fields.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.