# How many simulations do we need for simulation-based inference in cosmology?

arXiv: https://arxiv.org/abs/2503.13755 · HTML: https://mlsanity.com/paper/2503.13755/

## Key facts

- Cited by 2 papers in the map (data through 14 Oct 2026).
- Builds on 11 of its 57 references that are in the map.
- First posted on arXiv 17 Mar 2025.

## Builds on (most cited first, 11 of 11)

- [Denoising Diffusion Probabilistic Models](https://mlsanity.com/paper/2006.11239/) (2020)
- [Score-Based Generative Modeling through Stochastic Differential Equations](https://mlsanity.com/paper/2011.13456/) (2020)
- [Scaling Laws for Neural Language Models](https://mlsanity.com/paper/2001.08361/) (2020)
- [Generative Adversarial Networks](https://mlsanity.com/paper/2203.00667/) (2022)
- [Normalizing Flows for Probabilistic Modeling and Inference](https://mlsanity.com/paper/1912.02762/) (2019)
- [An Introduction to Variational Autoencoders](https://mlsanity.com/paper/1906.02691/) (2019)
- [Masked Autoregressive Flow for Density Estimation](https://mlsanity.com/paper/1705.07057/) (2017)
- [The frontier of simulation-based inference](https://mlsanity.com/paper/1911.01429/) (2019)
- [Solving high-dimensional parameter inference: marginal posterior densities & Moment Networks](https://mlsanity.com/paper/2011.05991/) (2020)
- [Fast and Credible Likelihood-Free Cosmology with Truncated Marginal Neural Ratio Estimation](https://mlsanity.com/paper/2111.08030/) (2021)
- [Robust Simulation-Based Inference in Cosmology with Bayesian Neural Networks](https://mlsanity.com/paper/2207.08435/) (2022)

## Built on by (most cited first, 2 of 2)

- [Simulation-Efficient Cosmological Inference with Multi-Fidelity SBI](https://mlsanity.com/paper/2507.00514/) (2025)
- [Interpretable Neural Marked Statistics for Cosmological Inference](https://mlsanity.com/paper/2606.11295/) (2026)

## Abstract (arXiv)

How many simulations do we need to train machine learning methods to extract information available from summary statistics of the cosmological density field? Neural methods have shown the potential to extract non-linear information available from cosmological data. Success depends critically on having sufficient simulations for training the networks and appropriate network architectures. In the first detailed convergence study of neural network training for cosmological inference, we show that currently available simulation suites, such as the Quijote Latin Hypercube(LH) with 2000 simulations, do not provide sufficient training data for a generic neural network to reach the optimal regime, even for the dark matter power spectrum, and in an idealized case. We discover an empirical neural scaling law that predicts how much information a neural network can extract from a highly informative summary statistic, the dark matter power spectrum, as a function of the number of simulations used to train the network, for a wide range of architectures and hyperparameters. We combine this result with the Cramer-Rao information bound to forecast the number of training simulations needed for near-optimal information extraction. To verify our method we created the largest publicly released simulation data set in cosmology, the Big Sobol Sequence(BSQ), consisting of 32,768 LambdaCDM n-body simulations uniformly covering the LambdaCDM parameter space. Our method enables efficient planning of simulation campaigns for machine learning applications in cosmology, while the BSQ dataset provides an unprecedented resource for studying the convergence behavior of neural networks in cosmological parameter inference. Our results suggest that new large simulation suites or new training approaches will be necessary to achieve information-optimal parameter inference from non-linear simulations.
