Academic Publications

FusionRepair: Iterative Multi-Line APR via Fusion

𝐂𝐨𝐧𝐟𝐞𝐫𝐞𝐧𝐜𝐞 2025 𝘐𝘌𝘌𝘌/𝘈𝘊𝘔 𝘐𝘯𝘵𝘦𝘳𝘯𝘢𝘵𝘪𝘰𝘯𝘢𝘭 𝘞𝘰𝘳𝘬𝘴𝘩𝘰𝘱 𝘰𝘯 𝘈𝘶𝘵𝘰𝘮𝘢𝘵𝘦𝘥 𝘗𝘳𝘰𝘨𝘳𝘢𝘮 𝘙𝘦𝘱𝘢𝘪𝘳 (𝘈𝘗𝘙), 𝘖𝘵𝘵𝘢𝘸𝘢, 𝘊𝘢𝘯𝘢𝘥𝘢 𝐀𝐛𝐬𝐭𝐫𝐚𝐜𝐭 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.

IEEE2025
Automated Program RepairTransformerMulti-Line PatchFusion-in-DecoderDefects4J