Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
38 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositories (2405.19856v1)

Published 30 May 2024 in cs.CL and cs.SE

Abstract: How to evaluate the coding abilities of LLMs remains an open question. We find that existing benchmarks are poorly aligned with real-world code repositories and are insufficient to evaluate the coding abilities of LLMs. To address the knowledge gap, we propose a new benchmark named DevEval, which has three advances. (1) DevEval aligns with real-world repositories in multiple dimensions, e.g., code distributions and dependency distributions. (2) DevEval is annotated by 13 developers and contains comprehensive annotations (e.g., requirements, original repositories, reference code, and reference dependencies). (3) DevEval comprises 1,874 testing samples from 117 repositories, covering 10 popular domains (e.g., Internet, Database). Based on DevEval, we propose repository-level code generation and evaluate 8 popular LLMs on DevEval (e.g., gpt-4, gpt-3.5, StarCoder 2, DeepSeek Coder, CodeLLaMa). Our experiments reveal these LLMs' coding abilities in real-world code repositories. For example, in our experiments, the highest Pass@1 of gpt-4-turbo is only 53.04%. We also analyze LLMs' failed cases and summarize their shortcomings. We hope DevEval can facilitate the development of LLMs in real code repositories. DevEval, prompts, and LLMs' predictions have been released.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (18)
  1. Jia Li (380 papers)
  2. Ge Li (213 papers)
  3. Yunfei Zhao (13 papers)
  4. Yongmin Li (32 papers)
  5. Huanyu Liu (15 papers)
  6. Hao Zhu (212 papers)
  7. Lecheng Wang (8 papers)
  8. Kaibo Liu (17 papers)
  9. Zheng Fang (103 papers)
  10. Lanshen Wang (2 papers)
  11. Jiazheng Ding (5 papers)
  12. Xuanming Zhang (20 papers)
  13. Yuqi Zhu (25 papers)
  14. Yihong Dong (35 papers)
  15. Zhi Jin (160 papers)
  16. Binhua Li (30 papers)
  17. Fei Huang (408 papers)
  18. Yongbin Li (128 papers)
Citations (12)