LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarks
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
- 2023GPT-4 Technical Reportcited by 18,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Qwen Technical Reportcited by 3,273
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2021Measuring Coding Challenge Competence With APPScited by 879
38 more
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2023StarCoder: may the source be with you!cited by 790
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 559
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2022A Systematic Evaluation of Large Language Models of Codecited by 360
- 2020IntelliCode Compose: Code Generation Using Transformercited by 225
- 2024Leak, Cheat, Repeat: Data Contamination and Evaluation Malpractices in Closed-Source LLMscited by 224
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
- 2023SantaCoder: don't reach for the stars!cited by 169
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
- 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
- 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 149
- 2024CodeGemma: Open Code Models Based on Gemmacited by 145
- 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
- 2022MultiPL-E: A Scalable and Extensible Approach to Benchmarking Neural Code Generationcited by 132
- 2023CodeGen2: Lessons for Training LLMs on Programming and Natural Languagescited by 124
- 2018Mapping Language to Code in Programmatic Contextcited by 104
- 2022CERT: Continual Pre-Training on Sketches for Library-Oriented Code Generationcited by 87
- 2023Refining ChatGPT-Generated Code: Characterizing and Mitigating Code Quality Issuescited by 78
- 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
- 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedbackcited by 69
- 2023On the Robustness of Code Generation Techniques: An Empirical Study on GitHub Copilotcited by 64
- 2024Quantifying Contamination in Evaluating Code Generation Capabilities of Language Modelscited by 62
- 2023How Effective Are Neural Networks for Fixing Security Vulnerabilitiescited by 50
- 2021D2A: A Dataset Built for AI-Based Vulnerability Detection Methods Using Differential Analysiscited by 48
- 2022PanGu-Coder: Program Synthesis with Function-Level Language Modelingcited by 47
- 2023Can It Edit? Evaluating the Ability of Large Language Models to Follow Code Editing Instructionscited by 46
- 2023Exploring the Potential of ChatGPT in Automated Code Refinement: An Empirical Studycited by 44
- 2022MCoNaLa: A Benchmark for Code Generation from Multiple Natural Languagescited by 41
50 most cited of 66 All 66 (JSON)
Built on by
Citing papers per year: 2025: 21; 2026: 13.
34 papers.
Sort:
By area:
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
- 2026ToolSafe: Enhancing Tool Invocation Safety of LLM-based agents via Proactive Step-level Guardrail and Feedbackcited by 64
- 2025The Personality Illusion: Revealing Dissociation Between Self-Reports & Behavior in LLMscited by 35
- 2025DeepResearch Arena: The First Exam of LLMs' Research Abilities via Seminar-Grounded Taskscited by 24
- 2026SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Taskscited by 24
- 2025A Study of LLMs' Preferences for Libraries and Programming Languagescited by 20
- 2025Does SWE-Bench-Verified Test Agent Ability or Model Memory?cited by 14
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agentscited by 11
- 2025Scaling Beyond Context: A Survey of Multimodal Retrieval-Augmented Generation for Document Understandingcited by 9
- 2025Benchmarking LLMs for Unit Test Generation from Real-World Functionscited by 8
- 2026Soft Contamination Means Benchmarks Test Shallow Generalizationcited by 8
- 2025ConsistencyChecker: Tree-based Evaluation of LLM Generalization Capabilitiescited by 5
22 more
- 2025The Rise of AI Teammates in Software Engineering (SE) 3.0: How Autonomous Coding Agents Are Reshaping Software Engineeringcited by 4
- 2026Benchmarking Empirical Privacy Protection for Adaptations of Large Language Modelscited by 4
- 2026ProxyWar: Dynamic Assessment of LLM Code Generation in Game Arenascited by 3
- 2025The Ever-Evolving Science Examcited by 2
- 2025ISACL: Internal State Analyzer for Copyrighted Training Data Leakagecited by 2
- 2025Secure-Instruct: An Automated Pipeline for Synthesizing Instruction-Tuning Datasets Using LLMs for Secure Code Generationcited by 2
- 2026PRISM: Generation-Time Detection and Mitigation of Secret Leakage in Multi-Agent LLM Pipelinescited by 2
- 2025Re-Evaluating Code LLM Benchmarks Under Semantic Mutationcited by 1
- 2025Importance Sampling is All You Need: Predict LLM's performance on new benchmark by reusing existing benchmarkcited by 1
- 2025SEQR: Secure and Efficient QR-based LoRA Routingcited by 1
- 2025Neither Stochastic Parroting nor AGI: LLMs Solve Tasks through Context-Directed Extrapolation from Training Data Priorscited by 0
- 2025A Conceptual Framework for AI Capability Evaluationscited by 0
- 2025From Benchmark Data To Applicable Program Repair: An Experience Reportcited by 0
- 2025A Systematic Review on the Generative AI Applications in Human Medical Genomicscited by 0
- 2025ML2B: Benchmarking LLMs on Cross-Lingual ML Pipeline Generationcited by 0
- 2026Selecting Language Models for Social Science: Start Small, Start Open, and Validatecited by 0
- 2026A Metamorphic Testing Approach to Diagnosing Memorization in LLM-Based Program Repaircited by 0
- 2026OpenAnt: LLM-Powered Vulnerability Discovery Through Code Decomposition, Adversarial Verification, and Dynamic Testingcited by 0
- 2026CombEval: A Framework for Evaluating Combinatorial Counting in Large Language Modelscited by 0
- 2026SrDetection: A Self-Referential Framework for Data Leakage Detection in Code Large Language Modelscited by 0
- 2026From Chasing Ghosts to Missed Attacks: Perspectives and Perceptions of SOC Practitioners on LLM Integration, Risks, and Readinesscited by 0
- 2026Cost-Aware Best-LLM Identification using Dueling Feedbackcited by 0
- 2026Cost-Aware Best-LLM Identification using Dueling Feedback24 Sep 2026
- 2026From Chasing Ghosts to Missed Attacks: Perspectives and Perceptions of SOC Practitioners on LLM Integration, Risks, and Readiness1 Aug 2026
- 2026SrDetection: A Self-Referential Framework for Data Leakage Detection in Code Large Language Models29 Jun 2026
- 2026CombEval: A Framework for Evaluating Combinatorial Counting in Large Language Models18 Jun 2026
- 2026OpenAnt: LLM-Powered Vulnerability Discovery Through Code Decomposition, Adversarial Verification, and Dynamic Testing17 Jun 2026
- 2026Benchmarking Empirical Privacy Protection for Adaptations of Large Language Models8 Jun 2026
- 2026PRISM: Generation-Time Detection and Mitigation of Secret Leakage in Multi-Agent LLM Pipelines11 May 2026
- 2026A Metamorphic Testing Approach to Diagnosing Memorization in LLM-Based Program Repair23 Apr 2026
- 2026SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Tasks25 Mar 2026
- 2026Soft Contamination Means Benchmarks Test Shallow Generalization12 Feb 2026
- 2026ProxyWar: Dynamic Assessment of LLM Code Generation in Game Arenas4 Feb 2026
- 2026Selecting Language Models for Social Science: Start Small, Start Open, and Validate16 Jan 2026
22 more
- 2026ToolSafe: Enhancing Tool Invocation Safety of LLM-based agents via Proactive Step-level Guardrail and Feedback15 Jan 2026
- 2025Does SWE-Bench-Verified Test Agent Ability or Model Memory?11 Dec 2025
- 2025Scaling Beyond Context: A Survey of Multimodal Retrieval-Augmented Generation for Document Understanding17 Oct 2025
- 2025Secure-Instruct: An Automated Pipeline for Synthesizing Instruction-Tuning Datasets Using LLMs for Secure Code Generation8 Oct 2025
- 2025ML2B: Benchmarking LLMs on Cross-Lingual ML Pipeline Generation26 Sep 2025
- 2025SEQR: Secure and Efficient QR-based LoRA Routing22 Sep 2025
- 2025The Personality Illusion: Revealing Dissociation Between Self-Reports & Behavior in LLMs3 Sep 2025
- 2025DeepResearch Arena: The First Exam of LLMs' Research Abilities via Seminar-Grounded Tasks1 Sep 2025
- 2025A Systematic Review on the Generative AI Applications in Human Medical Genomics27 Aug 2025
- 2025ISACL: Internal State Analyzer for Copyrighted Training Data Leakage25 Aug 2025
- 2025From Benchmark Data To Applicable Program Repair: An Experience Report22 Aug 2025
- 2025Importance Sampling is All You Need: Predict LLM's performance on new benchmark by reusing existing benchmark2 Aug 2025
- 2025Benchmarking LLMs for Unit Test Generation from Real-World Functions1 Aug 2025
- 2025The Ever-Evolving Science Exam22 Jul 2025
- 2025The Rise of AI Teammates in Software Engineering (SE) 3.0: How Autonomous Coding Agents Are Reshaping Software Engineering20 Jul 2025
- 2025A Conceptual Framework for AI Capability Evaluations23 Jun 2025
- 2025Re-Evaluating Code LLM Benchmarks Under Semantic Mutation20 Jun 2025
- 2025ConsistencyChecker: Tree-based Evaluation of LLM Generalization Capabilities14 Jun 2025
- 2025Neither Stochastic Parroting nor AGI: LLMs Solve Tasks through Context-Directed Extrapolation from Training Data Priors29 May 2025
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agents8 May 2025
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2025A Study of LLMs' Preferences for Libraries and Programming Languages21 Mar 2025
- 2026ToolSafe: Enhancing Tool Invocation Safety of LLM-based agents via Proactive Step-level Guardrail and Feedbackcited by 64
- 2025DeepResearch Arena: The First Exam of LLMs' Research Abilities via Seminar-Grounded Taskscited by 24
- 2026SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Taskscited by 24
- 2025Does SWE-Bench-Verified Test Agent Ability or Model Memory?cited by 14
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agentscited by 11
- 2025The Rise of AI Teammates in Software Engineering (SE) 3.0: How Autonomous Coding Agents Are Reshaping Software Engineeringcited by 4
- 2026PRISM: Generation-Time Detection and Mitigation of Secret Leakage in Multi-Agent LLM Pipelinescited by 2
- 2026PRISM: Generation-Time Detection and Mitigation of Secret Leakage in Multi-Agent LLM Pipelines11 May 2026
- 2026SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Tasks25 Mar 2026
- 2026ToolSafe: Enhancing Tool Invocation Safety of LLM-based agents via Proactive Step-level Guardrail and Feedback15 Jan 2026
- 2025Does SWE-Bench-Verified Test Agent Ability or Model Memory?11 Dec 2025
- 2025DeepResearch Arena: The First Exam of LLMs' Research Abilities via Seminar-Grounded Tasks1 Sep 2025
- 2025The Rise of AI Teammates in Software Engineering (SE) 3.0: How Autonomous Coding Agents Are Reshaping Software Engineering20 Jul 2025
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agents8 May 2025
- 2025The Personality Illusion: Revealing Dissociation Between Self-Reports & Behavior in LLMscited by 35
- 2025A Study of LLMs' Preferences for Libraries and Programming Languagescited by 20
- 2025Benchmarking LLMs for Unit Test Generation from Real-World Functionscited by 8
- 2026Soft Contamination Means Benchmarks Test Shallow Generalizationcited by 8
- 2025ConsistencyChecker: Tree-based Evaluation of LLM Generalization Capabilitiescited by 5
- 2026Benchmarking Empirical Privacy Protection for Adaptations of Large Language Modelscited by 4
- 2026ProxyWar: Dynamic Assessment of LLM Code Generation in Game Arenascited by 3
- 2025The Ever-Evolving Science Examcited by 2
- 2025ISACL: Internal State Analyzer for Copyrighted Training Data Leakagecited by 2
- 2025Re-Evaluating Code LLM Benchmarks Under Semantic Mutationcited by 1
- 2025Importance Sampling is All You Need: Predict LLM's performance on new benchmark by reusing existing benchmarkcited by 1
- 2025SEQR: Secure and Efficient QR-based LoRA Routingcited by 1
12 most cited of 23 All 23 (JSON)
- 2026Cost-Aware Best-LLM Identification using Dueling Feedback24 Sep 2026
- 2026From Chasing Ghosts to Missed Attacks: Perspectives and Perceptions of SOC Practitioners on LLM Integration, Risks, and Readiness1 Aug 2026
- 2026SrDetection: A Self-Referential Framework for Data Leakage Detection in Code Large Language Models29 Jun 2026
- 2026CombEval: A Framework for Evaluating Combinatorial Counting in Large Language Models18 Jun 2026
- 2026OpenAnt: LLM-Powered Vulnerability Discovery Through Code Decomposition, Adversarial Verification, and Dynamic Testing17 Jun 2026
- 2026Benchmarking Empirical Privacy Protection for Adaptations of Large Language Models8 Jun 2026
- 2026A Metamorphic Testing Approach to Diagnosing Memorization in LLM-Based Program Repair23 Apr 2026
- 2026Soft Contamination Means Benchmarks Test Shallow Generalization12 Feb 2026
- 2026ProxyWar: Dynamic Assessment of LLM Code Generation in Game Arenas4 Feb 2026
- 2026Selecting Language Models for Social Science: Start Small, Start Open, and Validate16 Jan 2026
- 2025ML2B: Benchmarking LLMs on Cross-Lingual ML Pipeline Generation26 Sep 2025
- 2025SEQR: Secure and Efficient QR-based LoRA Routing22 Sep 2025
12 newest of 23 All 23 (JSON)