mlsanityData to 7 Oct 2026

Are Large Language Models Memorizing Bug Benchmarks?

arXiv 2411.13323 ↗First posted 20 Nov 2024cs.SE cs.AI cs.LGcited by 11

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have become integral to various software engineering tasks, including code generation, bug detection, and repair. To evaluate model performance in these domains, numerous bug benchmarks containing real-world bugs from software projects have been developed. However, a growing concern within the software engineering community is that these benchmarks may not reliably reflect true LLM performance due to the risk of data leakage. Despite this concern, limited research has been conducted to quantify the impact of potential leakage. In this paper, we systematically evaluate popular LLMs to assess their susceptibility to data leakage from widely used bug benchmarks. To identify potential leakage, we use multiple metrics, including a study of benchmark membership within commonly used training datasets, as well as analyses of negative log-likelihood and n-gram accuracy. Our findings show that certain models, in particular codegen-multi, exhibit significant evidence of memorization in widely used benchmarks like Defects4J, while newer models trained on larger datasets like LLaMa 3.1 exhibit limited signs of leakage. These results highlight the need for careful benchmark selection and the adoption of robust metrics to adequately assess models capabilities.

Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 30 of its 39 references that are in the map. First posted on arXiv 20 Nov 2024.

Builds on

30 of 39 references.

References · 30

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  4. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  5. 2021Program Synthesis with Large Language Modelscited by 3,509
  6. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  7. 2023Mistral 7Bcited by 3,065
  8. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  9. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
  10. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  11. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
  12. 2021Measuring Coding Challenge Competence With APPScited by 879
18 more
  1. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  2. 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 622
  3. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
  4. 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
  5. 2023Detecting Pretraining Data from Large Language Modelscited by 375
  6. 2022The Stack: 3 TB of permissively licensed source codecited by 354
  7. 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 218
  8. 2024CodeGemma: Open Code Models Based on Gemmacited by 145
  9. 2024Benchmarking Benchmark Leakage in Large Language Modelscited by 102
  10. 2024SWE-Bench+: Enhanced Coding Benchmark for LLMscited by 95
  11. 2023Large Language Models for Test-Free Fault Localizationcited by 67
  12. 2022Leakage and the Reproducibility Crisis in ML-based Sciencecited by 63
  13. 2023RepairLLaMA: Efficient Representations and Fine-Tuned Adapters for Program Repaircited by 50
  14. 2023Estimating Contamination via Perplexity: Quantifying Memorisation in Language Model Evaluationcited by 47
  15. 2024Large Language Model for Vulnerability Detection: Emerging Results and Future Directionscited by 44
  16. 2024BugsInPy: A Database of Existing Bugs in Python Programs to Enable Controlled Testing and Debugging Studiescited by 35
  17. 2024Concerned with Data Contamination? Assessing Countermeasures in Code Language Modelcited by 14
  18. 2024GitBug-Java: A Reproducible Benchmark of Recent Java Bugscited by 13

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 7; 2026: 4.

11 papers.