atlas

Research map / Image generation / Autoregressive and latent generation

Less Is More: Adaptive Program Repair with Bug Localization and Preference Learning

AAAI 2025 · Image generation › Autoregressive and latent generation · approach: Synthetic training data from generators · 5 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces the AdaPR task (program repair with minimal code modifications) and AdaPatcher, a two-stage Bug Locator + Program Modifier approach trained on a 52K-sample ACPR dataset from CodeNet.

Problem

Automated program repair usually generates correct patches while ignoring how far they deviate from the original buggy code; the paper targets adaptive repair that is both correct and minimally modified.

Approach

A diff-based Bug Locator trained with self-debug learning (execution traces as inline comments) marks buggy lines, then a Program Modifier is trained with location-aware repair learning, hybrid selective-reference training, and DPO-Positive-style adaptive preference learning that favors fewer edits.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use the two-stage AdaPatcher_CG framework instead of GPT-4o instruction promptingCodeLlama-Instruct-7B repair with CodeLlama bug localization · ACPR testAcc: 62.77 -> 67.57Helped
Use the two-stage AdaPatcher_GC framework instead of CodeLlama fine-tuningCodeLlama-Instruct-7B repair · ACPR testConsistency: 51.16 -> 62.22Helped
Add Self-Debug Learning (ablation)AdaPatcher_CC · ACPR testAcc: 31.89 -> 31.95Helped
Add Self-Debug Learning (ablation)AdaPatcher_CC · ACPR testImprove: 33.27 -> 33.74Helped
Add Self-Debug Learning (ablation)AdaPatcher_CC · ACPR testConsistency: 57.06 -> 57.18Helped
Add Location-Aware Repair Learning (ablation)AdaPatcher_CC · ACPR testAcc: 28.05 -> 31.95Helped
Add Location-Aware Repair Learning (ablation)AdaPatcher_CC · ACPR testImprove: 29.61 -> 33.74Helped
Add Location-Aware Repair Learning (ablation)AdaPatcher_CC · ACPR testConsistency: 54.39 -> 57.18Helped
Add Hybrid Training (ablation)AdaPatcher_CC · ACPR testAcc: 29.38 -> 31.95Helped
Add Hybrid Training (ablation)AdaPatcher_CC · ACPR testImprove: 31.03 -> 33.74Helped
Add Hybrid Training (ablation)AdaPatcher_CC · ACPR testConsistency: 54.35 -> 57.18Helped
Add Adaptive Preference Learning (ablation)AdaPatcher_CC · ACPR testAcc: 32.07 -> 31.95Hurt

Surprising findings

Limitations

Experimental setup

Datasets: CodeNet AlphaCode test cases

Benchmarks: ACPR

Metrics: Acc Improve Consistency FR human localization categories (AL/PL/EL/NL)

Baselines: GPT-4o instruction GPT-4o chain-of-thought GPT-4o few-shot CodeLlama instruction CodeLlama chain-of-thought CodeLlama few-shot CodeLlama LoRA fine-tuning Claude-3.5 instruction

Builds on: DPO DPO-Positive LoRA CodeNet

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy