Applying vision transformers to the spectral analysis of astronomical objects

Read full text
Authors: Luis Felipe Strano Moraes, Ignacio Becker, Pavlos Protopapas, G. Cabrera-Vives
Cited by: 2
References: 50

Abstract

We applied pretrained vision transformers (ViTs), originally developed for image recognition, to the analysis of astronomical spectral data. By converting traditional 1D spectra into 2D image representations, we enable ViTs to capture both local and global spectral features through spatial self-attention. We fine-tuned a ViT pretrained on ImageNet using millions of spectra from the Sloan Digital Sky Survey (SDSS; Kollmeier et al. 2019, in BAAS, 51, 274; Stoughton et al. 2002, AJ, 123, 485) and Large Sky Area Multi-Object Fiber Spectroscopic Telescope (LAMOST; Luo et al. 2015, Res. Astron. Astrophys., 15, 1095) surveys, represented as spectral plots. Our model is evaluated on key tasks including stellar object classification and redshift ( z ) estimation, where it demonstrates strong performance and scalability. We achieved classification accuracy higher than that of support vector machines and random forests, and we attain R 2 values comparable to AstroCLIP’s spectrum encoder, even when generalizing across diverse object types. These results demonstrate the effectiveness of using pretrained vision models for spectroscopic data analysis. To our knowledge, this is the first application of ViTs to large-scale astronomical datasets, which also leverages real spectroscopic data and does not rely on synthetic inputs.

Fields of Study & Subjects

Astronomical Observations and Instrumentation Infrared Target Detection Methodologies

Publication details

Journal / source
Astronomy and Astrophysics
Publisher
EDP Sciences
Volume
709
Pages
A122–A122
Publication date
30 March 2026
Language
EN