TL;DR
MultiMend introduces a multilingual, context-augmented, multi-hunk patch generation approach for automated program repair, improving effectiveness across multiple programming languages and bug types.
Contribution
It presents a novel language-independent method combining context augmentation and multi-hunk patch generation to enhance automated program repair performance.
Findings
Fixed 2,227 bugs across six benchmarks.
Achieved 1,545 exact developer patch matches.
Successfully repaired 121 multi-hunk bugs.
Abstract
Debugging software remains a labor-intensive and time-consuming process despite advances in testing and verification. Learning-based automated program repair (APR) has shown promise in reducing the effort of manually fixing bugs. However, existing techniques face several challenges, including language-dependent strategies, limited bug context utilization, and difficulties in handling bugs that span multiple locations in the code. This paper presents MultiMend, a multilingual learning-based APR approach designed to improve repair performance through language-independent context augmentation and multi-hunk patch generation. MultiMend fine-tunes a pre-trained code language model to generate bug-fixing patches. It embeds source code lines and applies retrieval-augmented generation to augment the usual function-based buggy context with relevant lines during patch generation. The approach…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
