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

Nolan Koblischke, Liam Holden Parker, Francois Lanusse, Irina Espejo Morales, Jo Bovy, Shirley Ho

TL;DR

Researchers have developed AION-Search, a pipeline that uses Vision-Language Models (VLMs) to "auto-caption" millions of unlabeled galaxy images. By training a CLIP-style model on these synthetic descriptions, they’ve enabled the first flexible, semantic search engine capable of scouring 140 million galaxies for rare phenomena like gravitational lenses and merging systems.

What Problem Does This Paper Address?

Astronomy is facing a massive data deluge. Upcoming surveys like Euclid and LSST are expected to produce billions of galaxy images—far more than human volunteers (like those in the famous Galaxy Zoo project) could ever hope to label.

Currently, if an astronomer wants to find a specific type of galaxy, they usually rely on two flawed methods:

  1. Supervised Classifiers: These are limited to predefined categories (e.g., "is it a spiral?") and require massive amounts of manual labeling.
  2. Image Similarity Search: This finds images that look visually similar (same color or orientation) but often fails to capture the underlying physics or semantic meaning (e.g., "a galaxy with a tidal tail").

The authors tackle the challenge of making these massive, unlabeled archives searchable using natural language, allowing researchers to find "needles in the haystack" without needing a pre-labeled training set for every new discovery.

Methods

The authors developed a multi-stage pipeline to bridge the gap between raw pixels and human language:

  1. VLM Benchmarking: They first tested how well current VLMs (like GPT-4 and Gemini) could describe galaxies by comparing their outputs to expert-verified Galaxy Zoo data. They found that while not perfect, VLMs are surprisingly good at identifying morphological features.
  2. Synthetic Captioning: Using GPT-4o-mini, they generated detailed descriptions for 300,000 randomly selected galaxy images from the Legacy Survey and Hyper Suprime-Cam (HSC).
  3. Contrastive Alignment: They used these captions to train AION-Search. This model aligns a pre-trained astronomical image foundation model (AION) with text embeddings. Essentially, it teaches the AI that the "visual features" of a specific image correspond to the "semantic concepts" in the text.
  4. Summarization for Performance: Interestingly, they found that summarizing long, multi-paragraph descriptions into single, punchy sentences (using a "summarizer prompt") reduced noise and significantly improved search accuracy.
  5. VLM Re-ranking: For the most difficult searches (like rare gravitational lenses), they added a "test-time" step where a VLM looks at the top 1,000 results and assigns a confidence score to re-order them.

Datasets

  • Training Data: 300,000 images sampled from the Legacy Survey (DR10 South) and Hyper Suprime-Cam (HSC PDR3 Wide).
  • Evaluation Benchmarks:
    • Galaxy Zoo-DECaLS: Used to evaluate searches for spiral galaxies and mergers.
  • HSC Strong Lens Catalog: A curated set of 200 confirmed gravitational lenses hidden among 20,000 "distractor" images to test the model's ability to find rare phenomena.
  • Scale: The final system is designed to scale to the 140 million images available in the MMU (Multi Modal Universe) dataset.

Key Insights and Ideas

  • Synthetic Data is "Good Enough": You don't need perfect human labels to train a powerful search engine. Even though VLMs occasionally hallucinate (e.g., miscounting spiral arms), the aggregate signal is strong enough to teach a model the relationship between language and cosmic structures.
  • Semantics > Visual Similarity: AION-Search consistently outperformed standard self-supervised models (like DINOv2). This suggests that "semantic" training helps the model ignore irrelevant visual features (like the angle of the galaxy) and focus on scientifically relevant ones (like the presence of star-forming regions).
  • The Power of Re-ranking: Using a high-end VLM as a "final judge" for the top results mimics how human astronomers work—quickly scanning a large batch of candidates to find the true gems. This step nearly doubled the recall for the rarest targets.

Key Results

The authors used nDCG@10 (a measure of ranking quality) to evaluate performance:

  • Spiral Galaxies: AION-Search achieved a score of 0.941, crushing the strongest baseline (0.643).
  • Galaxy Mergers: It achieved 0.554, significantly better than the 0.384 achieved by visual similarity alone.
  • Gravitational Lenses: This is the "hard mode" of astronomy. AION-Search found 13 confirmed lenses in the top-100 results after re-ranking, compared to only 7 using traditional similarity search.
  • Zero-Shot Capability: The model was never explicitly trained on "rare" images; it learned what a lens or a merger was simply by reading the VLM's descriptions of a random sample of the sky.

Limitations and Future Work

  • Hallucinations: VLMs still struggle with fine-grained details (like the exact number of tidal streams), which can lead to "noisy" training data.
  • Domain Knowledge Gap: Current VLMs are trained on general internet data. The authors suggest that pre-training VLMs specifically on astronomical literature could further improve caption quality.
  • Subtle Features: The model may still miss extremely faint or subtle features that a VLM cannot see in a standard RGB-converted image.
  • Future Directions: The team plans to expand AION-Search to include other data types, such as time-series photometry and spectroscopy, creating a truly "multimodal" assistant for astronomical discovery.

Summary updated

BibTeX
@inproceedings{koblischke2025semantic,
  author = {Nolan Koblischke and Liam Holden Parker and Francois 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