Semantic search for 100M+ galaxy images using AI-generated captions

Nolan Koblischke, Liam Holden Parker, François Lanusse, Irina Espejo Morales, Jo Bovy, Shirley Ho · DOI

Introduction

The field of astronomy is entering an era of unprecedented data volume. Upcoming surveys like Euclid and the Legacy Survey of Space and Time (LSST) are projected to capture billions of galaxy images. Traditional methods of classification, such as manual labeling by human volunteers (e.g., Galaxy Zoo) or supervised deep learning models, are increasingly insufficient. Supervised models are often restricted to predefined categories, while visual similarity searches frequently fail to capture complex astrophysical features. To address this, researchers have developed AION-Search, a pipeline that leverages Vision-Language Models (VLMs) to enable flexible, natural-language semantic search across massive unlabeled astronomical archives.

Methodology

The AION-Search pipeline consists of several key stages designed to bridge the gap between raw pixel data and semantic astronomical concepts.

VLM Benchmarking and Model Selection

The first step involved evaluating the performance of various state-of-the-art VLMs in describing galaxy morphology. By comparing model outputs against expert-verified Galaxy Zoo data, the researchers assessed the accuracy and cost-effectiveness of different architectures.

Benchmarking various VLMs on galaxy classification score versus estimated cost for processing 100,000 images.

As shown in the benchmarking results, models like GPT-4.1 Mini and GPT-5 show a strong balance between classification accuracy and computational cost, guiding the selection of models for large-scale captioning.

Synthetic Captioning and Alignment

Using the selected VLM (GPT-4o-mini), the team generated detailed synthetic captions for 300,000 galaxy images. These captions describe morphological features such as spiral arms, bars, and merging signatures.

Comparison of a VLM-generated description and decision tree against the volunteer consensus path from Galaxy Zoo.

The pipeline then uses these captions to train the AION-Search model, aligning a pre-trained astronomical image foundation model (AION) with text embeddings. This contrastive alignment allows the model to learn the semantic meaning of visual features. To optimize performance, long descriptions were summarized into concise sentences, reducing noise in the training signal.

VLM Re-ranking

For identifying rare phenomena like gravitational lenses, a two-stage approach was implemented. After an initial semantic search, a high-performance VLM acts as a "judge" to re-rank the top 1,000 candidates, significantly improving the precision of the final results.

Key Results

AION-Search was evaluated using the nDCG@10 metric (a measure of ranking quality) across several benchmarks:

  • Spiral Galaxies: Achieved a score of 0.941, significantly outperforming the baseline of 0.643.
  • Galaxy Mergers: Reached 0.554, compared to 0.384 for standard visual similarity search.
  • Gravitational Lenses: In the HSC Strong Lens Catalog, the re-ranking step nearly doubled the recall, identifying 13 confirmed lenses in the top 100 results compared to only 7 using traditional methods.

These results demonstrate that synthetic labels, while occasionally imperfect, provide a sufficiently strong signal for training robust search engines capable of zero-shot discovery of rare cosmic structures.

Conclusion

AION-Search represents a significant step toward scalable, semantic exploration of the universe. By utilizing VLMs to "read" the sky, astronomers can now search for specific physical phenomena using natural language, bypassing the need for massive human-labeled datasets. Future work will focus on integrating multimodal data, such as spectroscopy and time-series photometry, to further enhance the system's discovery potential.

Summary updated

BibTeX
@inproceedings{koblischke2025semantic,
  author = {Nolan Koblischke and Liam Holden Parker and François Lanusse and Irina Espejo Morales and Jo Bovy and Shirley Ho},
  title = {{Semantic search for 100M+ galaxy images using AI-generated captions}},
  booktitle = {AI4Science @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=j8Qxvb37HQ},
}
Figure