Diff-Based Code Corruption using LLMs for Large-Scale Bugfix Benchmarking
Not on the map. Why?
Abstract (arXiv)
There are various benchmarks to evaluate bugfixing capabilities of Large Language Models. However, most widespread benchmarks do not fully reflect real-world bugfixing practices. They are small, weakening statistical reliability, and the buggy programs are often similar to one another, potentially distorting evaluation results. The range of bug types can also be narrow, failing to capture a representative range of bugs. To address these issues, we introduce MegaBugFix, a large-scale bugfixing benchmark containing 12,629 buggy Python programs synthesized from correct ones by a Large Language Model. Bug injections were generated as diffs representing code changes. Through this approach, we were able to avoid common pitfalls of LLM-based mutation techniques like injecting overly simplistic bugs or failing to modify the input program. We evaluated 13 open-weight models on MegaBugFix and baseline benchmarks, finding consistently lower performance on MegaBugFix. This reveals that our benchmark presents more challenging bugs and exposes model failures that may remain hidden when evaluating on existing benchmarks. The benchmark and fine-tuned model used for bug injection are available at hf.co/collections/szalontaib/megabugfix.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 25 of its 44 references that are in the map. First posted on arXiv 27 Jun 2026.
Builds on
25 of 44 references.
References · 25
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 452
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 200
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 189
- 2018SequenceR: Sequence-to-Sequence Learning for End-to-End Program Repaircited by 145
- 2018An Empirical Study on Learning Bug-Fixing Patches in the Wild via Neural Machine Translationcited by 108
- 2022Automating Code Review Activities by Large-Scale Pre-trainingcited by 98
- 2020Graph-based, Self-Supervised Program Repair from Diagnostic Feedbackcited by 94
13 more
- 2019TBar: Revisiting Template-based Automated Program Repaircited by 65
- 2024BugsInPy: A Database of Existing Bugs in Python Programs to Enable Controlled Testing and Debugging Studiescited by 36
- 2023InstructCoder: Instruction Tuning Large Language Models for Code Editingcited by 29
- 2024NoFunEval: Funny How Code LMs Falter on Requirements Beyond Functional Correctnesscited by 26
- 2023CCT5: A Code-Change-Oriented Pre-Trained Modelcited by 18
- 2024Exploring the Capabilities of LLMs for Code Change Related Taskscited by 18
- 2024COAST: Enhancing the Code Debugging Ability of LLMs through Communicative Agent Based Data Synthesiscited by 13
- 2024Coffee-Gym: An Environment for Evaluating and Improving Natural Language Feedback on Erroneous Codecited by 9
- 2024LLMorpheus: Mutation Testing using Large Language Modelscited by 8
- 2024CursorCore: Assist Programming through Aligning Anythingcited by 7
- 2025BugGen: A Self-Correcting Multi-Agent LLM Pipeline for Realistic RTL Bug Synthesiscited by 6
- 2023Challenging Bug Prediction and Repair Models with Synthetic Bugscited by 4
- 2024A Comprehensive Study on Large Language Models for Mutation Testingcited by 3
Built on by
Not cited yet.