mlsanityData to 7 Oct 2026

Beyond Correctness: Benchmarking Multi-dimensional Code Generation for Large Language Models

arXiv 2407.11470 ↗First posted 16 Jul 2024cs.SE cs.AI cs.CLcited by 9

Not on the map. Why?

Abstract (arXiv)

In recent years, researchers have proposed numerous benchmarks to evaluate the impressive coding capabilities of large language models (LLMs). However, current benchmarks primarily assess the accuracy of LLM-generated code, while neglecting other critical dimensions that also significantly impact code quality in real-world development. Moreover, relying exclusively on correctness as the guiding metric renders LLMs susceptible to data contamination. Therefore, this paper proposes the RACE benchmark, which comprehensively evaluates the quality of code generated by LLMs across 4 dimensions: Readability, mAintainability, Correctness, and Efficiency. Specifically, considering the demand-dependent nature of dimensions beyond correctness, we design various types of user requirements for each dimension to assess the model's ability to generate correct code that also meets user demands. We analyze 28 representative LLMs based on RACE and find that: 1) current correctness-centric benchmarks fail to capture the multifaceted requirements of code in real-world scenarios, while RACE provides a comprehensive evaluation that reveals the defects of LLMs across multiple dimensions; 2) the RACE benchmark serves as an effective tool for resisting the risk of data contamination; 3) even the most advanced code LLMs still encounter significant challenges in customized requirements involving complex instructions; 4) most LLMs exhibit an inherent preference for specific coding style. These findings highlight the need for a multidimensional evaluation of code LLMs, emphasizing metrics beyond correctness for real-world applications. Future efforts should aim to develop novel learning algorithms to enhance code generation under varied constraints and improve coverage and usability for diverse user needs.

Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 38 of its 56 references that are in the map. First posted on arXiv 16 Jul 2024.

Builds on

38 of 56 references.

References · 38

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  2. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  3. 2021Program Synthesis with Large Language Modelscited by 3,509
  4. 2023Qwen Technical Reportcited by 3,273
  5. 2022Emergent Abilities of Large Language Modelscited by 2,483
  6. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  7. 2024Qwen2 Technical Reportcited by 2,076
  8. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  9. 2024Mixtral of Expertscited by 1,785
  10. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  11. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
  12. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
26 more
  1. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  2. 2021Measuring Coding Challenge Competence With APPScited by 879
  3. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  4. 2023StarCoder: may the source be with you!cited by 790
  5. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
  6. 2023Are Emergent Abilities of Large Language Models a Mirage?cited by 515
  7. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  8. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
  9. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
  10. 2022A Systematic Evaluation of Large Language Models of Codecited by 360
  11. 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 325
  12. 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 178
  13. 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
  14. 2023TACO: Topics in Algorithmic COde generation datasetcited by 150
  15. 2024DebugBench: Evaluating Debugging Capability of Large Language Modelscited by 74
  16. 2023Towards an Understanding of Large Language Models in Software Engineering Taskscited by 67
  17. 2023A Survey of Large Language Models for Code: Evolution, Benchmarking, and Future Trendscited by 66
  18. 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Codecited by 62
  19. 2024Quantifying Contamination in Evaluating Code Generation Capabilities of Language Modelscited by 62
  20. 2024Prompting Large Language Models to Tackle the Full Software Development Lifecycle: A Case Studycited by 40
  21. 2023CodeScope: An Execution-based Multilingual Multitask Multidimensional Benchmark for Evaluating LLMs on Code Understanding and Generationcited by 39
  22. 2024Evaluation of LLMs on Syntax-Aware Code Fill-in-the-Middle Taskscited by 24
  23. 2023L2CEval: Evaluating Language-to-Code Generation Capabilities of Large Language Modelscited by 22
  24. 2021Evaluating Code Readability and Legibility: An Examination of Human-centric Studiescited by 8
  25. 2024Evaluation of large language models for assessing code maintainabilitycited by 5
  26. 2023How do Developers Improve Code Readability? An Empirical Study of Pull Requestscited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 6; 2026: 2.

9 papers.