FusionRepair: Iterative Multi-Line APR via Fusion

Learning-based APR techniques continue to face challenges in generating multi-line patches. We identified two fundamental limitations in existing learning-based APR tools. First, the length of the input sequence in existing APR tools is limited, restricting them from gathering information from compacted code contexts. Second, they fail to capture semantic dependencies among generated patches. We introduce Fusion-repair,a transformer-based approach designed to capture additional context information from broader contexts and fix bugs by knowledge transfer-based patch generation. For this purpose, we have adapted the Fusion-in-Decoder(FiD) architecture to provide an expanded context. We utilize an iterative program repair paradigm to generate patches based on the knowledge of previously generated patches. Our experiment with Defects4J v2.0, shows Fusionrepair can produce 55 single-line fixes and 28 multi-line fixes, identical to the developer patch. Comparison with state-of-the-art tools such as ITER and DEAR shows 35% and 18% improvements respectively. Our results show that Fusionrepair has signifi-cantly outperformed current state-of-the-art tools in addressing bugs that require multi-line patches.

Authors

Institutions

Publication Details

Published
2025-04-29
DOI
https://doi.org/10.1109/apr66717.2025.00009
Primary Topic
Software Testing and Debugging Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

FusionRepair: Iterative Multi-Line APR via Fusion

Ridwan Shariffdeen, Nisansa de Silva, Sandareka Wickramanayake, Prabath Sandaruwan et al.
Software Testing and Debugging Techniques
article

FusionRepair: Iterative Multi-Line APR via Fusion

Ridwan Shariffdeen, Nisansa de Silva, Sandareka Wickramanayake, Prabath Sandaruwan, Ayesh Vininda, Jayanath Senevirathna
article en

Abstract

Learning-based APR techniques continue to face challenges in generating multi-line patches. We identified two fundamental limitations in existing learning-based APR tools. First, the length of the input sequence in existing APR tools is limited, restricting them from gathering information from compacted code contexts. Second, they fail to capture semantic dependencies among generated patches. We introduce Fusion-repair,a transformer-based approach designed to capture additional context information from broader contexts and fix bugs by knowledge transfer-based patch generation. For this purpose, we have adapted the Fusion-in-Decoder(FiD) architecture to provide an expanded context. We utilize an iterative program repair paradigm to generate patches based on the knowledge of previously generated patches. Our experiment with Defects4J v2.0, shows Fusionrepair can produce 55 single-line fixes and 28 multi-line fixes, identical to the developer patch. Comparison with state-of-the-art tools such as ITER and DEAR shows 35% and 18% improvements respectively. Our results show that Fusionrepair has signifi-cantly outperformed current state-of-the-art tools in addressing bugs that require multi-line patches.

National University of Singapore (SG), University of Moratuwa (LK)
Openalex Percentile: Top 86%
Software Testing and Debugging Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.