Reproduce “An Empirical Study of Retrieval-Augmented Code Generation: Challenges and Opportunities” 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
Zezhou Yang, Sirong Chen, Cuiyun Gao, Zhenhao Li, Xing Hu, Kui Liu, Xin Xia
A comprehensive empirical study reveals that retrieval-augmented frameworks consistently boost code generation performance across multiple models and datasets, with the surprising finding that simple BM25 retrieval often matches or exceeds more complex neural approaches while offering better computational efficiency.
Key insights
- Simple BM25 retrieval performs competitively with more complex neural approaches
- Sequential Integration Fusion offers good balance of performance and computational efficiency
- Optimal number of retrieved examples varies significantly based on dataset characteristics
- Sketch Filling Fusion achieves best results but at much higher computational cost
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.