mlsanityData to 7 Oct 2026

LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarks

arXiv 2502.06215 ↗First posted 10 Feb 2025cs.SE cs.AI cs.CLcited by 34

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) are widely utilized in software engineering (SE) tasks, such as code generation and automated program repair. However, their reliance on extensive and often undisclosed pre-training datasets raises significant concerns about data leakage, where the evaluation benchmark data is unintentionally ``seen'' by LLMs during the model's construction phase. The data leakage issue could largely undermine the validity of LLM-based research and evaluations. Despite the increasing use of LLMs in the SE community, there is no comprehensive study that assesses the extent of data leakage in SE benchmarks for LLMs yet. To address this gap, this paper presents the first large-scale analysis of data leakage in 83 SE benchmarks concerning LLMs. Our results show that in general, data leakage in SE benchmarks is minimal, with average leakage ratios of only 4.8%, 2.8%, and 0.7% for Python, Java, and C/C++ benchmarks, respectively. However, some benchmarks exhibit relatively higher leakage ratios, which raises concerns about their bias in evaluation. For instance, QuixBugs and BigCloneBench have leakage ratios of 100.0% and 55.7%, respectively. Furthermore, we observe that data leakage has a substantial impact on LLM evaluation. We also identify key causes of high data leakage, such as the direct inclusion of benchmark data in pre-training datasets and the use of coding platforms like LeetCode for benchmark construction. To address the data leakage, we introduce LessLeak-Bench, a new benchmark that removes leaked samples from the 83 SE benchmarks, enabling more reliable LLM evaluations in future research. Our study enhances the understanding of data leakage in SE benchmarks and provides valuable insights for future research involving LLMs in SE.

Key facts. Cited by 34 papers in the map (data through 7 Oct 2026). Builds on 66 of its 96 references that are in the map. First posted on arXiv 10 Feb 2025.

Builds on

66 of 96 references.

References · 66

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  5. 2021Program Synthesis with Large Language Modelscited by 3,509
  6. 2023Qwen Technical Reportcited by 3,273
  7. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  8. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  9. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  10. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  11. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  12. 2021Measuring Coding Challenge Competence With APPScited by 879
38 more
  1. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  2. 2023StarCoder: may the source be with you!cited by 790
  3. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  4. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
  5. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
  6. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  7. 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 559
  8. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
  9. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  10. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
  11. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
  12. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  13. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  14. 2022A Systematic Evaluation of Large Language Models of Codecited by 360
  15. 2020IntelliCode Compose: Code Generation Using Transformercited by 225
  16. 2024Leak, Cheat, Repeat: Data Contamination and Evaluation Malpractices in Closed-Source LLMscited by 224
  17. 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
  18. 2023SantaCoder: don't reach for the stars!cited by 169
  19. 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
  20. 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
  21. 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 149
  22. 2024CodeGemma: Open Code Models Based on Gemmacited by 145
  23. 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
  24. 2022MultiPL-E: A Scalable and Extensible Approach to Benchmarking Neural Code Generationcited by 132
  25. 2023CodeGen2: Lessons for Training LLMs on Programming and Natural Languagescited by 124
  26. 2018Mapping Language to Code in Programmatic Contextcited by 104
  27. 2022CERT: Continual Pre-Training on Sketches for Library-Oriented Code Generationcited by 87
  28. 2023Refining ChatGPT-Generated Code: Characterizing and Mitigating Code Quality Issuescited by 78
  29. 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
  30. 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedbackcited by 69
  31. 2023On the Robustness of Code Generation Techniques: An Empirical Study on GitHub Copilotcited by 64
  32. 2024Quantifying Contamination in Evaluating Code Generation Capabilities of Language Modelscited by 62
  33. 2023How Effective Are Neural Networks for Fixing Security Vulnerabilitiescited by 50
  34. 2021D2A: A Dataset Built for AI-Based Vulnerability Detection Methods Using Differential Analysiscited by 48
  35. 2022PanGu-Coder: Program Synthesis with Function-Level Language Modelingcited by 47
  36. 2023Can It Edit? Evaluating the Ability of Large Language Models to Follow Code Editing Instructionscited by 46
  37. 2023Exploring the Potential of ChatGPT in Automated Code Refinement: An Empirical Studycited by 44
  38. 2022MCoNaLa: A Benchmark for Code Generation from Multiple Natural Languagescited by 41

50 most cited of 66 All 66 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 21; 2026: 13.

34 papers.

Sort:

By area:

  1. 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
  2. 2026ToolSafe: Enhancing Tool Invocation Safety of LLM-based agents via Proactive Step-level Guardrail and Feedbackcited by 64
  3. 2025The Personality Illusion: Revealing Dissociation Between Self-Reports & Behavior in LLMscited by 35
  4. 2025DeepResearch Arena: The First Exam of LLMs' Research Abilities via Seminar-Grounded Taskscited by 24
  5. 2026SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Taskscited by 24
  6. 2025A Study of LLMs' Preferences for Libraries and Programming Languagescited by 20
  7. 2025Does SWE-Bench-Verified Test Agent Ability or Model Memory?cited by 14
  8. 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agentscited by 11
  9. 2025Scaling Beyond Context: A Survey of Multimodal Retrieval-Augmented Generation for Document Understandingcited by 9
  10. 2025Benchmarking LLMs for Unit Test Generation from Real-World Functionscited by 8
  11. 2026Soft Contamination Means Benchmarks Test Shallow Generalizationcited by 8
  12. 2025ConsistencyChecker: Tree-based Evaluation of LLM Generalization Capabilitiescited by 5
22 more
  1. 2025The Rise of AI Teammates in Software Engineering (SE) 3.0: How Autonomous Coding Agents Are Reshaping Software Engineeringcited by 4
  2. 2026Benchmarking Empirical Privacy Protection for Adaptations of Large Language Modelscited by 4
  3. 2026ProxyWar: Dynamic Assessment of LLM Code Generation in Game Arenascited by 3
  4. 2025The Ever-Evolving Science Examcited by 2
  5. 2025ISACL: Internal State Analyzer for Copyrighted Training Data Leakagecited by 2
  6. 2025Secure-Instruct: An Automated Pipeline for Synthesizing Instruction-Tuning Datasets Using LLMs for Secure Code Generationcited by 2
  7. 2026PRISM: Generation-Time Detection and Mitigation of Secret Leakage in Multi-Agent LLM Pipelinescited by 2
  8. 2025Re-Evaluating Code LLM Benchmarks Under Semantic Mutationcited by 1
  9. 2025Importance Sampling is All You Need: Predict LLM's performance on new benchmark by reusing existing benchmarkcited by 1
  10. 2025SEQR: Secure and Efficient QR-based LoRA Routingcited by 1
  11. 2025Neither Stochastic Parroting nor AGI: LLMs Solve Tasks through Context-Directed Extrapolation from Training Data Priorscited by 0
  12. 2025A Conceptual Framework for AI Capability Evaluationscited by 0
  13. 2025From Benchmark Data To Applicable Program Repair: An Experience Reportcited by 0
  14. 2025A Systematic Review on the Generative AI Applications in Human Medical Genomicscited by 0
  15. 2025ML2B: Benchmarking LLMs on Cross-Lingual ML Pipeline Generationcited by 0
  16. 2026Selecting Language Models for Social Science: Start Small, Start Open, and Validatecited by 0
  17. 2026A Metamorphic Testing Approach to Diagnosing Memorization in LLM-Based Program Repaircited by 0
  18. 2026OpenAnt: LLM-Powered Vulnerability Discovery Through Code Decomposition, Adversarial Verification, and Dynamic Testingcited by 0
  19. 2026CombEval: A Framework for Evaluating Combinatorial Counting in Large Language Modelscited by 0
  20. 2026SrDetection: A Self-Referential Framework for Data Leakage Detection in Code Large Language Modelscited by 0
  21. 2026From Chasing Ghosts to Missed Attacks: Perspectives and Perceptions of SOC Practitioners on LLM Integration, Risks, and Readinesscited by 0
  22. 2026Cost-Aware Best-LLM Identification using Dueling Feedbackcited by 0