[Paper Review] Analysis of Dark Matter Halo Structure Formation in $N$-body Simulations with Machine Learning
This paper proposes a machine learning framework to predict dark matter halo formation and reconstruct the Halo Mass Function (HMF) from initial conditions in $N$-body simulations. Using features of the initial density field, Random Forest and Neural Networks achieve high-accuracy halo classification, while Multi-Layer Perceptrons and Gaussian Processes enable model-independent HMF reconstruction with only a few simulation data points, achieving strong agreement with both simulated and theoretical results in the $[10^{12}, 10^{13}M_{igodot}]$ mass range.
The properties of the matter density field in the initial conditions have a decisive impact on the features of the large-scale structure of the Universe as observed today. These need to be studied via $N$-body simulations, which are imperative to analyze high density collapsed regions into dark matter halos. In this paper, we train Machine Learning algorithms with information from N -body simulations to infer two properties: dark matter particle halo classification that leads to halo formation prediction with the characteristics of the matter density field traced back to the initial conditions, and dark matter halo formation by calculating the Halo Mass Function (HMF), which offers the number density of dark matter halos with a given threshold. We map the initial conditions of the matter density field into classification labels of dark matter halo structures. The Halo Mass Function of the simulations is calculated and reconstructed with theoretical methods as well as our trained algorithms. We test several Machine Learning techniques where we could find that the Random Forest and Neural Networks proved to be the better performing tools to classify dark matter particles in cosmological simulations. We also show that that it is not compulsory to use a high amount of data to train the algorithms in order to reconstruct the HMF, giving us a very good fitting function for both simulation and theoretical results.
Motivation & Objective
- To predict dark matter halo formation from initial conditions in cosmological $N$-body simulations using machine learning.
- To reconstruct the Halo Mass Function (HMF) in a model-independent way using sparse simulation data.
- To evaluate the performance of multiple ML algorithms in classifying dark matter particles into halos based on initial density field features.
- To determine whether a small number of simulation data points can enable accurate HMF reconstruction via ML.
- To explore the feasibility of replacing computationally expensive simulations with ML-based surrogate models for HMF prediction.
Proposed method
- Train multiple machine learning classifiers—Random Forest, Neural Networks, Multi-Layer Perceptrons, and Gaussian Processes—on features extracted from the initial density field of $N$-body simulations.
- Use a binary classification setup where labels indicate whether a particle belongs to a halo in the final simulation snapshot.
- Map initial conditions (local density, gradients, and higher-order moments) to halo membership to enable early prediction of structure formation.
- Reconstruct the Halo Mass Function using only a few data points from simulations, applying regression models to interpolate and extrapolate the HMF.
- Compare ML-based HMF reconstructions with both simulation outputs and theoretical models like Press-Schechter to validate accuracy.
- Optimize hyperparameters and evaluate performance using classification metrics and statistical agreement with reference data.
Experimental results
Research questions
- RQ1Can machine learning models accurately predict dark matter halo formation using only initial density field features from $N$-body simulations?
- RQ2Which machine learning algorithms perform best in classifying dark matter particles into halos based on initial conditions?
- RQ3To what extent can a small number of HMF data points enable accurate, model-independent reconstruction of the halo mass function?
- RQ4How well do Neural Networks and Gaussian Processes extrapolate the HMF beyond the training data range, especially in extreme mass regimes?
- RQ5Can ML-based HMF reconstruction replace or reduce the need for large-scale, computationally expensive simulations?
Key findings
- Random Forest and Neural Networks demonstrated superior performance in classifying dark matter particles into halos, outperforming other algorithms due to their ability to handle numerical features and iterative learning.
- The Multi-Layer Perceptron (MLP) and Gaussian Process (GP) models achieved high-accuracy, model-independent reconstruction of the Halo Mass Function using only a few simulation data points.
- Both MLP and GP reconstructions showed strong agreement with both simulated and theoretical HMF data in the $[10^{12}, 10^{13}M_{igodot}]$ halo mass range, indicating robustness and reliability.
- Despite limited training data in extreme mass regimes, the MLP and GP models exhibited reasonable extrapolation, though performance degraded slightly at masses below $10^{11}M_{igodot}$ and above $10^{13}M_{igodot}$.
- The framework enables rapid interpolation and surrogate modeling of the HMF, reducing reliance on full $N$-body simulations while maintaining high accuracy.
- The study confirms that initial density field features contain sufficient information to predict halo formation and HMF, supporting the use of ML as a scalable alternative to full simulations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.