Skip to main content
QUICK REVIEW

[Paper Review] OmniSpectra: A Unified Foundation Model for Native Resolution Astronomical Spectra

Md Khairul Islam, Judy Fox|arXiv (Cornell University)|Jan 21, 2026
Galaxies: Formation, Evolution, PhenomenaPhysics and Astronomy0 citations
TL;DR

OmniSpectra is the first native-resolution foundation model for astronomical spectra that handles variable-length inputs from multiple surveys, enabling strong zero-shot and few-shot transfer across tasks like classification and property estimation.

ABSTRACT

We present OmniSpectra, the first native-resolution foundation model for astronomy spectra. Unlike traditional models, which are limited to fixed-length input sizes or configurations, OmniSpectra handles spectra of any length at their original size, without resampling or interpolation. Despite the large-scale spectroscopic data from diverse surveys fueling the rapid growth of astronomy, existing foundation models are limited to a fixed wavelength range and specific instruments. OmniSpectra is the first foundation model to learn simultaneously from multiple real-world spectra surveys with different configurations at a large scale. We achieve this by designing a novel architecture with adaptive patching across variable lengths, sinusoidal global wavelength encoding, local positional embeddings through depthwise convolution, and validity-aware self-attention masks. Allowing us to learn multi-scale spatial patterns while skipping attention for invalid patches. Even with a limited training example, OmniSpectra demonstrates excellent zero-shot generalization compared to methods tailored for specific tasks. This transfer learning capability makes this model the state-of-the-art across various astronomy tasks, including source classification, redshift estimation, and properties prediction for stars and galaxies. OmniSpectra reduces the need for training individual models for different tasks from scratch, establishing itself as the next-generation astronomy foundation model.

Motivation & Objective

  • Motivate unified representation learning for spectra from diverse instruments and resolutions without resampling or fixed-size inputs.
  • Pretrain a self-supervised, native-resolution Transformer on multi-survey spectral data to learn general spectral representations.
  • Demonstrate zero-shot and few-shot transfer to downstream tasks including galaxy/stellar property estimation, redshift prediction, and source classification.
  • Show ablation evidence for architectural components like wavelength embedding and local positional embedding.

Proposed method

  • Patch-based tokenization of spectra into overlapping patches with mean and std as part of each token.
  • Hybrid embedding combining learned data projection with global sinusoidal wavelength encoding and local depthwise convolutional embedding.
  • Masked reconstruction objective with contiguous chunk masking and validity-aware self-attention to handle variable-length inputs.
  • Transformer backbone with Flash Attention and a validity mask to compute attention only over real patches.
  • Downstream linear probes for regression and classification tasks with mean-pooled token representations.
Figure 1: OmniSpectra: model architecture overview. Left: Spectra tokenization and masking steps. Middle: The Masked Transformer architecture with wavelength and local positional embedding. Right: Downstream tasks
Figure 1: OmniSpectra: model architecture overview. Left: Spectra tokenization and masking steps. Middle: The Masked Transformer architecture with wavelength and local positional embedding. Right: Downstream tasks

Experimental results

Research questions

  • RQ1Can a single self-supervised model learn from multiple spectroscopic surveys with different resolutions and wavelength coverages?
  • RQ2Does native-resolution processing improve cross-survey generalization and reduce need for task-specific encoders?
  • RQ3How does OmniSpectra perform on downstream tasks (galaxy/stellar properties, redshift, source classification) compared to task-specific baselines?
  • RQ4What is the contribution of architectural components (global wavelength embedding, local positional embedding, validity-aware attention) to performance?

Key findings

  • OmniSpectra achieves state-of-the-art performance across a wide range of downstream tasks, with strong zero-shot generalization.
  • The model is pretrained concurrently on eight diverse surveys totaling 5.5 million examples, learning from spectra at native lengths.
  • Ablation studies show all three core components (global wavelength embedding, local positional embedding, and validity-aware attention) contribute to reconstruction and downstream task performance, with wavelength embedding being particularly impactful.
  • In zero-shot and few-shot settings, OmniSpectra outperforms several baselines (including AstroCLIP, Specformer, SpectraFM, GalSpecNet, and Spender) on galaxy and stellar property estimation and source classification.
  • The approach demonstrates robust performance across heterogeneous datasets and tasks, reducing the need for task-specific models.
Figure 2: Few-shot redshift prediction for galaxy spectrum (here $Z$ represents redshift). OmniSpectra outperforms the current best models in R2-score ( $\uparrow$ ).
Figure 2: Few-shot redshift prediction for galaxy spectrum (here $Z$ represents redshift). OmniSpectra outperforms the current best models in R2-score ( $\uparrow$ ).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.