On the performance of pre-trained vision transformers for supernova spectral classification using different spectral representations

arXiv:2608.21520 · astro-ph.IM · Submitted 2026-08-21 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Astrophysics. The day in astrophysics: observations, models and what the data forces.

Vera: I'm Vera.

Jocelyn: And I'm Jocelyn, here with Subrahmanyan.

Vera: We're looking at the paper: "On the performance of pre-trained vision transformers for supernova spectral classification using different spectral representations".

Title and authors: Vera: So we're looking at this paper today titled "On the performance of pre-trained vision transformers for supernova spectral classification using different spectral representations". It's about taking these large vision transformer models and seeing how well they do when classifying spectra, but it tests several different ways you can look at that data.

Jocelyn: Yeah, it really gets into how the visual representation matters when you apply these image-based architectures to data that is intrinsically one dimensional, which is a bit of a tricky spot. This paper explores how those different visual representations and the fine-tuning strategies change the final classification performance.

Subrahmanyan: From my side, I'm interested in how this affects our ability to reliably identify these Type Ia events for cosmology. If the classification is inconsistent because of how we visualize the spectrum, that uncertainty translates directly into our cosmological measurements.

Vera: Exactly what I mean. The authors are testing this on a dataset of four thousand eleven supernova spectra, which they've split into three astrophysically motivated classes: normal Type Ia, other Type Ia subtypes, and core-collapse supernovae <ref:2608.21520#pg3>. They show that they use two different visual encodings for the spectra: direct flux-wavelength visualizations and these heatmap representations called flux-difference versus wavelength-difference or dfdw.

Jocelyn: And what they found is that the direct flux-wavelength plot generally ranks as the top performer on average across all six model configurations they tested. That's a pretty concrete finding for us to start with.

Subrahmanyan: I wonder how much robustness that advantage holds when you move from a simple visualization to something more complex like those difference maps. The bigger picture is whether we can build models that are as robust as possible across different ways we present the same physical information.

The paper's summary: Vera: So, to summarize what they did, they took four different Transformer-based vision backbones—things like isotropic Vision Transformers and hierarchical Swin Transformers—and tried them on this dataset of spectra. They also looked at three distinct fine-tuning strategies for these models: freezing the backbone and only training the classifier head, partially fine-tuning by unfreezing the last four layers, or fully fine-tuning everything.

Jocelyn: And they compared these setups against each other across both visual representations we talked about earlier. They found that using those different backbones and tuning them differently led to a macro F1 score of eighty-six point three percent on the held-out test set for their best model, which was called vitb-p16.

Subrahmanyan: That's a solid number for a single-spectrum classification task. But what's important is how the error breaks down by class: they got ninety-four percent F1 for normal Type Ia, seventy-seven percent for other Type Ia subtypes, and eighty-eight percent for core-collapse supernovae. That tells us where the model is succeeding and where it still has trouble.

Vera: And then they pointed out a specific issue: the dominant misclassification they saw was confusion between Ia-91T and normal Ia spectra, which they say is a phase-dependent effect that matches what we already know about the spectral evolution of that subtype.

Jocelyn: So, it's not just a general classification problem; there's this specific confusion happening at certain phases. It sounds like the model is picking up on some subtle spectral changes but misinterpreting them when they happen in a specific way.

Subrahmanyan: That phase dependence is crucial because it means if we rely on this for cosmological applications, we need to be extremely careful about which phase of the supernova we are looking at and how that affects our results.

The paper's improvements: Vera: Now, looking at what the authors suggest as improvements, one key thing is that they showed how different visual encodings help. They found that using those direct flux-wavelength plots gives you the best average performance across all six model configurations they tested.

Jocelyn: And another improvement suggestion is about tuning the architecture itself. They compared using pre-trained backbones as fixed feature extractors against fully fine-tuning all backbone layers, and they found that fully fine-tuning gave substantially larger improvements in performance.

Subrahmanyan: That suggests that for a deep model like this, just training the top layer isn't enough; you need to train the whole thing to get those gains. That links back to my point about robustness—we need models that learn the underlying physics, not just memorize a few features at the output stage.

Vera: And they also highlighted leveraging pre-trained backbones, like that self-supervised DINOv3 backbone, which they showed can provide strong performance even when you're not doing any fine-tuning at all in certain settings.

Jocelyn: So it’s about using the right tools—the best visual input representation and the right training approach—to get a good result from these vision models, regardless of what specific backbone you choose.

Subrahmanyan: It's interesting how the paper focuses on that practical optimization rather than just building bigger models. It shows that optimizing the setup around a fixed architecture can yield significant gains in classification accuracy.

Conclusion: Vera: So, wrapping this up with this paper on "On the performance of pre-trained vision transformers for supernova spectral classification using different spectral representations," the main thing to take away is that Vision Transformer architectures can indeed achieve competitive performance for automatic single-spectrum supernova spectral classification.

Jocelyn: And the most persistent source of error they identified was definitely that confusion between Ia-91T and Ia-norm spectra, and how it changes based on the phase of the supernova, specifically when it rises to sixty-two point five percent at post maximum phases.

Subrahmanyan: That phase dependence is a major caveat for anyone using these models for cosmology; we have to be aware that only twenty-three point three percent of premaximum Ia-91T spectra are misclassified, but that number jumps up significantly by post-maximum phases.

Vera: So, the paper confirms that while these AI models can do this, they still need refinement before we can fully rely on them for precise cosmological tasks.

Jocelyn: It sounds like the next challenge in this area is figuring out how to make that subtype discrimination for Ia-91T better; that's where the real work is going to be.

Subrahmanyan: I agree, improving subtype discrimination for Ia-91T remains an open challenge for spectroscopic classifiers, and we need observational data that can probe those phase dependencies more thoroughly to confirm or deny these model predictions.

J. Serrano Bell, P. Gálvez Molina, V. Contreras Rojas, W. Fox Fortino, M. Rojas, P. Protopapas, F. Bianco

Instituto de Ciencias Físicas (ICIFI-CONICET) · Instituto Tecnológico de Buenos Aires (ITBA) · University of Delaware · Departamento de Astronomđa, Universidad de La Serena · John A. Paulson School of Engineering and Applied Sciences, Harvard University · Joseph R. Biden, Jr. School of Public Policy and Administration, University of Delaware · Vera C. Rubin Observatory

astro-ph.IM

Submitted: 2026-08-21

Updated: 2026-12-02

Comments: Accepted for publication in Astronomy & Astrophysics. Revised following peer review

Code: https://github.com/juanserrano90/codelatam

License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/

The gist: The spectroscopic classification of supernovae is a key component of time-domain astronomy and plays an important role in the identification of Type Ia events for cosmological…

Key concepts

Flux-Wavelength Plot
This is a direct visualization of a supernova spectrum where the x-axis represents wavelength and the y-axis represents the measured flux (brightness) at that wavelength. The study found this representation generally performed best across all tested models, providing a clear view of spectral features.
Flux-Difference Versus Wavelength-Difference Heatmap (dfdw)
This is an alternative visual encoding for spectra. Instead of showing raw flux, it maps the difference in flux values between adjacent wavelengths against the difference in wavelength between those points. This representation is designed to emphasize subtle structural differences within the spectrum.
Transformer-based Vision Models
These are AI architectures originally designed for images, but adapted here to classify one-dimensional spectral data. The researchers used various versions, including ViT and Swin Transformers, showing that these complex models can effectively learn patterns in supernova spectra.
Fine-Tuning Strategies
This refers to how the AI model is trained on the data. The study compared three methods: freezing the entire model, training only the final classification layer, and fully fine-tuning all layers. Fully fine-tuning was shown to yield substantially larger performance improvements.

Terminology

Summary

The spectroscopic classification of supernovae is a key component of time-domain astronomy and plays an important role in the identification of Type Ia events for cosmological applications. p. 0<ref:2608.21520#pg1, The spectroscopic classification of supernovae is a key component of time-domain astronomy and plays an important role in the identification of Type Ia events for cosmological applications>. p. 0

Pruning redundant reasoning tokens

This work explores the use of Transformer-based vision models for supernova spectral classification, focusing on how different visual representations of spectra and fine-tuning strategies affect classification performance when image-based architectures are applied to intrinsically one-dimensional data.<ref:2608.21520#pg1, In this work, we explore the use of Transformer-based vision models for supernova spectral classification, focusing on how different visual representations of spectra and fine-tuning strategies affect classification performance when image-based architectures are applied to intrinsically one-dimensional data>. p. 0

Data and Representation Exploration

The study considers a dataset of 4,011 supernova spectra, augmented and rebalanced into three astrophysically motivated classes: normal Type Ia, other Type Ia subtypes, and core-collapse supernovae.<ref:2608.21520#pg1, We consider a dataset of 4,011 supernova spectra, augmented and rebalanced into three astrophysically motivated classes: normal Type Ia, other Type Ia subtypes, and core-collapse supernovae>. p. 0 Spectra are encoded as line-plot images using direct flux-wavelength visualizations as well as alternative flux-difference versus wavelength-difference heatmap representations (dfdw) designed to emphasize differential spectral structure. p. 0<ref:2608.21520#pg1, Spectra are encoded as line-plot images using direct flux-wavelength visualizations as well as alternative flux-difference versus wavelength-difference heatmap representations (dfdw) designed to emphasize differential spectral structure>. p. 0 The authors investigate two complementary visual representations of SN spectra and their performance across different ViT-based architectures for spectral classification. p. 1<ref:2608.21520#pg1>. The flux-wavelength plot ranks as the top-performing representation on average across all six model configurations. p. 7<ref:2608.21520#pg8, The flux-wavelength plot ranks as the top-performing representation on average across all six model configurations>. p. 7

Model Architecture and Fine-Tuning

The experimental setup introduces four Transformer-based vision backbones with different architectural inductive biases and pre-training strategies.<ref:2608.21520#pg6, We adopted four Transformer-based vision backbones with different architectural inductive biases and pre-training strategies>. p. 5 These include the isotropic Vision Transformers (ViT), hierarchical Swin Transformers, and a self-supervised DINOv3-pretrained ViT. p. 0<ref:2608.21520#pg6>. The authors investigated the impact of different finetuning strategies on the transformer backbone models by considering three configurations: using the pre-trained backbones as fixed feature extractors and training only the classifier head, partially fine-tuning by unfreezing the last four transformer layers, and fully fine-tuning all backbone layers. p. 6<ref:2608.21520#pg7, In the first stage, we investigated the impact of different finetuning strategies for the transformer backbone models by considering three configurations: using the pre-trained backbones as fixed feature extractors and training only the classifier head, partially fine-tuning by unfreezing the last four transformer layers, and fully fine-tuning all backbone layers>. p. 6

Performance and Key Findings

The best model reaches a macro-F1 score of 86.3% on the held-out test set with per-class F1 scores of 94% for normal Ia, 77% for other Ia subtypes, and 88% for core-collapse supernovae. p. 0<ref:2608.21520#pg1, On the held-out test set, our best model (vitb-p16) reaches a macro-F1 score of 86. p. 03%, with per-class F1 scores of 94% for normal Ia, 77% for other Ia subtypes, and 88% for core-collapse supernovae>. p. 0 The dominant misclassification arises from confusion between Ia-91T and normal Ia spectra, a phase-dependent effect consistent with the known spectral evolution of this subtype. p. 0<ref:2608.21520#pg10, The dominant misclassification arises from confusion between Ia-91T and normal Ia spectra, a phase-dependent effect consistent with the known spectral evolution of this subtype>. p. 0 The results demonstrate that Transformer-based vision models can provide competitive performance for single-spectrum supernova spectral classification. p. 0<ref:2608.21520#pg1, These results demonstrate that Transformer-based vision models can provide competitive performance for single-spectrum supernova spectral classification>. p. 0

Conclusion

Overall, this study demonstrates that Vision Transformer architectures can achieve competitive performance for automatic SN spectral classification from a single spectrum.<ref:2608.21520#pg11>. The dominant and most persistent source of classification error was the confusion between Ia-91T and Ia-norm spectra. p. 9<ref:2608.21520#pg10, The dominant and most persistent source of classification error was the confusion between Ia-91T and Ia-norm spectra>. p. 9 This confusion is strongly phase-dependent: only 23. p. 93% of premaximum Ia-91T spectra are misclassified, rising to 62. p. 9 p. 95% at post-maximum phases. p. 9<ref:2608.21520#pg10, This confusion is strongly phase-dependent: only 23. p. 93% of premaximum Ia-91T spectra are misclassified, rising to 62.5% at post-maximum phases>. p. 9 Improved subtype discrimination for Ia-91T remains an open challenge for spectroscopic classifiers. p. 9<ref:2608.21520#pg10, Improved subtype discrimination for Ia-91T remains an open challenge for spectroscopic classifiers>. p. 9 The paper is 2608. p. 021520.<ref:2608.

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. System can perform robust classification by systematically comparing different visual representations of one-dimensional data, specifically direct flux-wavelength line plots against flux-difference versus wavelength-difference maps (dfdw).

  2. The AI system can select optimal model and representation choices based on staged evaluation, as the paper shows that the flux-wavelength plot ranks as the top-performing representation on average: across all six model configurations, its macro-F1 score lies at least 1σ above the mean computed over all models and representations.

  3. The system can adapt fine-tuning strategies to improve performance by using fully fine-tuning all backbone layers when comparing it to classification based on frozen representations, which is found to yield substantially larger improvements.

  4. The AI system can leverage pre-trained Vision Transformer backbones, such as the self-supervised DINOv3 backbone, which are shown to provide strong performance even without fine-tuning in certain regimes.

  5. The system can identify and mitigate dominant misclassification patterns by recognizing that the dominant and most persistent source of classification error was the confusion between Ia-91T and Ia-norm spectra, which is phase dependent.

Sources

Related papers