Scaling and Cross-Simulation Generalization of Graph Neural Networks for Cosmic-Web Classification in CAMELS
Abstract
Graph-based methods can classify galaxies by their dark-matter cosmic-web environments, but reliability beyond development simulations remains uncertain. Galaxy-formation models alter tracer populations and spatial distributions, potentially shifting graph features. We test how graph neural networks scale with independent training realizations and transfer across hydrodynamical simulations. Using the z=0 CAMELS IllustrisTNG, SIMBA and Astrid suites, we label galaxies with M⋆>109 M⊙ as void, sheet, filament or knot from the smoothed cold-dark-matter density field. We represent their spatial distributions as periodic Delaunay graphs with ten geometric descriptors. We compare a multilayer perceptron (MLP) and five graph neural networks (GNNs), including a local graph Transformer, under realization-grouped evaluation. Learning curves increase training data from 10 to 100 realizations, with validation and test boxes fixed. We test every source-to-target suite pairing on 100 unseen realizations per target suite. On this external holdout, the Transformer, GAT+ and EdgeConv reach mean per-realization macro-averaged F1 scores of $0.652$, $0.651$ and $0.642$, against $0.481$ for the MLP. The Transformer outperforms the MLP by 0.171, while the difference between the Transformer and GAT+ is not statistically significant. Voids remain the hardest class. Performance is higher in boxes with more selected galaxies and shorter Delaunay edges. Associations with cosmological and feedback parameters weaken after accounting for galaxy richness and void fraction. Our results benchmark the scaling and cross-simulation transfer of galaxy-graph classifiers, demonstrating the value of neighbourhood information and identifying tracer sampling as an important limitation for dark-matter web inference.
Related
- Macrocanonical Generator Networks: Data-Efficient Neural Surrogates for Amortized Physics Simulation
- Terrain-Dependent Generalization Failure in Multimodal Lunar Crater Classification: A Comparative Study Using Optical and Topographic Data
- The dust attenuation scaling relation in the TNG50 simulation
- Recovering Ionizing Photon Escape and Galaxy Scaling Relations in the LzLCS via Si II and C II Absorption Lines and Mock Spectra from a Radiation-Hydrodynamic Simulation
- Probing the baryonic--dark matter connection in galaxy clusters using X-rays with gated recurrent unit neural networks
BibTeX
@misc{thakkar2026scaling,
title = {{Scaling and Cross-Simulation Generalization of Graph Neural Networks for Cosmic-Web Classification in CAMELS}},
author = {Kalash Thakkar and Unnati Shah},
howpublished = {arXiv},
year = {2026},
month = nov,
doi = {10.48550/arxiv.2611.34332},
eprint = {2611.34332},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.34332},
}
RIS
TY - UNPB
TI - Scaling and Cross-Simulation Generalization of Graph Neural Networks for Cosmic-Web Classification in CAMELS
AU - Kalash Thakkar
AU - Unnati Shah
PY - 2026
DA - 2026/11/25
PB - arXiv
DO - 10.48550/arxiv.2611.34332
UR - https://arxiv.org/abs/2611.34332
AB - Graph-based methods can classify galaxies by their dark-matter cosmic-web environments, but reliability beyond development simulations remains uncertain. Galaxy-formation models alter tracer populations and spatial distributions, potentially shifting graph features. We test how graph neural networks scale with independent training realizations and transfer across hydrodynamical simulations. Using the z=0 CAMELS IllustrisTNG, SIMBA and Astrid suites, we label galaxies with M_⋆>10^9 M_⊙ as void, sheet, filament or knot from the smoothed cold-dark-matter density field. We represent their spatial distributions as periodic Delaunay graphs with ten geometric descriptors. We compare a multilayer perceptron (MLP) and five graph neural networks (GNNs), including a local graph Transformer, under realization-grouped evaluation. Learning curves increase training data from 10 to 100 realizations, with validation and test boxes fixed. We test every source-to-target suite pairing on 100 unseen realizations per target suite. On this external holdout, the Transformer, GAT+ and EdgeConv reach mean per-realization macro-averaged F1 scores of $0.652$, $0.651$ and $0.642$, against $0.481$ for the MLP. The Transformer outperforms the MLP by 0.171, while the difference between the Transformer and GAT+ is not statistically significant. Voids remain the hardest class. Performance is higher in boxes with more selected galaxies and shorter Delaunay edges. Associations with cosmological and feedback parameters weaken after accounting for galaxy richness and void fraction. Our results benchmark the scaling and cross-simulation transfer of galaxy-graph classifiers, demonstrating the value of neighbourhood information and identifying tracer sampling as an important limitation for dark-matter web inference.
ER -