Abstract
Sky surveys are the largest data generators in astronomy, making automated tools for extracting meaningful scientific information an absolute necessity. We show that, without the need for labels, self-supervised learning recovers representations of sky survey images that are semantically useful for a variety of scientific tasks. These representations can be directly used as features, or fine-tuned, to outperform supervised methods trained only on labeled data. We apply a contrastive learning framework on multi-band galaxy photometry from the Sloan Digital Sky Survey (SDSS) to learn image representations. We then use them for galaxy morphology classification, and fine-tune them for photometric redshift estimation, using labels from the Galaxy Zoo 2 dataset and SDSS spectroscopy. In both downstream tasks, using the same learned representations, we outperform the supervised state-of-the-art results, and we show that our approach can achieve the accuracy of supervised models while using 2-4 times fewer labels for training.
Introduction
Astronomy has entered the era of "Big Data." Modern sky surveys, such as the Sloan Digital Sky Survey (SDSS) and the upcoming Vera Rubin Observatory, generate petabytes of image data. This volume far exceeds the capacity for manual labeling by professional astronomers or even large-scale citizen science projects like Galaxy Zoo. Traditional machine learning approaches in astronomy rely heavily on supervised learning, which is constrained by the "label bottleneck"—the scarcity of high-quality, human-assigned labels relative to the vast amount of available raw data. To bridge this gap, we explore self-supervised learning (SSL) to extract meaningful scientific information from the unlabeled majority of astronomical images.
Methodology: Contrastive Learning for the Cosmos
We employ a contrastive learning framework to learn semantically rich representations from over 1.2 million unlabeled galaxy images from SDSS Data Release 12. The core objective is to train a neural network to recognize that different "views" of the same image—generated through stochastic augmentations—should have similar internal representations, while views of different images should be distinct.
A critical component of our approach is the design of domain-specific augmentations that mimic astronomical observational effects. Instead of standard computer vision augmentations, we use:
- Galactic Extinction: Simulating the reddening effect of interstellar dust.
- Point Spread Function (PSF): Modeling wavelength-dependent blurring from the telescope and atmosphere.
- Rotation & Jitter: Accounting for arbitrary galaxy orientation and centering.
- Gaussian Noise: Mimicking instrumental noise, which we found to be the most effective augmentation for learning robust features.
The backbone architecture is a ResNet50 modified to accept 5-band multi-spectral input (ugriz filters), capturing the full photometric range provided by SDSS.
Results and Emergent Taxonomy
The learned representations were evaluated on two primary downstream tasks: galaxy morphology classification using Galaxy Zoo 2 labels and photometric redshift estimation using SDSS spectroscopic data.
Emergent Physical Properties
Without exposure to labels during pre-training, the model's internal representation space naturally organized galaxies according to their physical properties. Visualizing this space using UMAP reveals clear clusters for spiral and smooth galaxies, as well as gradients corresponding to distance (redshift).
Performance and Label Efficiency
Our SSL approach demonstrates significant gains in label efficiency. For morphology classification, a simple linear classifier on top of frozen SSL features matched the performance of a deep CNN trained from scratch while using 16 times fewer labels. For redshift estimation, fine-tuning the SSL encoder achieved a new state-of-the-art accuracy for CNN-based methods on SDSS data. Furthermore, these representations enable efficient similarity searches, allowing astronomers to find rare objects (e.g., merging galaxies) across millions of images using a single query.
Discussion and Future Work
While successful, the current model has limitations. The use of a fixed angular scale (25.3 arcseconds) means very large, nearby galaxies are "clipped," potentially losing morphological information. Additionally, while we intentionally avoided size-scaling to preserve redshift information, adding size-invariance might improve pure morphology tasks. Future work will explore multi-scale representations and the generalization of these models across different sky surveys. This work establishes self-supervised learning as a powerful tool for breaking the label bottleneck in astronomy, enabling the scientific exploitation of the next generation of massive sky surveys.
Summary updated