Learning cosmic web environments with diffusion models
Open Access
- 23 October 2026
- journal article
- Published by EDP Sciences in Astronomy & Astrophysics
- Vol. 714, A388
Abstract
The cosmic web, consisting of an intricate network of voids, walls, filaments, and nodes, encodes key information about structure formation and the cosmological parameters that govern it. In the era of high-precision cosmology, large ensembles of numerical simulations are required to analyse next-generation galaxy surveys, motivating the use of generative models to circumvent their high computational cost. While they have shown promise in emulating high-fidelity cosmic web simulations, their ability to capture distinct cosmic web environments remains largely unexplored. For this study, we trained a diffusion model on the Q UIJOTE N -body simulation suite to investigate the semantic information learnt by its self-attention maps. Using statistical estimators such as the Dice coefficient and cross-power spectra, we quantified the correspondence between attention maps and cosmic web environments defined by the T-Web classifier. We find that attention maps of varying spatial resolutions across different layers capture overdense and underdense structures in distinct ways, exhibiting strong positive correlations and anti-correlations with both the overall matter distribution and individual cosmic web environments. Moreover, the diffusion model predominantly encodes cosmological information at intermediate-to-large spatial scales, indicating that attention maps primarily capture globally coherent structures. Our results show that, beyond accurately reproducing two-point statistics, diffusion models learn a multi-scale representation of the cosmic web through self-attention, including non-Gaussian information.Keywords
Funding Information
- Centre national d'études spatiales (https://ror.org/04h1h0y33)
- DIM Origines (IDF-DIM- ORIGINES-2024-1-01)
This publication has 27 references indexed in Scilit:
- Interpretability of deep-learning methods applied to large-scale structure surveysAstronomy & Astrophysics, 2026
- The BIG SOBOL SEQUENCE: How many simulations do we need for simulation-based inference in cosmology?Astronomy & Astrophysics, 2025
- Cosmology with cosmic web environmentsAstronomy & Astrophysics, 2022
- Encoding large-scale cosmological structure with generative adversarial networksAstronomy & Astrophysics, 2021
- Planck2018 resultsAstronomy & Astrophysics, 2020
- The frontier of simulation-based inferenceProceedings of the National Academy of Sciences of the United States of America, 2020
- Deep learningNature, 2015
- Evolution of Structure in Cold Dark Matter UniversesThe Astrophysical Journal, 1998
- How filaments of galaxies are woven into the cosmic webNature, 1996
- Reverse-time diffusion equation modelsStochastic Processes and their Applications, 1982