Cited by 96Software Engineering ResearchTopic ModelingNatural Language Processing Techniques

Automatic Code Documentation Generation Using GPT-3

Open access
Khan, Junaed Younus, Uddin, Gias·2022·Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering

Abstract

Source code documentation is an important artifact for efficient software development. Code documentation could greatly benefit from automation since manual documentation is often labouring, resource and time-intensive. In this paper, we employed Codex for automatic code documentation creation. Codex is a GPT-3 based model pre-trained on both natural and programming languages. We find that Codex outperforms existing techniques even with basic settings like one-shot learning (i.e., providing only one example for training). Codex achieves an overall BLEU score of 20.6 for six different programming languages (11.2% improvement over earlier state-of-the-art techniques). Thus, Codex shows promise and warrants in-depth future studies for automatic code documentation generation to support diverse development tasks.

Integrity signals

Registry

Crossref · 10.1145/3551349.3559548

Cites

39 of 39 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”
  • Compliance with stringent legal standards such as GDPR and CCPA is essential, necessitating purpose limitation and data minimization.

    “Compliance with stringent legal standards within applicable jurisdictions, such as the General Data Protection Regulation (GDPR) and California Consumer Privacy Act (CCPA), is essential, necessitating purpose limitation and data minimization [230], [231], [232].”

Cites

Flagged first, then by citations

Cited by

Sorted by citations

Authors
Khan, J. Y., & Uddin, G.
Affiliations
University of Calgary (CA)
Venue
Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering
Publisher
ACM
Published
2022-10-10
Pages
1-6
OpenAlex
W4313563813
Cited by
96
References
39
Citations by year
2026: 10 · 2025: 29 · 2024: 40 · 2023: 15 · 2022: 2
FWCI
19.22
Type
conference paper
Language
en
Open access
Locations
  • IEEE/ACM International Conference on Automated Software Engineering (ASE) (publishedVersion)
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University) (cc-by)
Funders
  • Natural Sciences and Engineering Research Council of Canada
  • Alberta Innovates
  • University of Calgary
Topics
  • Physical Sciences › Computer Science › Information Systems › Software Engineering Research
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
Keywords
GPT-3, codices, source code documentation, one-shot learning, programming language documentation, BLEU evaluation, large language models

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