OmniSpectra: A Unified Foundation Model for Universal Spectra Representation Learning
Organizations: Computer Science Dept, University of Virginia · School of Data Science, University of Virginia
Abstract
Standard sequence models encode position by token rank rather than physical coordinate, typically forcing practitioners to destructively resample continuous physical signals such as spectra observed across heterogeneous instruments. We identify this coordinate mismatch as a structural limitation in cross-instrument representation learning, and propose OmniSpectra, a wavelength-native foundation model for spectral representation learning: a continuous-coordinate masked autoencoder that discards the integer pixel indexing of sequence modeling. Mapping physical coordinates to a logarithmic basis turns the multiplicative scaling induced by cosmological redshift into a uniform additive shift. In continuous rotary position embeddings, this shared shift cancels from relative token distances rather than producing grid-dependent positional distortion. We further counter the spectral bias inherent to implicit neural decoders with a physics-grounded, resolution-gated Fourier decoder that provides anti-aliasing. Pretrained on eight surveys and benchmarked against seven baselines, our model reaches state-of-the-art performance with only 12.2M parameters while outperforming substantially larger models, indicating that encoding physical structure can substitute for parameter scale.
Figures & tables
| Dimension | Std Transformer | OmniSpectra |
|---|---|---|
| Content | Semantic tokens | Local line shape |
| Position Anchor | Integer index | Physical with RoPE |
| Mapping | Sequence steps | Continuous axis |
| Attention | Distance | Energy ratio |
| Decoder bias | Low-frequency bias | Resolution gating |
| (K) | (dex) | (dex) | ||||
|---|---|---|---|---|---|---|
| Model | ||||||
| SDSS | ||||||
| OmniSpectra | 0.93 | 158 | 0.31 | 0.22 | 0.58 | 0.21 |
| AstroCLIP | 0.90 | 168 | 0.24 | 0.22 | 0.46 | 0.21 |
| Shen et al. | 0.89 | 200 | 0.19 | 0.21 | 0.41 | 0.26 |
| Perceiver | 0.90 | 233 | 0.22 | 0.31 | 0.49 | 0.24 |
| sSFR | ||||||||
| Model | ||||||||
| OmniSpectra | 0.72 | 1.00 | 0.55 | 0.57 | 0.69 | 0.41 | 0.89 | 0.20 |
| AION-1 | 0.64 | 1.13 | 0.47 | 0.62 | 0.60 | 0.49 | 0.88 | 0.20 |
| AstroCLIP | 0.62 | 1.15 | 0.46 | 0.60 | 0.61 | 0.48 | 0.86 | 0.22 |
| Shen et al. | 0.65 | 1.11 | 0.49 | 0.67 | 0.63 | 0.46 | 0.86 | 0.21 |
| Perceiver | 0.63 | 1.18 | 0.49 | 0.67 | 0.60 | 0.48 | 0.84 | 0.23 |
| Model | Galaxy | Quasar | Star |
|---|---|---|---|
| OmniSpectra | 0.99 | 0.93 | 0.97 |
| AION-1 | 0.87 | 0.05 | 0.40 |
| AstroCLIP | 0.98 | 0.92 | 0.92 |
| Shen et al. | 0.98 | 0.89 | 0.92 |
| Perceiver | 0.98 | 0.89 | 0.93 |
| GalSpecNet | 0.94 | 0.54 | 0.45 |
| Model | ( ) | ( ) | Outlier % ( ) |
|---|---|---|---|
| OmniSpectra | 0.99 | 0.0001 | 0.06 |
| AION-1 | 0.99 | 0.01 | 0.07 |
| AstroCLIP | 0.98 | 0.01 | 0.06 |
| Shen et al. | 0.95 | 0.01 | 0.11 |
| Perceiver | 0.95 | 0.01 | 0.14 |
| GaSNet-III | 0.97 | 0.0001 | 0.28 |
| Component | Base | Tok | PE | Dec | Gate | Full |
|---|---|---|---|---|---|---|
| Tokenizer | – | – | ✓ | ✓ | ✓ | ✓ |
| Positional Code | – | ✓ | – | ✓ | ✓ | ✓ |
| Implicit Decoder | – | ✓ | ✓ | – | ✓ | ✓ |
| LSF Gate | – | ✓ | ✓ | – | – | ✓ |
| Task Performance | ||||||
| Stellar | 0.544 | 0.568 | 0.560 | 0.561 | 0.581 | 0.599 |
Representation Learning
Representation learning develops data transformations that expose useful structure for prediction, transfer, generation, and control.
See all 798 papers