Automated Repair of Programs from Large Language Models
National University of Singapore · Beihang University · +1 more institution
Abstract
Large language models such as Codex, have shown the capability to produce code for many programming tasks. However, the success rate of existing models is low, especially for complex programming tasks. One of the reasons is that language models lack awareness of program semantics, resulting in incorrect programs, or even programs which do not compile. In this paper, we systematically study whether automated program repair (APR) techniques can fix the incorrect solutions produced by language models in LeetCode contests. The goal is to study whether APR techniques can enhance reliability in the code produced by large language models. Our study revealed that: (1) automatically generated code shares common…
Citation impact
- FWCI
- 93.84
- Percentile
- 100%
- References
- 58
Authors
5Topics & keywords
- Computer science
- Compiler
- Programming language
- Semantics (computer science)
- Code (set theory)
- Java
- Language model
- Software engineering