arrow
Return

DALO-APR: LLM-based automatic program repair with data augmentation and loss function optimization

delete2025-03-21
delete0
PRE
AI
S
S. Wang
L
Lu Lu *
Q
Qiu, Shaojian
T
Tian, Qingyan
L
Lin, Haishan
DOI:10.1007/s11227-025-07102-3delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Automatic program repair (APR) has made significant strides with the advent of large language models (LLMs) such as T5 and CodeT5. However, LLM-based APR models may rely on repetitive repair patterns due to limited training data diversity, resulting in suboptimal performance. Additionally, common loss functions, such as cross-entropy, may not fully prioritize repair locations or optimize the model's output probability distribution to favor more accurate repair candidates. To address these challenges, this paper proposes a method for LLM-Based APR with Data Augmentation and Loss Function Optimization (DALO-APR). The data augmentation strategy expands the variety of repair patterns by randomly deleting, inserting, swapping tokens, and injecting errors. The optimized loss function helps the model rank more accurate repair candidates higher. Experimental results on Java, JavaScript, Python, and C datasets demonstrate that DALO-APR improves both error localization and bug fixing. Compared to baseline models, DALO-APR shows improvements across multiple metrics, especially with a 105.65% increase in 100% accuracy.
Keywords:
Automatic program repair
Large language models
Data augmentation
Loss function

Journal

Journal of Supercomputing cover
Journal of Supercomputing
IF:
2.7
Papers:
1.2K
Citations:
1.0W

Organization

Cited Papers

Cited Papers

errShare
errSave
RankT5: Fine-Tuning T5 for Text Ranking with Ranking Losses
err2023-07-18
err0
errOAAI
errHonglei Zhuang; Zhen Qin; Rolf Jagerman; Kai Hui; Ji Ma; Jing Lu; Jianmo Ni; Xuanhui Wang; Michael Bendersky
errShare
errSave
An Empirical Study on Learning Bug-Fixing Patches in the Wild via Neural Machine Translation
err2019-09-02
err204
errOAAI
errTufano, Michele; Watson, Cody; Bavota, Gabriele; Di Penta, Massimiliano; White, Martin; Poshyvanyk, Denys
errShare
errSave
GenProg: A Generic Method for Automatic Software Repair
err2012-01-01
err594
PREAI
errLe Goues, Claire; ThanhVu Nguyen; Forrest, Stephanie; Weimer, Westley
errShare
errSave
researcher View more