Pith. sign in

REVIEW 3 cited by

Practical Program Repair in the Era of Large Pre-trained Language Models

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2210.14179 v2 pith:JCD6GKI3 submitted 2022-10-25 cs.SE

classification cs.SE
keywords plmsdatasetspatchdifferentdirectlymodelspatchesrepair
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Automated Program Repair (APR) aims to help developers automatically patch software bugs. However, current state-of-the-art traditional and learning-based APR techniques face the problem of limited patch variety, failing to fix complicated bugs. This is mainly due to the reliance on bug-fixing datasets to craft fix templates or directly predict potential patches. Large Pre-Trained Language Models (PLMs), trained using billions of text/code tokens, can potentially help avoid this issue. Very recently, researchers have directly leveraged PLMs for APR without relying on any bug-fixing datasets. Meanwhile, such existing work either failed to include state-of-the-art PLMs or was not evaluated on realistic datasets. In this work, we perform the first extensive study on directly applying PLMs for APR. We select 9 recent state-of-the-art PLMs, including both generative and infilling models, ranging from 125M to 20B in size. We designed 3 different repair settings to evaluate the different ways we can use PLMs to generate patches. We apply the PLMs under these repair settings on 5 datasets across 3 different languages and compare different PLMs in the number of bugs fixed, generation speed and compilation rate. Our study demonstrates that directly applying state-of-the-art PLMs can already substantially outperform all existing APR techniques on all our datasets. Among the studied PLMs, the scaling effect exists for APR where larger models tend to achieve better performance. Also, we show for the first time that suffix code after the buggy line (adopted in infilling-style APR) is important in not only generating more fixes but more patches with higher compilation rate. Besides patch generation, the PLMs consider correct patches to be more natural than other ones, and can even be leveraged for effective patch ranking or patch correctness checking.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 3 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. When Fine-Tuning LLMs Meets Data Privacy: An Empirical Study of Federated Learning in LLM-Based Program Repair

    cs.SE 2024-12 conditional novelty 6.0 of 10

    Federated fine-tuning of six code LLMs on private bug-fix data improves program repair to near-centralized levels, with negligible impact from heterogeneous code.

  2. SWE-Fixer: Training Open-Source LLMs for Effective and Efficient GitHub Issue Resolution

    cs.CL 2025-01 conditional novelty 5.0 of 10

    An open-source two-module pipeline (retriever plus editor) trained on 110K GitHub issue patches reaches 30.2% on SWE-Bench Verified and 24.7% on Lite with P2P filtering.

  3. HumanEval Pro and MBPP Pro: Evaluating Large Language Models on Self-invoking Code Generation

    cs.SE 2024-12 conditional novelty 5.0 of 10

    HumanEval Pro and MBPP Pro test whether LLMs can first solve a base function and then call it inside a more complex solution, and frontier models lose about 10 to 15 points on this task.

Pith tools