Abstract
We present the Cosmology and Astrophysics with MachinE Learning Simulations (CAMELS) Multifield Dataset, CMD, a collection of hundreds of thousands of 2D maps and 3D grids containing many different properties of cosmic gas, dark matter, and stars from 2,000 distinct simulated universes at several cosmic times. The 2D maps and 3D grids represent cosmic regions that span ~100 million light years and have been generated from thousands of state-of-the-art hydrodynamic and gravity-only N-body simulations from the CAMELS project. Designed to train machine learning models, CMD is the largest dataset of its kind containing more than 70 Terabytes of data. In this paper we describe CMD in detail and outline a few of its applications. We focus our attention on one such task, parameter inference, formulating the problems we face as a challenge to the community.
Introduction: The Challenge of Baryonic Physics
A primary goal in modern cosmology is to measure the fundamental parameters of the universe, such as the total matter density ($\Omega_m$) and the amplitude of matter fluctuations ($\sigma_8$). However, the distribution of matter is not solely governed by gravity. "Baryonic" processes—including star formation, supernova feedback, and active galactic nuclei (AGN) outflows—significantly redistribute gas and stars, complicating the interpretation of cosmological signals.
These astrophysical effects act as "nuisance parameters" that can bias cosmological measurements if not properly modeled. While traditional analytical methods struggle with the highly non-linear nature of these processes, machine learning (ML) offers a powerful alternative. To succeed, ML models require vast, diverse, and well-labeled datasets to learn how to distinguish fundamental cosmological signals from astrophysical noise.
Methodology: The CAMELS Framework
The CAMELS Multifield Dataset (CMD) was generated using the CAMELS framework, which integrates two state-of-the-art hydrodynamic simulation suites—IllustrisTNG and SIMBA—alongside gravity-only N-body simulations.
The methodology relies on three pillars:
- Parameter Variation: Each simulation varies six parameters: two cosmological ($\Omega_m, \sigma_8$) and four astrophysical parameters that control the strength of supernova and AGN feedback.
- Latin Hypercube Sampling: To efficiently explore this high-dimensional space, the authors utilized a Latin Hypercube (LH) set of 1,000 simulations per suite, ensuring an unbiased sampling of the parameter space.
- Multifield Extraction: The 3D simulations were processed into 2D slices (maps) and 3D voxels (grids) for 13 distinct physical fields, capturing the complex interplay between different cosmic components.
The CMD Dataset
The resulting CMD is a 70-terabyte resource containing data from over 2,000 simulated universes. It provides a comprehensive view of the cosmos across multiple redshifts ($z=0$ to $z=2$). The dataset's scale and diversity are summarized in the table below.
The fields included range from gas density and temperature to magnetic fields and stellar mass density, providing a rich environment for multifield learning.
Key Insights: Multifield Learning and Robustness
The CMD was designed with two specific ML challenges in mind:
- Multifield Information Extraction: By providing 13 different physical fields for the same cosmic volumes, CMD allows models to learn cross-correlations that are invisible in single-field analyses. This "multifield" approach significantly enhances the precision of parameter inference.
- Cross-Simulation Robustness: A critical hurdle in simulation-based inference is the "domain gap." Because IllustrisTNG and SIMBA use different subgrid physics models, a model trained on one and tested on the other serves as a rigorous test of generalization. If a model can perform well across both, it is more likely to succeed on real observational data.
Results and Future Directions
Initial studies using CMD have demonstrated that neural networks can infer $\Omega_m$ and $\sigma_8$ with just a few percent error, effectively marginalizing over extreme variations in astrophysical feedback. These models successfully extract information from highly non-linear scales that are often discarded in traditional power spectrum analyses.
Despite these successes, challenges remain. The "robustness gap" between different simulation codes persists, and future work must focus on identifying simulation-invariant features. Furthermore, while the current dataset provides idealized physical fields, future iterations will need to incorporate observational effects—such as instrumental noise and selection biases—to bridge the gap between simulations and upcoming surveys like Euclid and the Vera C. Rubin Observatory.
Summary updated