Scientific Code Search at Scale: A Multi-Domain Dataset and Benchmark

· Source: cs.SE updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering, Data Science & Analytics · Depth: Expert, extended

Summary

A new multi-domain dataset and benchmark, "Scientific Code Search at Scale," addresses the challenge of discovering relevant scientific software among over 600 million GitHub repositories. This initiative introduces a curated corpus of 5,264 high-quality, domain-classified scientific repositories spanning five NASA Science Mission Directorate divisions. It includes two novel information retrieval benchmarks: a repository search benchmark with 219 expert-curated queries and a large-scale code snippet retrieval benchmark containing 117,950 code snippets and 119,720 queries across seven programming languages. Baseline evaluations reveal significant performance variation across scientific domains and retrieval approaches, with context enrichment consistently improving repository search. Qwen3-Embedding-0.6B achieved the strongest overall performance for code snippet retrieval, outperforming domain-specific models. All datasets and benchmarks are publicly released on HuggingFace.

Key takeaway

For AI Scientists or Machine Learning Engineers developing code search solutions for scientific domains, you should prioritize domain-specific context enrichment and robust handling of varied documentation practices. Recognize that general LLM embeddings like Qwen3-Embedding-0.6B excel at code snippet retrieval, but repository search benefits from scientific-text pretraining. Focus on agentic retrieval systems for challenging identifier-based queries, which current models struggle with significantly.

Key insights

Scientific code discovery requires specialized benchmarks and context enrichment due to domain-specific vocabulary and varied documentation practices.

Principles

Method

Collect scientific repositories from multiple authoritative sources. Apply LLM-based classification and quality filtering. Enrich repository context by cleaning READMEs and crawling external high-signal links.

In practice

Topics

Code references

Best for: AI Scientist, Research Scientist, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.SE updates on arXiv.org.