Convolutional Vision Transformer for Cosmology Parameter Inference
Abstract
Parameter inference is a crucial task in modern cosmology that requires accurate and fast computational methods to handle the high precision and volume of observational datasets. In this study, we explore a hybrid vision transformer, the Convolution vision Transformer (CvT), which combines the benefits of vision transformers and convolutional neural networks. We use this approach to infer the $\Omega_m$ and $\sigma_8$ cosmological parameters from simulated dark matter and halo fields. Our experiments indicate that the constraints on $\Omega_m$ and $\sigma_8$ obtained using CvT are better than the traditional vision transformer (ViT) and CNN, using either dark matter or halo fields. For CvT, pretraining on dark matter fields proves advantageous for improving constraints using halo fields compared to training a model from the beginning. However, ViT and CNN do not show these benefits. The CvT is more efficient than ViT since, despite having more parameters, it requires a training time similar to that of ViT and has similar inference times. The code is available at \url{https://github.com/Yash-10/cvt-cosmo-inference/}.
- Publication:
-
arXiv e-prints
- Pub Date:
- November 2024
- DOI:
- 10.48550/arXiv.2411.14392
- arXiv:
- arXiv:2411.14392
- Bibcode:
- 2024arXiv241114392G
- Keywords:
-
- Astrophysics - Instrumentation and Methods for Astrophysics
- E-Print:
- Accepted at the NeurIPS ML4PS Workshop 2024. The code is available at https://github.com/Yash-10/cvt-cosmo-inference/