Less is More: Adaptive Program Repair with Bug Localization and Preference Learning
원문 초록
Automated Program Repair (APR) is a task to automatically generate patches for the buggy code. However, most research focuses on generating correct patches while ignoring the consistency between the fixed code and the original buggy code. How to conduct adaptive bug fixing and generate patches with minimal modifications have seldom been investigated. To bridge this gap, we first introduce a novel task, namely AdaPR (Adaptive Program Repair). We then propose a two-stage approach AdaPatcher (Adaptive Patch Generator) to enhance program repair while maintaining the consistency. In the first stage, we utilize a Bug Locator with self-debug learning to accurately pinpoint bug locations. In the second stage, we train a Program Modifier to ensure consistency between the post-modified fixed code and the pre-modified buggy code. The Program Modifier is enhanced with a location-aware repair learning strategy to generate patches based on identified buggy lines, a hybrid training strategy for selective reference and an adaptive preference learning to prioritize fewer changes. The experimental results show that our approach outperforms a set of baselines by a large margin, validating the effectiveness of our two-stage framework for the newly proposed AdaPR task.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debugging
AutoCodeRover: Autonomous Program Improvement
A Comprehensive Survey of AI-Driven Advancements and Techniques in Automated Program Repair and Code Generation
A Study of Vulnerability Repair in JavaScript Programs with Large Language Models
Detect-Localize-Repair: A Unified Framework for Learning to Debug with CodeT5
Leveraging Causal Inference for Explainable Automatic Program Repair
토론
이 논문과 연결된 포럼 글이 아직 없습니다.