JEPA for astronomy: multi-survey spectral alignment puts stellar parameters on the leading principal axes

Xiaosheng Zhao, Rosemary F. G. Wyse, Yuan-Sen Ting, Alexander S. SzalayarXiv 2026 · arXiv

TL;DR

By applying a non-contrastive alignment objective (JEPA) to stellar spectra from multiple surveys, researchers have created a foundation model where fundamental stellar physics naturally emerges on the primary axes of the data. This approach makes physical parameters like temperature and metallicity "linearly legible"—meaning they can be read out with simple math—and enables high-fidelity chemical mapping of 8 million stars across the Milky Way.

What Problem Does This Paper Address?

In astronomy, different surveys (like Gaia, LAMOST, and APOGEE) often observe the same stars but through different "lenses"—varying resolutions, wavelength coverages, and instrumental noise. To build a unified "foundation model" for stars, researchers typically align these different views into a shared mathematical space called an embedding.

The standard industry recipe for this is contrastive learning (e.g., CLIP). Contrastive models work by pulling views of the same object together while aggressively pushing views of different objects apart. However, the authors argue this is counterproductive for stellar physics. In a large survey, many stars are essentially identical "twins." Forcing the model to distinguish between every single star can "tangle" the underlying physical information, making it difficult to extract parameters like surface gravity or chemical abundance without complex, non-linear decoders.

Methods

The authors propose using a Joint-Embedding Predictive Architecture (JEPA). Unlike contrastive models, JEPA does not use "negative examples" to push stars apart. Instead, it uses distribution matching.

The architecture consists of survey-specific encoders (backbones) that map spectra into a shared 768-dimensional space. During training, the model:

  1. Pulls together matched views of the same star from different surveys (Invariance).
  2. Constrains the overall distribution of the embeddings to match a target (like a Laplace distribution) to prevent the model from collapsing into a single point (Regularization).

By holding the neural network architecture constant and only varying the training objective (JEPA vs. CLIP vs. a standard Autoencoder), the authors could isolate exactly how the choice of "loss function" affects the organization of physical information.

The multi-survey alignment process maps different spectral views into a shared physical space.

Datasets

The model was trained on cross-matched observations from four major surveys:

  • Gaia XP: Low-resolution, all-sky optical spectra.
  • LAMOST LRS: Medium-resolution optical spectra.
  • DESI: High-resolution optical spectra.
  • APOGEE: High-resolution near-infrared spectra.

The training set included approximately 820,000 Gaia-LAMOST pairs, with smaller subsets for other survey combinations. Evaluation was performed on a "withheld" sample of ~11,000 stars with high-quality reference labels.

Key Insights and Ideas

  • Emergent Physics: Without ever being shown a label for temperature or gravity, the JEPA model's first two principal components (PC1 and PC2) naturally organized themselves into a "Kiel diagram"—a fundamental plot used by astronomers to categorize stars.
  • Legibility is Key: The authors define "legibility" as the ease of reading information out of an embedding. JEPA produces highly legible embeddings where physical parameters align with the axes of greatest variance.
  • The Power of "No Negatives": By not forcing stars apart, JEPA allows the model to focus on the shared physical state. This makes the iron abundance ([Fe/H]) align almost perfectly with the third principal component (PC3).
  • Synergy Across Resolutions: Aligning low-resolution Gaia data with high-resolution partners (like APOGEE) actually "teaches" the Gaia embeddings where the chemistry is hidden, significantly improving the accuracy of predictions made from Gaia data alone.

Key Results

The JEPA objective consistently outperformed both the contrastive (CLIP) and unaligned (Autoencoder) models in "linear probes"—simple linear regressions used to recover stellar labels.

  • Accuracy: For [$\alpha$/Fe] (a key chemical marker), the JEPA model achieved a linear recovery $R^2$ of 0.79, compared to just 0.58 for the unaligned autoencoder.
  • Visualizing the Embedding: As seen in Figure 2, JEPA recovers a sharp, ordered gradient for iron abundance in its leading components, whereas the unaligned model leaves the information scrambled.
Figure 2. Linear legibility of [Fe/H]. Each panel shows the first two principal components, PC1 and PC2, colored by PC3, from embeddings of two alignment models (JEPA, top left; CLIP, bottom left) and one unaligned autoencoder (AE, bottom right). The APOGEE Kiel diagram colored by [Fe/H] (top right) is shown as the physical anchor. Components are computed independently for each panel and are in arbitrary units. The same 40,000 stars are shown throughout. Reconstruction alone (AE) leaves [Fe/H] unordered. In contrast, alignment recovers the ordering, and the objective determines how sharply it is recovered (JEPA vs CLIP).
  • Milky Way Mapping: The authors applied their model to 8.0 million Gaia XP giant stars. The resulting map (Figure 4) successfully recovered the known chemical structures of the Milky Way, including the thin disk, thick disk, and debris from ancient galactic collisions (Gaia-Enceladus/Sausage).
Figure 4. The [α/Fe]–[Fe/H] plane of 8.0 million Gaia XP red giant stars (Teff < 5300 K, log g < 3.5) with median per-pixel S/N ≥64 and full phase-space information, in bins of Galactocentric radius R in the midplane and height |z|. The elemental abundances are predicted from the aligned XP embedding of the JEPA model. The main chemical structures of the MW are recovered from resolving power ∼50 XP spectra alone.

Limitations and Future Work

  • Extinction: The current model does not explicitly separate stellar parameters from interstellar extinction (dust), which also affects Gaia XP spectra.
  • Selection Bias: The results are relative to the cross-matched sample used for training, which has its own magnitude and color selection effects.
  • End-to-End Training: In this study, the "backbone" encoders were kept frozen. The authors suggest that training the entire pipeline jointly could further improve performance.
  • Theoretical Grounding: While JEPA shows empirical success in creating "linearly identifiable" axes, more theoretical work is needed to understand why distribution matching is so effective for multi-instrument alignment compared to contrastive methods.

Summary updated

Abstract

Spectra from different surveys carry different systematics and are not calibrated against one another. Multi-survey foundation models for stellar spectra are then built by aligning embeddings of the same star observed across surveys. Most in astronomy follow the recipes established for language and vision, aligning with a contrastive loss that separates every star from the others. However, this does not ensure that the stellar physics is encoded in a form that a simple read-out can recover. Holding the cross-survey architecture fixed and varying only the alignment loss, we measure what an objective encodes from the principal-component geometry of the Gaia BP/RP (XP) spectra and from a linear probe of the stellar parameters. In a properly aligned embedding, the leading two principal components form a plane that recovers an analog of the Kiel diagram, the third component tracks [Fe/H], and [alpha/Fe] varies coherently across the plane, such that the chemically defined Galactic disks and accreted populations occupy distinct loci. We show that legibility, the ease of reading the information out, is highest for a training objective that never pushes stars apart, and instead constrains only the overall distribution of each survey's embeddings (JEPA). JEPA also exceeds the contrastive alternative at the same architecture, and the performance improves further as more surveys (Gaia XP+LAMOST LRS+DESI+APOGEE) are included. Predicted abundances for 8.0 million XP giants reproduce the main [alpha/Fe]-[Fe/H] structure of the Milky Way. These results indicate that the choice of alignment objective, not alignment alone, determines whether stellar labels are linearly recoverable.
BibTeX
@misc{zhao2026jepa,
  author = {Xiaosheng Zhao and Rosemary F. G. Wyse and Yuan-Sen Ting and Alexander S. Szalay},
  title = {{JEPA for astronomy: multi-survey spectral alignment puts stellar parameters on the leading principal axes}},
  year = {2026},
  eprint = {2611.23492},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.23492},
}

Loading related content...

Figure