PAFT: Preservation Aware Fine-Tuning for Minimal-Edit Program Repair
School of Artificial Intelligence (School of Software), Yanshan University(燕山大学人工智能学院(软件学院));Department of Computer Science, Aalto University(阿尔托大学计算机科学系)
Large language models (LLMs) are effective for automated program repair, but plausible patches that pass the full test suite often rewrite more code than necessary, increasing review and maintenance costs. This over-editing is common because most bugs are localized, while standard supervised fine-tuning provides no explicit signal about which tokens should be preserved and which should be changed. We propose PAFT, a preservation-aware fine-tuning method for minimal-edit program repair. PAFT derives token-level preservation signals by aligning buggy and fixed code, combines them with full-sequence masking, and applies an edit-difficulty curriculum. Across Defects4J and HumanEval-Java, PAFT improves pass@1 by up to 65.6% over standard supervised fine-tuning (StdFT) while reducing average edit distance (AED) by up to 32.6%. On Defects4J with DeepSeek-Coder-6.7B, PAFT also outperforms AdaPatcher, a strong preference-based repair baseline, improving pass@1 from 5.9% to 10.1% while reducing median AED from 61.0 to 42.0. Overall, PAFT preserves stable context and concentrates edits on faulty regions, yielding smaller, more localized, plausible patches without inference-time search, reranking, or post-processing.
QiMeng-PRepair: Precise Code Repair via Edit-Aware Reward Optimization
State Key Lab of Processors, Institute of Computing Technology, CAS(中国科学院计算技术研究所处理器芯片国家重点实验室);University of Chinese Academy of Sciences(中国科学院大学);Institute of Microelectronics, CAS(中国科学院微电子研究所)
BoostAPR: Boosting Automated Program Repair via Execution-Grounded Reinforcement Learning with Dual Reward Models
State Key Laboratory of Networking and Switching Technology(网络与交换技术国家重点实验室);Beijing University of Posts and Telecommunications(北京邮电大学);University of Luxembourg(卢森堡大学)
Southwest University(西南大学);Aarhus University(奥胡斯大学);University of York(约克大学);Centro de Informática, Universidade Federal de Pernambuco (UFPE)(伯南布哥联邦大学信息中心);University of Lancaster(兰卡斯特大学)