Cited by 104Software Testing and Debugging TechniquesSoftware Engineering ResearchTeaching and Learning Programming

Can OpenAI's codex fix bugs?: an evaluation on QuixBugs

Prenner, Julian Aron, Babii, Hlib, Robbes, Romain·2022·Proceedings of the Third International Workshop on Automated Program Repair

Abstract

OpenAI's Codex, a GPT-3 like model trained on a large code corpus, has made headlines in and outside of academia. Given a short user-provided description, it is capable of synthesizing code snippets that are syntactically and semantically valid in most cases. In this work, we want to investigate whether Codex is able to localize and fix bugs, two important tasks in automated program repair. Our initial evaluation uses the multi-language QuixBugs benchmark (40 bugs in both Python and Java). We find that, despite not being trained for APR, Codex is surprisingly effective, and competitive with recent state of the art techniques. Our results also show that Codex is more successful at repairing Python than Java, fixing 50% more bugs in Python.

Integrity signals

Registry

Crossref · 10.1145/3524459.3527351

Cites

25 of 25 references verified0 citation errors · 0 not checkable

Statistics

Recomputing p-values needs the paper’s full text.

Claims the paper makes

We couldn’t retrieve this paper’s full text, so its claims and self-check weren’t run. The registry and citation checks still apply.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • A carefully-designed demonstration based on the paper's findings can lead to substantial improvements over widely-used demonstration construction methods.

    “We also show that a carefully-designed demonstration based on our findings can lead to substantial improvements over widely-used demonstration construction methods”
  • Existing studies mainly construct demonstrations by randomly selecting and arranging the demonstration examples.

    “Existing studies [17], [19] mainly construct demonstrations by randomly selecting and arranging the demonstration examples.”
  • Existing works mainly focus on the evaluation of LLMs on one or two tasks and do not discuss the construction of in-context demonstrations in-depth.

    “However, these works mainly focus on the evaluation of LLMs on one or two tasks and do not discuss the construction of in-context demonstrations in-depth.”

Cites

Flagged first, then by citations

Cited by

Sorted by citations

Authors
Prenner, J. A., Babii, H., & Robbes, R.
Affiliations
Free University of Bozen-Bolzano (IT)
Venue
Proceedings of the Third International Workshop on Automated Program Repair
Publisher
ACM
Published
2022-05-19
Pages
69-75
OpenAlex
W4312970618
Cited by
99
References
24
Citations by year
2026: 14 · 2025: 30 · 2024: 38 · 2023: 17
FWCI
16.03
Type
conference paper
Language
en
Open access
closed
Locations
IEEE/ACM International Workshop on Automated Program Repair (APR) (publishedVersion)
Topics
  • Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques
  • Physical Sciences › Computer Science › Information Systems › Software Engineering Research
  • Physical Sciences › Computer Science › Computer Science Applications › Teaching and Learning Programming
Keywords
OpenAI Codex, automated program repair, bug localization, bug fixes, large language models, GPT-3, Python, Java, code generation

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