Repository-Level Code Evaluation Benchmarks: Are High Scores Really Credible? Understanding Scores and Model Selection
As large language models continue to break records on code evaluation leaderboards, a critical question arises: what do these high scores actually mean, and can they be used directly for model selection? This article explores the four generations of code evaluation benchmarks, the design principles and limitations of repository-level evaluation, and provides practical guidance on selecting the right model for your engineering needs.
With the release of new large language models, scores on code evaluation benchmarks are continuously hitting new highs. Recently, a model achieved over 80% on a repository-level real-world task evaluation, opening a significant gap from its predecessor. In the face of overwhelming benchmark leaderboards, we should pause and think calmly: what do these scores actually mean? Can we directly use leaderboard scores to guide model selection? This article will systematically review the evolution of code evaluation benchmarks, the design principles and limitations of repository-level evaluation, and provide pragmatic selection advice.
I. The Four Generations of Code Evaluation Benchmarks
To understand the credibility of a high score report, we must first understand what the benchmark itself is testing. Code evaluation benchmarks have roughly gone through four stages.
1. Function-Level Short Code Problems
The earliest evaluations focused on “whether the model can write a single function,” corresponding to code completion and short script generation scenarios. These problems are short, context-independent, usually require no understanding of a complete codebase, and do not involve debugging or documentation lookup. These datasets were released early, have repeatedly appeared in training corpora, and suffer from severe data contamination. For today’s top models, scores are generally near saturation, making their reference value very limited.
2. Competitive Programming and Algorithm Problems
The second stage draws problems from real programming competitions and algorithm repositories, testing algorithm design, reasoning capabilities, edge case handling, and time complexity control. These problems are dynamically updated with a clear difficulty gradient, making them good at distinguishing the logical reasoning levels of models. However, it is more like “exam prep”—testing abstract abilities, which is quite different from the messy codebases, legacy systems, and vague requirements faced in daily business development. Furthermore, in areas where grinding is possible, it is not surprising that models achieve high scores through massive practice.
3. Repository-Level Real Issue Resolution
To solve the “exam prep” bias of the first two generations, the third stage builds tasks from real open-source project issues. Models must understand the entire codebase, locate the problem, modify multiple files, and pass tests. The original versions of these evaluations typically contain thousands of real bug-fixing tasks, and have spawned multiple subsets: small-scale subsets for low-cost rapid evaluation; verified subsets filtered by humans to ensure clear descriptions, correct tests, and solvable tasks; multimodal subsets introducing screenshots and visual information; multilingual subsets; continuously updated task streams to reduce contamination risk; and enhanced versions that are more complex, longer-horizon, and closer to enterprise engineering tasks.
Currently, mainstream evaluations focus on the “human-verified subsets” and “enhanced versions.” The enhanced versions usually expand task scales to cross-repository, cross-file, long-horizon tasks requiring real environments to run, making them closer to enterprise development scenarios.
4. Real Workflow (Agentic Evaluation)
The fourth generation is designed for agentic programming, testing whether a model can complete a full workflow like an engineer: understanding requirements, writing code, executing tests, fixing failures, and submitting changes. This type of evaluation often uses real human working trajectories on platforms as a blueprint, expanding “solving a problem” into “delivering usable results.”
II. Composition and Limitations of Repository-Level Benchmark Scores
Taking a model’s 80%+ score on an enhanced repository-level benchmark as an example, several key questions are worth asking.
1. Task Scope Differences
The task difficulty and scoring criteria of enhanced versions and human-verified versions are not entirely comparable. The former may allow more interaction turns, richer tool calls, and a higher compute budget. It requires careful discernment to determine how much of the score difference comes from model capability improvements versus the relaxation of the evaluation budget.
2. Data Contamination Risks
Even with continuously updated task streams, there may still be a window between the training data cutoff time and the evaluation task creation time. If a model has seen the relevant repository’s fix commit records during training, its score will be systematically inflated. Responsible evaluators perform de-contamination analyses, but the conclusions of such analyses are often unpublished or lack transparency.
3. Passing Tests Does Not Equal Engineering Correctness
Evaluations use “test pass” as the main signal, but test cases can only cover expected behaviors and cannot constrain the implementation method. A model might score by hardcoding, bypassing tests, or making modifications that hold true in the test scenario but break others. Enterprise concerns such as code maintainability, edge-case robustness, performance, and security are difficult to reflect in benchmark scores.
4. Statistical Meaning of Scores
Even if the task scale exceeds a thousand, a difference of a few points between models may not be statistically significant, especially when evaluations have run-to-run fluctuations (sampling temperature, tool call failures, environmental differences). A reasonable approach is to run multiple times, take the mean, and report confidence intervals, whereas leaderboards typically only showcase a single best result.
III. Can Benchmarks Be Used to Select Models?
The answer is: yes for initial screening, no for the final decision.
In the initial screening phase, leaderboards can quickly map out capability boundaries, helping you eliminate obviously unqualified candidates. However, be wary of comparisons under different configurations on the same leaderboard; always ensure task versions, tool configurations, context lengths, and compute budgets are consistent.
The final decision must rely on a custom evaluation set (custom Eval). The recommended approach is to select 20 to 50 real historical bugs from your own codebase as tasks, define production-consistent environments, tests, and scoring scripts; meanwhile, track metrics across three dimensions: problem resolution rate, average token consumption and cost, and end-to-end latency per task. A common lesson learned is that a model leading on the leaderboard may cost several times more in practical use due to verbose outputs or excessive tool calls.
A simple skeleton for a custom evaluation is shown below:
evaluation_task = {repo_snapshot: snapshot of a historical commit,issue_text: desensitized real issue description,test_cmd: test command to pass after fix,pass_condition: all tests green with no new regressions,budget: { max_turns: 30, max_tokens: 200000 }}
IV. Conclusion
Evaluation scores are a reference for the lower bound of capability, not a guarantee of engineering value. Faced with marketing claims of “crushing leads,” developers should maintain a threefold scrutiny: are the scopes comparable, is there contamination, and does passing tests equal correct delivery. What truly determines model selection is the model’s performance under your own codebase, your own task distribution, and your own cost constraints. Let the dust settle and let your own evaluation set do the talking—this is the correct attitude for engineers facing leaderboards.
