English

Convolutional Vision Transformer for Cosmology Parameter Inference

Instrumentation and Methods for Astrophysics 2024-11-28 v2

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 (ViTs) and convolutional neural networks (CNNs). We use this approach to infer the Ωm\Omega_m and σ8\sigma_8 cosmological parameters from simulated dark matter and halo fields. Our experiments indicate that the constraints on Ωm\Omega_m and σ8\sigma_8 obtained using CvT are better than 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/}.

Cite

@article{arxiv.2411.14392,
  title  = {Convolutional Vision Transformer for Cosmology Parameter Inference},
  author = {Yash Gondhalekar and Kana Moriwaki},
  journal= {arXiv preprint arXiv:2411.14392},
  year   = {2024}
}

Comments

Accepted at the NeurIPS ML4PS Workshop 2024. The code is available at https://github.com/Yash-10/cvt-cosmo-inference/

R2 v1 2026-06-28T20:08:10.757Z