Vision Transformers for Cosmological Fields: Application to Weak Lensing Mass Maps

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Kakadia, Jash, Agrawal, Shubh, Zhong, Kunhao, Jain, Bhuvnesh
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917132380405760
author Kakadia, Jash
Agrawal, Shubh
Zhong, Kunhao
Jain, Bhuvnesh
author_facet Kakadia, Jash
Agrawal, Shubh
Zhong, Kunhao
Jain, Bhuvnesh
contents Weak gravitational lensing is a powerful probe of the universe's growth history. While traditional two-point statistics capture only the Gaussian features of the convergence field, deep learning methods such as convolutional neural networks (CNNs) have shown promise in extracting non-Gaussian information from small-scale, nonlinear structures. In this work, we evaluate the effectiveness of attention-based architectures, including variants of vision transformers (ViTs) and shifted window (Swin) transformers, in constraining the cosmological parameters $Ω_m$ and $S_8$ from weak lensing mass maps. Using a simulation-based inference (SBI) framework, we compare transformer-based methods to CNNs. We also examine performance scaling with the number of available $N$-body simulations, highlighting the importance of pre-training for transformer architectures. We find that the Swin transformer performs significantly better than vanilla ViTs, especially with limited training data. Despite their higher representational capacity, the Figure of Merit for cosmology achieved by transformers is comparable to that of CNNs under realistic noise conditions.
format Preprint
id arxiv_https___arxiv_org_abs_2512_07125
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Vision Transformers for Cosmological Fields: Application to Weak Lensing Mass Maps
Kakadia, Jash
Agrawal, Shubh
Zhong, Kunhao
Jain, Bhuvnesh
Cosmology and Nongalactic Astrophysics
Weak gravitational lensing is a powerful probe of the universe's growth history. While traditional two-point statistics capture only the Gaussian features of the convergence field, deep learning methods such as convolutional neural networks (CNNs) have shown promise in extracting non-Gaussian information from small-scale, nonlinear structures. In this work, we evaluate the effectiveness of attention-based architectures, including variants of vision transformers (ViTs) and shifted window (Swin) transformers, in constraining the cosmological parameters $Ω_m$ and $S_8$ from weak lensing mass maps. Using a simulation-based inference (SBI) framework, we compare transformer-based methods to CNNs. We also examine performance scaling with the number of available $N$-body simulations, highlighting the importance of pre-training for transformer architectures. We find that the Swin transformer performs significantly better than vanilla ViTs, especially with limited training data. Despite their higher representational capacity, the Figure of Merit for cosmology achieved by transformers is comparable to that of CNNs under realistic noise conditions.
title Vision Transformers for Cosmological Fields: Application to Weak Lensing Mass Maps
topic Cosmology and Nongalactic Astrophysics
url https://arxiv.org/abs/2512.07125