Reproduce “Embeddings vs. Grep: Rethinking the Dense Advantage in Code Search” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Siqiao Xue, Ziyin Zhang, Zihan Liao, Jin Qin, Yixiang Mu, Hang Yu

The authors evaluate dense retrieval for repository file search against BM25 using RepoPremium, a benchmark of Python change descriptions and edited source files. They find that whole-file BM25 reduces the curated-pool dense premium to +0.034 nDCG@10, from +0.121 with chunked BM25; adding generated code-specific query terms shifts the comparison toward BM25. These results concern file localization, not all code-search tasks.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.