dm2gal: Mapping Dark Matter to Galaxies with Neural Networks

Noah Kasmanoff, Francisco Villaescusa-Navarro, Jeremy L. Tinker, Shirley HoarXiv 2020 · DOI · arXiv

Abstract

Maps of cosmic structure produced by galaxy surveys are one of the key tools for answering fundamental questions about the Universe. Accurate theoretical predictions for these quantities are needed to maximize the scientific return of these programs. Simulating the Universe by including gravity and hydrodynamics is one of the most powerful techniques to accomplish this; unfortunately, these simulations are very expensive computationally. Alternatively, gravity-only simulations are cheaper, but do not predict the locations and properties of galaxies in the cosmic web. In this work, we use convolutional neural networks to paint galaxy stellar masses on top of the dark matter field generated by gravity-only simulations. Stellar mass of galaxies are important for galaxy selection in surveys and thus an important quantity that needs to be predicted. Our model outperforms the state-of-the-art benchmark model and allows the generation of fast and accurate models of the observed galaxy distribution.

Introduction

To understand the fundamental laws governing our Universe, cosmologists compare observations from massive galaxy surveys to theoretical predictions. These predictions typically rely on two classes of simulations. Hydrodynamic simulations, which incorporate gravity, gas dynamics, and star formation, offer high accuracy but are prohibitively expensive, often requiring millions of CPU hours. Conversely, gravity-only (N-body) simulations are computationally efficient and can cover vast cosmic volumes, but they only track dark matter, failing to predict the locations and properties of galaxies, such as stellar mass.

The dm2gal framework addresses this gap by using 3D convolutional neural networks (CNNs) to "paint" galaxy stellar masses onto gravity-only dark matter simulations. This approach aims to achieve the fidelity of hydrodynamic models at the speed of N-body simulations, surpassing traditional statistical methods like Halo Occupation Distribution (HOD) which often oversimplify the complex relationship between dark matter environments and galaxy formation.

Methodology

The core of dm2gal is a 3D CNN designed to learn the non-linear mapping from dark matter density to stellar mass. The network processes a two-channel 3D volume of $65^3$ voxels. One channel represents the dark matter density field, while the other represents the mass-weighted subhalo field, indicating potential galaxy locations.

The architecture consists of six blocks of convolutional layers, utilizing alternating kernel sizes ($k \ge 5$ and $k=3$) to capture information across various spatial scales. This allows the model to consider the broader "cosmic web" environment—including filaments, voids, and clusters—when predicting the stellar mass of a central voxel. To handle the inherent sparsity of the Universe, the authors implemented a weighted sampling procedure, binning stellar masses logarithmically and weighting samples by the inverse of their frequency. This ensures the network accurately learns to predict rare, high-mass galaxies.

The model was trained and validated using the IllustrisTNG suite, specifically TNG100-1 (hydrodynamic "ground truth") and its gravity-only counterpart, TNG100-1-Dark.

Results

The dm2gal model produces galaxy stellar mass maps that are visually indistinguishable from expensive hydrodynamic ground truth simulations. The CNN successfully captures the spatial distribution of galaxies within the dark matter framework, significantly outperforming the HOD benchmark in visual fidelity.

Visual comparison of the input dark matter field, the dm2gal prediction, the hydrodynamic target, and the HOD benchmark.

Quantitatively, dm2gal demonstrates superior performance in capturing cosmic clustering. It significantly outperforms the HOD benchmark in both the power spectrum (large-scale distribution) and the bispectrum (complex, non-Gaussian structural information). For galaxies with stellar masses $M_* > 10^{8.5} h^{-1}M_\odot$, the model's probability distribution function (PDF) closely matches the hydrodynamic target.

Statistical performance of dm2gal compared to HOD and the target simulation across power spectrum, bispectrum, and stellar mass distribution.

Crucially, dm2gal enables the generation of accurate galaxy fields 10 to 100 times faster than full hydrodynamic simulations, providing a powerful tool for creating large-scale mock galaxy catalogs.

Conclusion and Future Work

While dm2gal represents a significant advancement, some limitations remain. The model's performance slightly degrades at extremely small scales, likely due to voxel resolution limits. Additionally, while it excels at higher masses, the HOD benchmark remains competitive for very low-mass galaxies, though these are often below observational detection limits.

Future developments will focus on making the network "cosmology-agnostic," allowing it to generalize across different theoretical models of the Universe. The authors also plan to expand the model to predict additional galaxy properties, such as luminosity, radius, and metallicity, further enhancing its utility for upcoming galaxy surveys.

Summary updated

Abstract

Maps of cosmic structure produced by galaxy surveys are one of the key tools for answering fundamental questions about the Universe. Accurate theoretical predictions for these quantities are needed to maximize the scientific return of these programs. Simulating the Universe by including gravity and hydrodynamics is one of the most powerful techniques to accomplish this; unfortunately, these simulations are very expensive computationally. Alternatively, gravity-only simulations are cheaper, but do not predict the locations and properties of galaxies in the cosmic web. In this work, we use convolutional neural networks to paint galaxy stellar masses on top of the dark matter field generated by gravity-only simulations. Stellar mass of galaxies are important for galaxy selection in surveys and thus an important quantity that needs to be predicted. Our model outperforms the state-of-the-art benchmark model and allows the generation of fast and accurate models of the observed galaxy distribution.
BibTeX
@misc{kasmanoff2020dm,
  author = {Noah Kasmanoff and Francisco Villaescusa-Navarro and Jeremy L. Tinker and Shirley Ho},
  title = {{dm2gal: Mapping Dark Matter to Galaxies with Neural Networks}},
  year = {2020},
  eprint = {2012.00186},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.00186},
}
Figure