paper-with-me

Papers

Can we learn from developer mistakes? Learning to localize and repair real bugs from real bug fixes

2022-07-01 · Cedric Richter, Heike Wehrheim

Real bug fixes found in open source repositories seem to be the perfect source for learning to localize and repair real bugs. However, the absence of large scale bug fix collections has made it difficult to effectively exploit real bug fixes in the training of larger neural models in the past. In contrast, artificial bugs -- produced by mutating existing source code -- can be easily obtained at a sufficient scale and are therefore often preferred in the training of existing approaches. Still, localization and repair models that are trained on artificial bugs usually underperform when faced with real bugs. This raises the question whether bug localization and repair models trained on real bug fixes are more effective in localizing and repairing real bugs. We address this question by introducing RealiT, a pre-train-and-fine-tune approach for effectively learning to localize and repair real bugs from real bug fixes. RealiT is first pre-trained on a large number of artificial bugs produced by traditional mutation operators and then fine-tuned on a smaller set of real bug fixes. Fine-tuning does not require any modifications of the learning algorithm and hence can be easily adopted in various training scenarios for bug localization or repair (even when real training data is scarce). In addition, we found that training on real bug fixes with RealiT is empirically powerful by nearly doubling the localization performance of an existing model on real bugs while maintaining or even improving the repair performance.

📄 PDF Abstract BibTeX arXiv:2207.00301

Code (1)

cedricrupb/nbfbaselines 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

Repair 설명 없음

Similar Papers 제목 키워드 기반

Repair Is Nearly Generation: Multilingual Program Repair with LLMs

2022-08-24 · Harshit Joshi, José Cambronero, Sumit Gulwani, Vu Le 외

Most programmers make mistakes when writing code. Some of these mistakes are small and require few edits to the original program -- a class of errors recently termed last mile mistakes. These errors break the flow for ex…

Language ModellingLarge Language ModelProgram Repair

How Do LLMs Read Bug Reports? An Empirical Study of Attention in LLMs for Automated Program Repair

2026-07-28 · Ramtin Ehsani, Irene Manotas, Saurabh Pujar, Luca Buratti 외 arxiv

Large Language Model (LLM)-based Automated Program Repair systems are advancing rapidly, yet their performance remains inconsistent. Even when provided with the same contextual information, an LLM may generate a correct …

Program Repair

Detect-Localize-Repair: A Unified Framework for Learning to Debug with CodeT5

2022-11-27 · Nghi D. Q. Bui, Yue Wang, Steven Hoi

Automated software debugging is a crucial task for improving the productivity of software developers. Many neural-based techniques have been proven effective for debugging-related tasks such as bug localization and progr…

Bug fixingLanguage ModelingLanguage ModellingProgram Repair

Repairing Bugs in Python Assignments Using Large Language Models

2022-09-29 · Jialu Zhang, José Cambronero, Sumit Gulwani, Vu Le 외

Students often make mistakes on their introductory programming assignments as part of their learning process. Unfortunately, providing custom repairs for these mistakes can require a substantial amount of time and effort…

ChunkingLanguage ModelingLanguage ModellingLarge Language Model+1

SmellBench: Evaluating LLM Agents on Architectural Code Smell Repair

2026-05-07 · Ion George Dinu, Marian Cristian Mihăescu, Traian Rebedea arxiv

Architectural code smells erode software maintainability and are costly to repair manually, yet unlike localized bugs, they require cross-module reasoning about design intent that challenges both developers and automated…