Field-Level Comparison and Robustness Analysis of Cosmological N-body Simulations
Adrian E. Bayer, Francisco Villaescusa-Navarro, Sammy Sharief, Romain Teyssier, Lehman H. Garrison, Laurence Perreault-Levasseur, Greg L. Bryan, Marco Gatti, Eli Visbal

TL;DR
This paper compares various cosmological N-body simulation codes at the field level, analyzing their differences, robustness, and implications for cosmological inference, highlighting the importance of resolution effects and data filtering.
Contribution
It provides the first comprehensive field-level comparison of multiple N-body simulation codes, including OOD analysis and CNN-based inference, revealing resolution impacts on robustness.
Findings
Resolution effects, especially AMR, cause significant biases.
CNN sensitivity to small-scale fluctuations affects inference.
Smoothing improves statistical agreement between simulations.
Abstract
We present the first field-level comparison of cosmological N-body simulations, considering various widely used codes: Abacus, CUBEPM, 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 (SBI) using convolutional neural networks (CNNs), training on…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
