TRANSMISSION // 2608.21520v2
Can vision transformers read supernova spectra?
Source published
A study finds that pretrained vision transformers can classify supernova spectra, but results depend on how spectra are encoded and the test data remain limited.

Supernova spectra are one-dimensional signals, but can image-recognition models make sense of them as pictures? Researchers compared pretrained vision transformers and different ways of turning spectra into images. A simple line plot performed best on average, while confusion between some Type Ia subtypes highlights limits of the approach.
Supernova spectra—the patterns of light intensity across wavelengths—help astronomers identify what kind of explosion they are observing. As surveys gather more observations, automated classification could help researchers sort these signals. A new study tests whether vision transformers, models usually built to analyze images, can classify supernova spectra, and whether the way a spectrum is represented changes the result.
The researchers studied 4,011 spectra from a curated collection. They grouped them into three broad categories: normal Type Ia supernovae, other Type Ia subtypes, and core-collapse supernovae. The three-category scheme simplifies the more varied real-world classification system: “other Type Ia” combines several distinct subtypes.
To make spectra suitable for vision models, the team turned each one-dimensional signal into an image. One format was a line plot of flux against wavelength. The other, called a flux-difference versus wavelength-difference map, represented pairwise changes in the spectrum as a heatmap. Such maps might emphasize subtle differences, but they also lose information about where a feature occurs along the wavelength axis.
The team tested several pretrained model designs, including Vision Transformers, Swin Transformers and a DINOv3-pretrained model. Pretraining means a model first learns visual patterns from another dataset; fine-tuning adapts it to a new task. The researchers compared keeping the pretrained model fixed with updating some or all of its layers. They also tried different map resolutions and color scales, and tuned training settings.
To reduce the risk that spectra from the same supernova would appear in both training and evaluation, the researchers split the data by supernova rather than by individual spectrum. They balanced classes in training through up-sampling, which adds copies of examples from underrepresented groups; some copies were augmented with pixel shifts, artificial spikes, or both, while others received no modification. The held-out test set was not rebalanced. The main score, macro-F1, averages performance across the three classes, giving each class equal weight rather than letting the largest class dominate.
A straightforward plot came out ahead
Across the model configurations examined, the flux-wavelength line plot performed best on average. The difference maps were not uniformly worse: a logarithmically scaled 50-by-50 map worked well with one fully fine-tuned Swin model, producing the highest validation score among the tested configurations. But that advantage did not carry over to the final test ranking.
On the held-out test set, the best configuration was a fully fine-tuned Vision Transformer with 16-by-16 image patches. It achieved a macro-F1 of 86.3%. Its per-class F1 scores were 94% for normal Type Ia, 77% for other Type Ia subtypes, and 88% for core-collapse supernovae. The lower score for “other Ia” reflects how challenging that mixed category was for the models.
The most persistent confusion involved Type Ia-91T spectra, which models sometimes labeled as normal Type Ia. The paper notes that Ia-91T spectra change over time and can come to resemble normal Type Ia spectra. In the pooled results, the authors report more confusion for post-maximum than pre-maximum spectra. They also observed confusion between core-collapse events and the “other Ia” group.
A promising test, not a deployment verdict
This is a methodological comparison, not a demonstration that vision transformers are ready to replace existing classification tools. The test set comes from a curated template collection of relatively high signal-to-noise spectra. The authors say it does not represent the lower-quality observations expected for faint events in current and future surveys. The dataset also does not establish robustness to strong host-galaxy contamination or data outside the conditions represented in the collection.
The results apply to the study’s simplified labels and evaluation setup. A score for “other Ia” does not show that the model can reliably identify each subtype in that group. Comparisons with published classifier scores are not direct because taxonomies, data treatments and evaluation protocols differ. The researchers did not conduct a matched comparison with template-matching tools or human-assisted workflows, so the results do not establish that transformers outperform those approaches.
The work is presented as an Astronomy & Astrophysics manuscript and proof and is available as an arXiv preprint. Its findings should be read as a research comparison, not settled evidence of operational performance. The authors say the code and data products are publicly available. Independent tests on new observations—with different noise levels, instruments and observing conditions—would be needed to assess how well the approach transfers beyond this dataset.
- supernovae
- spectroscopy
- vision transformers
- Type Ia supernovae
- machine learning
- astronomy
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Infrared Light Curves May Offer a New Way to Measure Supernova Distances
Source published
Shared keywords: type ia supernovae
Supernova gamma-ray edges could reveal stellar ancestry
Source published
Shared keywords: type ia supernovae
Two supernova populations may explain host-galaxy brightness steps
Source published
Shared keywords: type ia supernovae
The first stars alone may not explain the iron in tiny galaxies
Source published
Shared keywords: type ia supernovae
Cosmic rulers constrain low-density shells, but do not reveal a unique one
Source published
Shared keywords: type ia supernovae