Multi-Modal Masked Autoencoders for Learning Image-Spectrum Associations for Galaxy Evolution and Cosmology
Morgan Himes, Samiksha Krishnamurthy, Andrew Lizarraga, Srinath Saikrishnan, Vikram Seenivasan, Jonathan Soriano, Ying Nian Wu, Tuan Do
TL;DR
This work tackles the challenge of learning cross-modal representations from galaxy images and spectra when spectra are sparse by training a Multi-Modal Masked Autoencoder (MMAE) on a large, jointly labeled dataset of HSC PDR2 images and DESI DR1 spectra up to $z\sim4$. The model uses patch-based tokenization, cross-attention fusion, and integrates a redshift regression head directly into masked autoencoding, achieving competitive redshift scatter compared to prior multi-modal methods while reconstructing broad spectral continua and galaxy morphologies. However, it struggles with fine-detail morphology and weaker emission lines, and its high-redshift performance is limited by data availability, motivating physics-aware losses and the inclusion of additional modalities for robust foundation-model-style learning in astronomy. Overall, the study demonstrates both the potential and current limitations of masked autoencoders for multi-modal astrophysical data and lays groundwork for extending to textual metadata and beyond.
Abstract
Upcoming surveys will produce billions of galaxy images but comparatively few spectra, motivating models that learn cross-modal representations. We build a dataset of 134,533 galaxy images (HSC-PDR2) and spectra (DESI-DR1) and adapt a Multi-Modal Masked Autoencoder (MMAE) to embed both images and spectra in a shared representation. The MMAE is a transformer-based architecture, which we train by masking 75% of the data and reconstructing missing image and spectral tokens. We use this model to test three applications: spectral and image reconstruction from heavily masked data and redshift regression from images alone. It recovers key physical features, such as galaxy shapes, atomic emission line peaks, and broad continuum slopes, though it struggles with fine image details and line strengths. For redshift regression, the MMAE performs comparably or better than prior multi-modal models in terms of prediction scatter even when missing spectra in testing. These results highlight both the potential and limitations of masked autoencoders in astrophysics and motivate extensions to additional modalities, such as text, for foundation models.
