Position: Code Benchmarks Should Prioritize Rigor, Reliability, and Reproducibility

Jialun Cao, Yuk-Kit Chan, Zixuan Ling, Wenxuan Wang, Shuqing Li, Mingwei Liu, Ruixi Qiao, Yuting Han, Chaozheng Wang, Boxi Yu, Pinjia He, Shuai Wang, Zibin Zheng, Michael R. Lyu, Shing-Chi Cheung

TL;DR

This paper argues that code benchmarks for evaluating Large Language Models (LLMs) need to prioritize rigor, reliability, and reproducibility. Through a large-scale analysis of 672 benchmarks, the authors found a concerning gap between growing awareness of quality issues and actual practices, leading to potentially misleading results. They introduce HOW2BENCH, a comprehensive guideline with 55 checklists, to address this.

What Problem Does This Paper Address?

Large Language Models (LLMs) are increasingly being evaluated on their code-related capabilities using benchmarks. These benchmarks are crucial for understanding LLMs' strengths and weaknesses, but their quality directly impacts the validity of the conclusions drawn. The authors observed that despite increased awareness of benchmark quality issues over the past decade, the actual practices in constructing and evaluating these benchmarks have not improved proportionally. This lag means that many benchmarks may be flawed, leading to unreliable results, misdirected research efforts, and a compromised understanding of LLM capabilities. For instance, the number of benchmarks ignoring code coverage in 2025 alone nearly matches the total from the previous ten years, highlighting a persistent problem.

Methods

The paper employs a multi-faceted approach:

  1. Large-Scale Survey: They analyzed 672 code-related benchmarks published between 2014 and 2025. This involved profiling each benchmark by reviewing its paper and examining its released artifacts.
  2. Guideline Development (HOW2BENCH): Based on the survey and literature review, they developed a comprehensive guideline called HOW2BENCH, comprising 55 checklists categorized across the five phases of benchmark development: Design, Construction, Evaluation, Analysis, and Release. Each checklist is assigned a priority level (★★★, ★★, ★).
  3. Human Study: A survey was conducted with 49 participants (researchers in SE and AI) to understand the reasons behind the observed issues, such as lack of awareness, resource constraints, or incentive misalignment.

Datasets

The paper does not introduce a new dataset. Instead, it analyzes a large corpus of 672 existing code-related benchmarks collected from various sources, spanning the period from 2014 to 2025.

Key Insights and Ideas

  • Awareness vs. Practice Gap: There's a significant disconnect between the growing awareness of benchmark quality issues and the actual implementation of best practices in benchmark development.
  • "Benchmark Rot" is Accelerating: While the absolute number of benchmarks is increasing rapidly, the proportion of flawed benchmarks is also growing, leading to a net increase in unreliable evaluations.
  • Rigor is Not Optional: Benchmark quality should be treated as a first-class objective, not an informal best effort. This includes rigor in construction, reliability in evaluation, and reproducibility in release.
  • HOW2BENCH as a Practical Tool: The developed guideline provides actionable steps and checklists to guide developers and evaluators, making quality assurance more systematic.
  • Human Factors Matter: The study revealed that issues stem not only from the effort required but also from a lack of awareness regarding the importance of rigorous practices.

Key Results

  • Prevalence of Flawed Benchmarks:
    • 46% of benchmarks did not undergo quality assurance checks.
  • 79.8% did not consider data contamination.
  • 67.1% did not deduplicate data points.
  • 85.0% did not ensure reliable judgment (e.g., high code coverage).
  • 66.1% of evaluations were one-pass, lacking repetition for reliability.
  • 38.2% did not provide essential information for reproducibility (e.g., prompts).
  • Benchmark Growth: The number of benchmarks has surged, with 210 created in 2024 and 316 in 2025, indicating a rapidly growing field.
  • HOW2BENCH Adoption: A human study showed that participants agreed on the necessity of a checklist, with 47 out of 55 criteria deemed important by over 80% of participants.
  • Specific Issues Highlighted:
    • A significant portion of benchmarks (82.5%) did not consider code coverage.
  • Only 33.4% of evaluations were repeated.
  • 38.2% of benchmarks did not disclose prompts.
  • 14.7% were not open-source.

Limitations and Future Work

  • Limitations:
    • The study acknowledges that constructing rigorous benchmarks is time-consuming and resource-intensive, creating a trade-off with development efficiency.
  • The human study identified gaps in awareness regarding data denoising and the impact of experimental environments on reproducibility.
  • The paper notes that not all checklists in HOW2BENCH must be satisfied for a benchmark to be "acceptable"; it's a tool for identifying critical gaps and making transparent choices.
  • Future Work:
    • The authors hope their work will serve as a warning and catalyst for the community to adopt stronger shared standards.
  • They aim to influence how benchmark papers are reviewed and research contributions are rewarded.
  • The HOW2BENCH guideline is intended to be a living document, adaptable for practitioners and evaluators.

Summary updated

BibTeX
@inproceedings{cao2026position,
  author = {Jialun Cao and Yuk-Kit Chan and Zixuan Ling and Wenxuan Wang and Shuqing Li and Mingwei Liu and Ruixi Qiao and Yuting Han and Chaozheng Wang and Boxi Yu and Pinjia He and Shuai Wang and Zibin Zheng and Michael R. Lyu and Shing-Chi Cheung},
  title = {{Position: Code Benchmarks Should Prioritize Rigor, Reliability, and Reproducibility}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=xKjGSyryju},
}
Figure