HaloEGNN is a library that models dark matter halos with Equivariant Graph Neural Network.
A key yet unresolved question in modern-day astronomy is how galaxies formed and evolved under the paradigm of the ΛCDM model. A critical limiting factor lies in the lack of robust tools to describe the merger history through a statistical model. In this work, we employ a generative graph network, E(n) Equivariant Graph Normalizing Flows Model. We demonstrate that, by treating the progenitors as a graph, our model robustly recovers their distributions, including their masses, merging redshifts and pairwise distances at redshift z=2 conditioned on their z=0 properties. The generative nature of the model enables other downstream tasks, including likelihood-free inference, detecting anomalies and identifying subtle correlations of progenitor features.
Accepted to ICML 2022 Machine Learning for Astrophysics Workshop
minimal package requirement
pip install -r requirement
pip install -e .
Model training entry point is under train/main.py.
Sample training can be invoked with
python main.py -d TNG300_preprocessed_data -lr 1e-3 -b 128 --max_epochs 1000 --ode_reg 1e-2 --normalize power --log_dir log
python HaloEGNNFlows/infer_graph.py
Sample preprocessed data, checkpoint can be found under https://drive.google.com/drive/folders/1JFB8d9lJWnqRBhAYSppG28PkoQppmR3k?usp=sharing.