PofoliaShared via Pofolia

ACM Transactions on Software Engineering and Methodology· 2026Q1

Towards High-Quality Neural Program Repair: Learning from Positive Code Changes

Zongwen Shen, XvXing Ding, Wenkang Zhong, Xiang Chen et al.

Short summary

Retraining neural program repair (NPR) models on datasets filtered to include only 'positive' code changes (identified via clustering analysis) improves patch precision and reduces the introduction of negative changes, addressing concerns about NPR reliability.

AI-generated from the title and abstract; the full text is not read.

Key points

  • Code changes can be categorized into positive, mixed, and negative types based on their fixing patterns.
  • NPR tools may learn generic code modifications rather than specific bug fixes, leading to unreliable patches.
  • Retraining NPR models with datasets filtered for positive code changes improves patch precision.
  • Refined datasets reduce the likelihood of NPR tools introducing negative code changes.

AI-generated from the title and abstract; the full text is not read.

Abstract

Automated Program Repair (APR) seeks to fix bugs without human intervention, aiming to free developers from the tedious and time-consuming debugging process. In recent years, with the advancement of deep learning techniques, Neural Program Repair (NPR) has emerged as a promising research direction for APR. NPR tools have shown significant progress, especially in terms of the number of bugs correctly fixed across well-established benchmarks. However, recent studies have raised concerns regarding the reliability of NPR tools, revealing that tools trained on bug fix data also perform well in fault injection tasks. This suggests that existing NPR tools may not be genuinely fixing bugs, but rather simply making code modifications. As a result, the patches generated by NPR tools have a high likelihood of introducing new bugs, posing a potential risk to software reliability. In this study, we investigate the underlying reasons behind this phenomenon. We begin by conducting an empirical study to investigate different types of code change operations. By performing clustering analysis on a large number of code change samples, we categorize code changes into three distinct groups based on the nature of fixing code change patterns: positive, mixed, and negative. Next, we conduct experiments to investigate how different types of code changes influence NPR tools’ performance. We utilize the code change templates derived from the manual analysis of these clusters to filter the existing dataset and retrain NPR models using this refined dataset. Experimental results show that the retrained NPR models outperform their non-retrained counterparts in terms of precision, and the generated patches contain fewer negative code changes. Based on the results, we discuss insights into the limitations of previous NPR studies and hope to provide researchers with a new perspective for enhancing their reliability by improving dataset quality.

The authors' abstract, as published at the source. ACM Transactions on Software Engineering and Methodology, 2026 · DOI ↗

TakeawaysPremium
Ask the paperFree account

Continue with a free account

Ask the paper: 3 free questions a day about this paper; save it, get its citation, new summaries every day for your field. Takeaways are Premium.

Continue free on the web

Sign in with Google or Apple; no card needed. You come back to this paper.

On your phone:

Field: Software

SoftwareComputer Science