CoChat

CURE: Code-Aware Neural Machine Translation for Automatic Program Repair

Open access
Jiang, Nan, Lutellier, Thibaud, Tan, Lin · 2021 · 2021 IEEE/ACM 43rd International Conference on Software Engineering (ICSE)
Cited by 290

The DOI matches its Crossref record; 69 of the 69 references it cites were found in a registry or an index.

Abstract

Automatic program repair (APR) is crucial to improve software reliability. Recently, neural machine translation (NMT) techniques have been used to automatically fix software bugs. While promising, these approaches have two major limitations. Their search space often does not contain the correct fix, and their search strategy ignores software knowledge such as strict code syntax. Due to these limitations, existing NMT-based techniques underperform the best template-based approaches. We propose CURE, a new NMT-based APR technique with three major novelties. First, CURE pre-trains a programming language (PL) model on a large software codebase to learn developer-like source code before the APR task. Second, CURE designs a new code-aware search strategy that finds more correct fixes by focusing on searching for compilable patches and patches that are close in length to the buggy code. Finally, CURE uses a subword tokenization technique to generate a smaller search space that contains more correct fixes. Our evaluation on two widely-used benchmarks shows that CURE correctly fixes 57 Defects4J bugs and 26 QuixBugs bugs, outperforming all existing APR techniques on both benchmarks.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1109/icse43902.2021.00107

Cites

69 of 69 references verified0 citation errors · 0 not checkable

Statistics

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Research works printed but not linked: 20

  1. murali, 2018, Neural Sketch Learning for Conditional Program Generation, ICLRE
  2. wang, 2017, Software reliability prediction using a deep learning model based on the RNN encoder–decoder, RESS
  3. 10.1145/3212695 · DOI · Paper page
  4. radford, 2019, Language Models are Unsupervised Multitask Learners, OpenAIRE blog, 1, 9
  5. radford, 2018, Improving Language Understanding by Generative Pre-Training, OpenAIRE blog
  6. vaswani, 2017, Attention Is All You Need, NeurIPS, 5998
  7. 10.1109/ICCIS.2013.490 · doi:10.1109/iccis.2013.490
  8. dinella, 2019, Hoppity: Learning Graph Transformations to Detect and Fix Bugs in Programs, ICLRE
  9. tian, 2020, Evaluating Representation Learning of Code Changes for Predicting Patch Correctness in Program Repair, ASE
  10. ghanbari, 2019, Practical Program Repair via Bytecode Mutation, ISSTA
  11. ding, 2020, Patching as Translation: the Data and the Metaphor, ASE
  12. skorokhodov, 2018, Semi-Supervised Neural Machine Translation with Language Models, LoResMT AMTA, 37
  13. allamanis, 2016, A Convolutional Attention Network for Extreme Summarization of Source Code, ICML, 2091
  14. santos, 2017, Finding and Correcting Syntax Errors Using Recurrent Neural Networks, PeerJ PrePrints, 5, e3123v1
  15. henkel, 2018, Code Vectors: Under-standing Programs through Embedded Abstracted Symbolic Traces, ESEC/FSE, 163
  16. alon, 2019, code2seq: Generating Sequences from Structured Representations of Code, ICLRE
  17. wang, 2020, Learning Semantic Program Embeddings with Graph Interval Neural Network, ACM OOPSLA
  18. wolf, 2020, Hugging-Face’s Transformers: State-of-the-art Natural Language Processing, EMNLP
  19. saha, 2019, Harnessing Evolution for MultiHunk Program Repair, ICSE IEEE, 13
  20. kingma, 2015, Adam: A Method for Stochastic Optimization, ICLRE

Cited by

See all 290

Metadata

Authors
Jiang, N., Lutellier, T., & Tan, L.
Venue
2021 IEEE/ACM 43rd International Conference on Software Engineering (ICSE)
Publisher
IEEE
Published
2021-05
Pages
1161-1173
OpenAlex
W3134686229
Cited by
290
References
69
FWCI
38.27
Type
conference paper
Language
en
Open access
green

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.