mlsanityData to 13 Oct 2026

The Fault in our Stars: Quality Assessment of Code Generation Benchmarks

arXiv 2404.10155 ↗First posted 15 Apr 2024cs.SE cs.LGcited by 9

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) are gaining popularity among software engineers. A crucial aspect of developing effective code generation LLMs is to evaluate these models using a robust benchmark. Evaluation benchmarks with quality issues can provide a false sense of performance. In this work, we conduct the first-of-its-kind study of the quality of prompts within benchmarks used to compare the performance of different code generation models. To conduct this study, we analyzed 3,566 prompts from 9 code generation benchmarks to identify quality issues in them. We also investigated whether fixing the identified quality issues in the benchmarks' prompts affects a model's performance. We also studied memorization issues of the evaluation dataset, which can put into question a benchmark's trustworthiness. We found that code generation evaluation benchmarks mainly focused on Python and coding exercises and had very limited contextual dependencies to challenge the model. These datasets and the developers' prompts suffer from quality issues like spelling and grammatical errors, unclear sentences to express developers' intent, and not using proper documentation style. Fixing all these issues in the benchmarks can lead to a better performance for Python code generation, but not a significant improvement was observed for Java code generation. We also found evidence that GPT-3.5-Turbo and CodeGen-2.5 models may have data contamination issues.

Key facts. Cited by 9 papers in the map (data through 13 Oct 2026). Builds on 43 of its 65 references that are in the map. First posted on arXiv 15 Apr 2024.

Builds on

43 of 65 references.

References · 43

  1. 2017Attention Is All You Needcited by 60,106
  2. 2020Language Models are Few-Shot Learnerscited by 32,320
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,205
  4. 2021Program Synthesis with Large Language Modelscited by 3,573
  5. 2022Emergent Abilities of Large Language Modelscited by 2,499
  6. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,379
  7. 2020Extracting Training Data from Large Language Modelscited by 2,181
  8. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,304
  9. 2023A Survey on Evaluation of Large Language Modelscited by 1,236
  10. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 905
  11. 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 864
  12. 2023StarCoder: may the source be with you!cited by 797
31 more
  1. 2022Quantifying Memorization Across Neural Language Modelscited by 763
  2. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 731
  3. 2019MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalismscited by 654
  4. 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 475
  5. 2022The Stack: 3 TB of permissively licensed source codecited by 359
  6. 2023Don't Make Your LLM an Evaluation Benchmark Cheatercited by 194
  7. 2022Do Users Write More Insecure Code with AI Assistants?cited by 190
  8. 2019SPoC: Search-based Pseudocode to Codecited by 176
  9. 2023SantaCoder: don't reach for the stars!cited by 170
  10. 2022Multi-lingual Evaluation of Code Generation Modelscited by 159
  11. 2023Stop Uploading Test Data in Plain Text: Practical Strategies for Mitigating Data Contamination by Evaluation Benchmarkscited by 141
  12. 2023CodeGen2: Lessons for Training LLMs on Programming and Natural Languagescited by 125
  13. 2023A Systematic Study and Comprehensive Evaluation of ChatGPT on Benchmark Datasetscited by 123
  14. 2021Jigsaw: Large Language Models meet Program Synthesiscited by 103
  15. 2022Productivity Assessment of Neural Code Completioncited by 97
  16. 2022Execution-Based Evaluation for Open-Domain Code Generationcited by 90
  17. 2022CERT: Continual Pre-Training on Sketches for Library-Oriented Code Generationcited by 87
  18. 2023Exploring the Use of Large Language Models for Reference-Free Text Quality Evaluation: An Empirical Studycited by 85
  19. 2020Code Prediction by Feeding Trees to Transformerscited by 70
  20. 2020Deep Learning for Source Code Modeling and Generation: Models, Applications and Challengescited by 55
  21. 2022When Language Model Meets Private Librarycited by 54
  22. 2023Using Large Language Models to Generate JUnit Tests: An Empirical Studycited by 53
  23. 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 50
  24. 2023Exploring Memorization in Fine-tuned Language Modelscited by 45
  25. 2020Fast and Memory-Efficient Neural Code Completioncited by 38
  26. 2023Unveiling Memorization in Code Modelscited by 30
  27. 2022Are We Building on the Rock? On the Importance of Data Preprocessing for Code Summarizationcited by 22
  28. 2023Quantifying and Analyzing Entity-level Memorization in Large Language Modelscited by 18
  29. 2022AI-driven Development Is Here: Should You Worry?cited by 15
  30. 2022M2TS: Multi-Scale Multi-Modal Approach Based on Transformer for Source Code Summarizationcited by 14
  31. 2023DevGPT: Studying Developer-ChatGPT Conversationscited by 11

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2024: 2; 2025: 3; 2026: 4.

9 papers.