# Inferring halo masses with Graph Neural Networks

arXiv: https://arxiv.org/abs/2111.08683 · HTML: https://mlsanity.com/paper/2111.08683/

## Key facts

- Cited by 13 papers in the map (data through 14 Oct 2026).
- Builds on 8 of its 65 references that are in the map.
- First posted on arXiv 16 Nov 2021.

## Builds on (most cited first, 8 of 8)

- [Semi-Supervised Classification with Graph Convolutional Networks](https://mlsanity.com/paper/1609.02907/) (2016)
- [PointNet: Deep Learning on Point Sets for 3D Classification and Segmentation](https://mlsanity.com/paper/1612.00593/) (2016)
- [PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Space](https://mlsanity.com/paper/1706.02413/) (2017)
- [Fast Graph Representation Learning with PyTorch Geometric](https://mlsanity.com/paper/1903.02428/) (2019)
- [Dynamic Graph CNN for Learning on Point Clouds](https://mlsanity.com/paper/1801.07829/) (2018)
- [Captum: A unified and generic model interpretability library for PyTorch](https://mlsanity.com/paper/2009.07896/) (2020)
- [The CAMELS Multifield Dataset: Learning the Universe's Fundamental Parameters with Artificial Intelligence](https://mlsanity.com/paper/2109.10915/) (2021)
- [Mass Estimation of Galaxy Clusters with Deep Learning I: Sunyaev-Zel'dovich Effect](https://mlsanity.com/paper/2003.06135/) (2020)

## Built on by (most cited first, 13 of 13)

- [Astronomia ex machina: a history, primer, and outlook on neural networks in astronomy](https://mlsanity.com/paper/2211.03796/) (2022)
- [Learning cosmology and clustering with cosmic graphs](https://mlsanity.com/paper/2204.13713/) (2022)
- [How Interpretable Are Interpretable Graph Neural Networks?](https://mlsanity.com/paper/2406.07955/) (2024)
- [Robust Field-level Likelihood-free Inference with Galaxies](https://mlsanity.com/paper/2302.14101/) (2023)
- [The CAMELS project: public data release](https://mlsanity.com/paper/2201.01300/) (2022)
- [Augmenting astrophysical scaling relations with machine learning: application to reducing the Sunyaev-Zeldovich flux-mass scatter](https://mlsanity.com/paper/2201.01305/) (2022)
- [Domain Adaptive Graph Neural Networks for Constraining Cosmological Parameters Across Multiple Data Sets](https://mlsanity.com/paper/2311.01588/) (2023)
- [The CAMELS project: Expanding the galaxy formation model space with new ASTRID and 28-parameter TNG and SIMBA suites](https://mlsanity.com/paper/2304.02096/) (2023)
- [Behavior-Inspired Neural Networks for Relational Inference](https://mlsanity.com/paper/2406.14746/) (2024)
- [textttMangrove: Learning Galaxy Properties from Merger Trees](https://mlsanity.com/paper/2210.13473/) (2022)
- [CosmoBench: A Multiscale, Multiview, Multitask Cosmology Benchmark for Geometric Deep Learning](https://mlsanity.com/paper/2507.03707/) (2025)
- [Cosmology with Persistent Homology: Parameter Inference via Machine Learning](https://mlsanity.com/paper/2412.15405/) (2024)
- [Generalizing to New Dynamical Systems via Frequency Domain Adaptation](https://mlsanity.com/paper/2507.00025/) (2025)

## Abstract (arXiv)

Understanding the halo-galaxy connection is fundamental in order to improve our knowledge on the nature and properties of dark matter. In this work we build a model that infers the mass of a halo given the positions, velocities, stellar masses, and radii of the galaxies it hosts. In order to capture information from correlations among galaxy properties and their phase-space, we use Graph Neural Networks (GNNs), that are designed to work with irregular and sparse data. We train our models on galaxies from more than 2,000 state-of-the-art simulations from the Cosmology and Astrophysics with MachinE Learning Simulations (CAMELS) project. Our model, that accounts for cosmological and astrophysical uncertainties, is able to constrain the masses of the halos with a ~0.2 dex accuracy. Furthermore, a GNN trained on a suite of simulations is able to preserve part of its accuracy when tested on simulations run with a different code that utilizes a distinct subgrid physics model, showing the robustness of our method. The PyTorch Geometric implementation of the GNN is publicly available on Github at https://github.com/PabloVD/HaloGraphNet
