astro-ph.CONov 25, 2026

Scaling and Cross-Simulation Generalization of Graph Neural Networks for Cosmic-Web Classification in CAMELS

Authors: Kalash Thakkar, Unnati Shah

Organizations: Department of Astronomy, Astrophysics & Space Engineering, Indian Institute of Technology Indore, MP 453552, India · Department of Computer Science, Utica University, Utica, NY 13502, USA

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=0z=0 CAMELS IllustrisTNG, SIMBA and Astrid suites, we label galaxies with M⋆>109 M⊙M_\star>10^9\,M_\odot 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.6520.652, 0.6510.651 and 0.6420.642, against 0.4810.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.

Figures & tables

Appendix figures & tables2 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Graph Neural Networks for Astrophysics and Cosmology

    Oct 19, 2026Christian Kragh JespersenCosmologyGraph Neural Networks

  2. Graph Neural Networks Applications Across Domains: All Insights You Need

    Jun 25, 2026Abderaouf BahiGraph Neural NetworksOver-Squashing

  3. Graph Neural Networks for the Graphical Bootstrap

    Jul 3, 2026Rigers Aliaj, Gabriele Dian, Reza Doobary +1Graph Neural NetworksHigh-Energy Physics