Abstract
Simulation-based inference (SBI) has become an important tool in cosmology for extracting additional information from observational data using simulations. However, all cosmological simulations are approximations of the actual universe, and SBI methods can be sensitive to model misspecification—particularly when the observational data lie outside the support of the training distribution. We present a method to improve the robustness of cosmological analyses under such conditions. Our approach first identifies and discards components of the summary statistics that exhibit inconsistency across related simulators, then learns a transformation that brings the observation back within the support of the training distribution. We apply our method in the context of a recent SimBIG SBI galaxy clustering analysis using the wavelet scattering transform (WST) summary statistic. The original analysis struggled to produce robust constraints for certain subsets of WST coefficients, where the observational data appeared out-of-distribution (OOD) relative to the training data. We show that our method enables robust cosmological inference and resolves OOD issues, while preserving most of the constraining power. In particular, the improved SimBIG WST analysis yields $\Lambda$CDM constraints of $\Omega_m = 0.32^{+0.02}_{-0.02}$ and $\sigma_8 = 0.80^{+0.02}_{-0.02}$, which are respectively $1.4\times$ and $3.1\times$ tighter than those from a standard perturbation-theory-based power spectrum analysis, confirming the significant information gain of WST summary statistics.
Introduction: The Challenge of Model Misspecification
In modern cosmology, extracting the maximum information from galaxy surveys is crucial for understanding the universe's evolution. While traditional methods rely on perturbation theory, these analytical frameworks often fail at the non-linear scales where gravity becomes complex. Simulation-Based Inference (SBI) offers a powerful alternative by using high-fidelity simulations to train neural networks to map cosmological parameters, such as dark matter density, directly to observed galaxy distributions.
However, SBI's primary weakness is model misspecification. Simulations are approximations; discrepancies in galaxy formation recipes or small-scale gravity modeling can lead to real-world observations appearing "Out-of-Distribution" (OOD) relative to the training set. When a neural network encounters such OOD data, it may produce highly confident but inaccurate results.
Methodology: A Two-Step Robustness Pipeline
To address these challenges, we propose a two-step mitigation strategy designed to detect and correct OOD behavior without sacrificing the information gain provided by SBI.
- Discarding Inconsistent Statistics: We compare outputs from different simulation pipelines (e.g., using different halo finders). If a summary statistic varies significantly between simulators for the same underlying physics, it is likely a simulator-specific artifact. These unreliable features are identified and removed from the analysis.
- Robust Transformations: To handle remaining discrepancies, we learn a transformation (via a Multi-Layer Perceptron) that maps the data into a new space where the observation is better aligned with the training distribution. This is achieved using a loss function that includes Maximum Mean Discrepancy (MMD), which acts as a regularization term to prevent the transformed observation from drifting into "fantasy land" outside the model's learned support.
Additionally, we utilize Posterior Variability as a diagnostic. If an ensemble of neural networks with varying architectures yields inconsistent results for the same observation, it serves as a clear indicator of OOD data.
Experimental Setup and Datasets
The study utilizes the SimBIG framework, focusing on the SDSS-III BOSS galaxy sample. The training set consists of 20,000 synthetic catalogs from Quijote N-body simulations. To test robustness, we employed "Mock Challenge Sets":
- TEST0: A sanity check using the same simulator as the training data.
- TEST1 & TEST2: Stress tests using different N-body codes (AbacusSummit) and galaxy-modeling assumptions to mimic real-world misspecification.
Results: Enhanced Precision and Model Consensus
The application of our robustness pipeline successfully resolved inconsistencies in the SimBIG WST analysis. Before the fix, different neural network architectures produced conflicting cosmological constraints for the BOSS data. After the two-step mitigation, the models reached a clear consensus.
The final analysis yielded constraints on matter density ($\Omega_m$) and fluctuation amplitude ($\sigma_8$) that are 1.4x and 3.1x tighter, respectively, than those obtained from standard perturbation-theory methods. Specifically, we find $\Omega_m = 0.32 \pm 0.02$ and $\sigma_8 = 0.80 \pm 0.02$. These results are consistent with independent cosmological probes, demonstrating that the increased precision is robust and accurate.
Conclusion
This work demonstrates that while higher-order statistics like WST are sensitive to simulation errors, they can be safely harnessed through targeted robustness techniques. By filtering inconsistent features and applying learned transformations, we can mitigate model misspecification and extract significantly more information from galaxy surveys. This approach is a vital step toward building more resilient SBI pipelines for future cosmological missions.
Summary updated