Discovering the building blocks of dark matter halo density profiles with neural networks

Luisa Lucie-Smith, Hiranya V. Peiris, Andrew Pontzen, Brian Nord, Jeyan Thiyagalingam, Davide PirasePubs 2022 · DOI

Introduction

In the standard cosmological model, dark matter halos serve as the gravitational scaffolding for galaxy formation. Understanding the internal structure of these halos—specifically their density profiles, $\rho(r)$—is crucial for testing our understanding of gravity and the nature of dark matter. For decades, researchers have relied on empirical fits like the Navarro-Frenk-White (NFW) profile. While these models are effective for the "relaxed" inner regions of halos, they often struggle to capture the complex dynamics of the outer regions where matter is still infalling for the first time.

This research introduces a novel approach using an Interpretable Variational Encoder (IVE) to learn the fundamental parameters of dark matter halos directly from raw 3D simulation data. By leveraging an information-theoretic framework, the model not only matches traditional fits but also "discovers" physical boundaries like the splashback radius without prior instruction.

Methodology: The Interpretable Variational Encoder

The core of this work is the IVE, a supervised encoder-decoder architecture inspired by the "SciNet" framework. The model is designed to compress high-dimensional data into a minimal set of physically meaningful variables.

1. The Encoder

The encoder uses a 3D Convolutional Neural Network (CNN) to process a cubic sub-box of the raw 3D density field centered on a specific halo. This high-dimensional input is compressed into a low-dimensional latent representation consisting of a few Gaussian variables.

2. The Decoder and Query Mechanism

Unlike standard autoencoders that attempt to reconstruct the entire input, this decoder is "query-based." It takes the latent variables and a specific radius $r$ as inputs to predict the density $\rho(r)$ at that point. This forcing of the network to pass all information through a tiny bottleneck ensures that the latent space must capture the most essential physical parameters of the halo.

3. Disentanglement and Interpretability

To ensure the latent variables represent distinct physical properties, the authors employed a loss function similar to a $\beta$-VAE, which encourages the variables to be statistically independent. The researchers then used Mutual Information (MI) to quantify the relationship between these latent variables and the ground-truth density profiles, effectively "peeking" into the neural network's decision-making process.

Data and Simulations

The model was trained and validated using data from four dark matter-only $N$-body simulations performed with GADGET-4. These simulations utilized a standard Planck $\Lambda$CDM cosmology in boxes of 50 Mpc/$h$ with $512^3$ particles. Approximately 6,000 halos per simulation, identified via the SUBFIND algorithm and ranging from $10^{11}$ to $10^{13} M_\odot$, provided the training set.

Key Insights: Discovering Physics in the Latent Space

The most significant contribution of this work is the interpretation of what the neural network learned during training.

The Dimensionality of Halos

The network discovered that the complexity of a halo depends on the region being modeled. Within the virial radius (the inner, stable part of the halo), two latent variables were sufficient to describe the density profile accurately. This aligns with the two-parameter nature of the NFW profile. However, to describe the outer "infall" regions, a third latent variable was required, indicating that traditional two-parameter models are insufficient for the full halo structure.

Automated Discovery of the Splashback Radius

One of the most striking results was the physical mapping of the third latent variable (Latent C). The model used this variable to capture information about the splashback radius—the physical boundary where infalling matter reaches its first orbital turning point. Remarkably, the IVE identified this dynamical boundary using only static density snapshots, without any information about the velocity or history of the particles.

Physical Parameter Mapping

Through Mutual Information analysis, the researchers mapped the latent variables to known physical properties:

  • Latent A: Corresponds to the overall normalization (mass and scale) of the profile.
  • Latent B: Corresponds to the shape and slope of the outer profile.
  • Latent C: Corresponds to the inner shape or steepness, correlating with halo concentration.

Performance and Efficiency

The IVE matches the accuracy of standard NFW and Einasto fits within the virial radius but significantly outperforms them in the outer regions. Furthermore, the model is highly efficient; once trained, it can extract a halo's density profile from a 3D field in approximately 0.0076 seconds. This speed makes it a powerful tool for analyzing the massive datasets generated by modern cosmological simulations.

Limitations and Future Directions

While the IVE represents a significant step forward, several challenges remain. Currently, the model is split into two versions—one for high-resolution inner regions and one for larger-volume outer regions—due to GPU memory constraints. Future work aims to unify these into a single multi-scale model. Additionally, this study focused on dark matter-only simulations. Incorporating "baryonic physics" (the effects of gas, stars, and black holes) will be essential for applying this model to real-world astronomical observations.

The success of this query-based interpretable framework suggests it could be applied to other complex cosmological problems, such as modeling the triaxiality of halos or the distribution of cosmic voids.

Summary updated

BibTeX
@inproceedings{luciesmith2022discovering,
  author = {Luisa Lucie-Smith and Hiranya V. Peiris and Andrew Pontzen and Brian Nord and Jeyan Thiyagalingam and Davide Piras},
  title = {{Discovering the building blocks of dark matter halo density profiles with neural networks}},
  booktitle = {ePubs},
  year = {2022},
  doi = {10.1103/physrevd.105.103533},
}
Figure