Scaling and Cross-Simulation Generalization of Graph Neural Networks for Cosmic-Web Classification in CAMELS
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 CAMELS IllustrisTNG, SIMBA and Astrid suites, we label galaxies with 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 , and , against 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
| Descriptor | Symbol | Information |
|---|---|---|
| Edge length weighted degree | connectivity | |
| Clustering coefficient | clustering | |
| Mean edge length | geometry | |
| Minimum edge length | geometry | |
| Maximum edge length | geometry | |
| Tetrahedral density | local density |
| Learning curve | External test | |
| Training boxes per fold | 6, 26, 46, 96 | 96 (frozen) |
| Validation boxes per fold | 2 | – |
| Test boxes | 2/fold (LH0–9) | 100 (LH100–199) |
| Source target pairs | 9 | 9 |
| Model | Configuration | Dropout |
|---|---|---|
| MLP | – | |
| GCN | – | |
| EdgeConv | , 2 EdgeConv blocks | 0.10 |
| GAT | , 2 GATv2 layers | 0.00 |
| GAT+ | , 4 hidden + 1 output GATv2 | 0.50 |
| Transformer | , 3 TransformerConv | 0.35 |
| Model | Accuracy (per cent) | Macro-F1 | Weighted F1 |
|---|---|---|---|
| MLP | 52.56 | 0.4808 | 0.5332 |
| GCN | 58.48 | 0.5218 | 0.5866 |
| GAT | 62.95 | 0.5718 | 0.6311 |
| EdgeConv | 69.24 | 0.6421 | 0.6997 |
| GAT+ | 71.02 | 0.6510 | 0.7113 |
| Graph Transformer | 70.43 | 0.6522 | 0.7080 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
Graph Neural Networks
Graph Neural Networks learn from graph-structured data by combining information across connected nodes, edges, and larger structures.
See all 797 papers