MultiFixer: A Coordinator-Proposer Based Multi-Agent Framework For Fixing Multi-Hunk Bugs
Haichuan Hu, Chunrong Fang, Ye Shang, Jiawei Liu, Weifeng Sun, Guoqing Xie, Chenxing Zhong, Quanjun Zhang
Abstract
Automated Program Repair (APR) has benefited greatly from Large Language Models (LLMs), but existing LLM-based APR methods still struggle with multi-hunk bugs that require coordinated changes across multiple locations. These bugs demand repository-level context understanding, repair-order scheduling, and effective hunk-level patch generation and selection. To address these challenges, we propose MultiFixer, a novel Coordinator-Proposer based multi-agent framework for multi-hunk repair. MultiFixer performs tool-augmented bug analysis, constructs fine-grained repair context, iteratively generates patches through a Coordinator-Proposer architecture, and applies two-stage patch refinement for syntactic and semantic correctness. We evaluate MultiFixer on 835 bugs from Defects4J and three vulnerability benchmarks. On Defects4J, MultiFixer fixes 326 bugs, including 62 multi-method and 27 multi-file bugs, and outperforms prior APR baselines in the reported comparisons with the same base model. Moreover, MultiFixer also fixes 46 multi-hunk bugs among 95 unique fixes. When combined with Claude-3.5-Sonnet, MultiFixer repairs 420 bugs, establishing a new state of the art on Defects4J. On VUL4J, MultiFixer repairs 24 real-world vulnerabilities, including 5 multi-hunk cases. On the multi-hunk subsets of SEC-bench and PatchEval, MultiFixer fixes 11 and 19 vulnerabilities, respectively, outperforming all compared baselines under GPT-3.5. These results demonstrate the effectiveness of MultiFixer for multi-hunk repair.
Create a lesson
Related papers
Mind the Gap: A Deployed Multi-Agent System for Documentation Maintenance
Shared title terminology · Lorenzo Masoero
Enhancing LLM Performance Through Debate: An Empirical Study on Multi-Agent Debate for Coding Tasks
Shared title terminology · Yong Jin Chun, Qihong Chen, Jiawei Li et al.
Multi-Agent Debate Strategies: Survey, Taxonomy, and Challenges
Shared title terminology · Quim Motger, Marc Oriol, Jordi Marco et al.
When the Mythical Man-Month Meets Agentic Web Systems: Structured Coordination for Scalable Development
Shared title terminology · Zhiyao Wu, Zi Liang, Haibo Hu
MADE: Belief-Driven Dual-Agent Coordination for Autonomous Model Deployment
Shared title terminology · Yicheng Liu, Bolin Zhang, Weiran Liu et al.
AgenticRepair: Multi-Faceted Program Context Engineering for Agentic Vulnerability Repair
Shared title terminology · Michael Fu, Qiyue Mei, Patanamon Thongtanunam et al.