scimeatlas

Research map / Large language models / Retrieval and knowledge

CodeRAG-Bench: Can Retrieval Augment Code Generation?

Zora Zhiruo Wang, Akari Asai, Xinyan Velocity Yu, Frank F. Xu, Yiqing Xie, Graham Neubig, Daniel Fried

NAACL 2025Large language models › Retrieval and knowledgeapproach: RAG robustness and evaluationopen problems in this approach203 citations (OpenAlex)

Carnegie Mellon University · University of Washington · University of Southern California

Read the paperPlace an idea next to itCheck your own paper ↗

13measured effects
7improved
1no clear effect
4hurt
1mixed

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

On benchmark leaderboards

Measured effects reported in the paper

What was changedWhereMeasuredEffect
provide gold documents to GPT-4oGPT-4o · SWE-bench-Litepass@1: 2.3 -> 30.7Improved
provide gold documents to GPT models on open-domain tasksGPT-3.5-turbo / GPT-4o · DS-1000, ODEXpass@1: GPT-4o DS-1000 52.7 -> 51.2No clear effect
retrieve documents on the 20-least-used-library subsetODEX-hard · ODEX-hardpass@1: +20.3-40.1%Improved
add retrieved contexts to DeepSeekCoder-7BDeepSeekCoder-7B · HumanEval, MBPPpass@1: HumanEval 70.1 -> 68.9 (BM25)Hurt
add retrieved contexts to StarCoder2-7BStarCoder2-7B · MBPPpass@1: 2.4 -> 52.6 (Voyage)Improved
add retrieval and rerank to GPT-4oGPT-4o · SWE-bench-Litepass@1: 2.3 -> 21.7Improved
use code-trained retrievers instead of same-size general onesretrievers · Avg. NDCG@10NDCG@10: Jina-v2-code +7.4 over GIST-base, +6.6 over BGE-baseImproved
scale retriever size from GIST-base to GIST-large (ablation)GIST · Avg. NDCG@10NDCG@10: 58.0 -> 61.7Improved
use SFR-Mistral instead of GIST-baseretrieval efficiency · CodeSearchNet sampleindex size / encoding latency: index 307MB -> 1638MB; encode 3.7ms -> 316msMixed
add retrieval from open sources to local files (ablation)GPT-4o · RepoEvalpass@1: 62.2 -> 54.2Hurt
rerank chunks within 200-800 tokens with BGE-reranker (ablation)StarCoder2 HumanEval · HumanEval (Docs)pass@1: 29.3 -> 9.1Hurt
pre-retrieval chunking of documents (ablation)StarCoder2 HumanEval · HumanEval (Docs)pass@1: 29.3 -> 32.9Improved

Open problems in RAG robustness and evaluation

When does retrieval help a language model, and when does it mislead it?

All 4 open problems and what was already tried →

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy