Can Language Models Replace Programmers for Coding? REPOCOD Says 'Not Yet'
Shanchao Liang, Yiran Hu, Nan Jiang, Lin Tan

TL;DR
This paper introduces REPOCOD, a challenging real-world Python code-generation benchmark with complex dependencies, revealing current LLMs' limited performance and highlighting the need for more advanced models to assist developers effectively.
Contribution
The paper presents REPOCOD, a new benchmark with realistic, large-scale project tasks and evaluation metrics, addressing limitations of previous benchmarks in assessing LLMs' real-world coding abilities.
Findings
No LLM exceeds 30% pass@1 on REPOCOD
Retrieval-augmented generation outperforms context-based methods
Current LLMs are insufficient for real-world software development
Abstract
Recently, a number of repository-level code generation benchmarks-such as CoderEval, DevEval, RepoEval, RepoBench, and LongCodeArena-have emerged to evaluate the capabilities of large language models (LLMs) beyond standalone benchmarks like HumanEval and MBPP. Thus, a natural question is, would LLMs have similar performance in real world coding tasks as their performance in these benchmarks? Unfortunately, one cannot answer this question, since these benchmarks consist of short completions, synthetic examples, or focus on limited scale repositories, failing to represent real-world coding tasks. To address these challenges, we create REPOCOD, a Python code-generation benchmark containing complex tasks with realistic dependencies in real-world large projects and appropriate metrics for evaluating source code. It includes 980 whole-function generation tasks from 11 popular projects,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNatural Language Processing Techniques
MethodsFocus
