Sensitivity Analysis of Simulation-Based Inference for Galaxy Clustering

Chirag Modi, Shivam Pandey, Matthew Ho, ChangHoon Hahn, Bruno Régaldo-Saint Blancard, B. D. Wandelt · DOI

Abstract

Simulation-based inference (SBI) is a promising approach to leverage high fidelity cosmological simulations and extract information from the non-Gaussian, non-linear scales that cannot be modeled analytically. However, scaling SBI to the next generation of cosmological surveys faces the computational challenge of requiring a large number of accurate simulations over a wide range of cosmologies, while simultaneously encompassing large cosmological volumes at high resolution. This challenge can potentially be mitigated by balancing the accuracy and computational cost for different components of the forward model while ensuring robust inference. To guide our steps in this, we perform a sensitivity analysis of SBI for galaxy clustering on various components of the cosmological simulations: gravity model, halo-finder and the galaxy-halo distribution models (halo-occupation distribution, HOD). We infer the $\sigma_8$ and $\Omega_m$ using galaxy power spectrum multipoles and the bispectrum monopole assuming a galaxy number density expected from the luminous red galaxies observed using the Dark Energy Spectroscopy Instrument (DESI). We find that SBI is insensitive to changing gravity model between $N$-body simulations and particle mesh (PM) simulations. However, changing the halo-finder from friends-of-friends (FoF) to Rockstar can lead to biased estimate of $\sigma_8$ based on the bispectrum. For galaxy models, training SBI on more complex HOD leads to consistent inference for less complex HOD models, but SBI trained on simpler HOD models fails when applied to analyze data from a more complex HOD model. Based on our results, we discuss the outlook on cosmological simulations with a focus on applying SBI approaches to future galaxy surveys.

Introduction

To understand the evolution of the universe, astronomers analyze the clustering patterns of galaxies. Traditional methods rely on analytic frameworks like Perturbation Theory, which are effective on large, "linear" scales where gravity is relatively simple. However, to extract the wealth of information hidden in smaller, "non-linear" scales, researchers are increasingly turning to Simulation-Based Inference (SBI).

SBI utilizes high-fidelity simulations to "learn" the complex relationship between cosmological parameters—such as the matter density ($\Omega_m$) and the amplitude of fluctuations ($\sigma_8$)—and observed galaxy distributions. The primary bottleneck is computational: high-resolution simulations are incredibly expensive. As we prepare for next-generation surveys like DESI, which require thousands of simulations over vast volumes, a critical question arises: can we use "cheaper" simulations without compromising the scientific integrity of our results?

Methodology: Sensitivity of Observables

The researchers conducted a comprehensive "stress test" by varying three fundamental components of the forward modeling pipeline:

  1. Gravity Model: High-fidelity N-body simulations (the gold standard) were compared against Particle-Mesh (PM) simulations, which are approximately 100x faster but less accurate at small scales.
  2. Halo-Finder: The study compared Friends-of-Friends (FoF), a simple density-based algorithm, against Rockstar, a sophisticated algorithm that tracks particles in 6D phase space.
  3. Galaxy-Halo Connection: A standard 5-parameter Halo Occupation Distribution (HOD) model was tested against a complex 10-parameter model (Zheng07-ex) that incorporates "assembly bias" and velocity offsets.
Ratios of summary statistics across different simulation components.

As shown in the figure above, the choice of components significantly impacts the summary statistics. While the monopole ($P_{\ell=0}$) remains relatively stable across gravity models, the quadrupole ($P_{\ell=2}$) and bispectrum ($B$) show marked sensitivity to the choice of halo-finder and HOD complexity.

Key Insights and Results

Gravity Model Robustness

One of the most significant findings is that SBI is remarkably robust to the gravity solver used. Despite the known small-scale inaccuracies of PM solvers, SBI models trained on cheap PM simulations performed nearly as well as those trained on expensive N-body simulations. This suggests that for current galaxy clustering statistics, the errors introduced by PM solvers are secondary to the uncertainties inherent in galaxy-halo modeling.

Inference residuals for cosmological parameters comparing N-body and PM simulations.

The Sensitivity of the Bispectrum

While the bispectrum (a three-point correlation statistic) provides information beyond the standard power spectrum, it is a "double-edged sword." It is highly sensitive to model misspecification. For instance, switching from FoF to Rockstar halo-finders caused up to a 20% bias in the quadrupole and bispectrum statistics, leading to biased estimates of $\sigma_8$.

Complexity as a Safety Net

In galaxy modeling, the study found that it is safer to "over-train." An SBI model trained on the complex 10-parameter HOD model could accurately analyze data generated from a simpler 5-parameter universe. Conversely, a model trained only on a simple universe failed significantly when applied to data from a more complex one. This highlights the importance of incorporating sufficient physical complexity in training sets to ensure robust inference on real-world data.

Conclusion and Future Outlook

The finding that PM simulations are sufficient for training SBI represents a major computational win, potentially speeding up the pipeline by two orders of magnitude. However, the sensitivity to halo-finding and HOD complexity underscores the need for careful model selection.

Future work will need to expand this analysis to other parameters, such as the sum of neutrino masses, and test robustness against even more complex physics, such as those found in full hydrodynamical simulations. As we move toward the DESI era, these sensitivity analyses provide the roadmap for balancing computational efficiency with scientific accuracy.

Summary updated

BibTeX
@inproceedings{modi2024sensitivity,
  author = {Chirag Modi and Shivam Pandey and Matthew Ho and ChangHoon Hahn and Bruno Régaldo-Saint Blancard and B. D. Wandelt},
  title = {{Sensitivity Analysis of Simulation-Based Inference for Galaxy Clustering}},
  booktitle = {Monthly},
  year = {2024},
  doi = {10.1093/mnras/stae2473},
}
Figure