Field-level Comparison and Robustness Analysis of Cosmological <i>N</i>-body Simulations

Abstract We present the first field-level comparison of cosmological N -body simulations, considering various widely used codes: Abacus, CUBEP 3 M, Enzo, Gadget, Gizmo, PKDGrav, and Ramses. Unlike previous comparisons focused on summary statistics, we conduct a comprehensive field-level analysis: evaluating statistical similarity, quantifying implications for cosmological parameter inference, and identifying the regimes in which simulations are consistent. We begin with a traditional comparison using the power spectrum, cross-correlation coefficient, and visual inspection of the matter field. We follow this with a statistical out-of-distribution (OOD) analysis to quantify distributional differences between simulations, revealing insights not captured by the traditional metrics. We then perform field-level simulation-based inference using convolutional neural networks (CNNs), training on one simulation and testing on others, including a full hydrodynamic simulation for comparison. We identify several causes of OOD behavior and biased inference, finding that resolution effects, such as those arising from adaptive mesh refinement (AMR), have a significant impact. Models trained on non-AMR simulations fail catastrophically when evaluated on AMR simulations, introducing larger biases than those from hydrodynamic effects. Differences in resolution, even when using the same N -body code, likewise lead to biased inference. We attribute these failures to a CNN’s sensitivity to small-scale fluctuations, in particular in voids and filaments, and demonstrate that appropriate smoothing brings the simulations into statistical agreement. Our findings motivate the need for careful data filtering and the use of field-level OOD metrics, such as PQMass, to ensure robust inference.

Authors

Publication Details

Journal
The Astrophysical Journal
Published
2025-08-18
DOI
https://doi.org/10.3847/1538-4357/adef4e
Citations
1
Primary Topic
Solar and Space Plasma Dynamics
Type
article
Field-Weighted Citation Impact
1.15
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Field-level Comparison and Robustness Analysis of Cosmological N-body Simulations

Francisco Villaescusa-Navarro, Sammy N. Sharief, M. Gatti, Greg L. Bryan et al.
1 citations
The Astrophysical Journal
Solar and Space Plasma Dynamics
1.15
article

Field-level Comparison and Robustness Analysis of Cosmological N-body Simulations

Francisco Villaescusa-Navarro, Sammy N. Sharief, M. Gatti, Greg L. Bryan, Eli Visbal, Adrian E. Bayer, Laurence Perreault-Levasseur, Romain Teyssier, Lehman H. Garrison
article en
1 citations

Abstract

Abstract We present the first field-level comparison of cosmological N -body simulations, considering various widely used codes: Abacus, CUBEP 3 M, Enzo, Gadget, Gizmo, PKDGrav, and Ramses. Unlike previous comparisons focused on summary statistics, we conduct a comprehensive field-level analysis: evaluating statistical similarity, quantifying implications for cosmological parameter inference, and identifying the regimes in which simulations are consistent. We begin with a traditional comparison using the power spectrum, cross-correlation coefficient, and visual inspection of the matter field. We follow this with a statistical out-of-distribution (OOD) analysis to quantify distributional differences between simulations, revealing insights not captured by the traditional metrics. We then perform field-level simulation-based inference using convolutional neural networks (CNNs), training on one simulation and testing on others, including a full hydrodynamic simulation for comparison. We identify several causes of OOD behavior and biased inference, finding that resolution effects, such as those arising from adaptive mesh refinement (AMR), have a significant impact. Models trained on non-AMR simulations fail catastrophically when evaluated on AMR simulations, introducing larger biases than those from hydrodynamic effects. Differences in resolution, even when using the same N -body code, likewise lead to biased inference. We attribute these failures to a CNN’s sensitivity to small-scale fluctuations, in particular in voids and filaments, and demonstrate that appropriate smoothing brings the simulations into statistical agreement. Our findings motivate the need for careful data filtering and the use of field-level OOD metrics, such as PQMass, to ensure robust inference.

The Astrophysical JournalVol. 989(2)
Openalex Percentile: Top 17%
Solar and Space Plasma Dynamics
1.15
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.