Automatic Code Documentation Generation Using GPT-3

被引:29
|
作者
Khan, Junaed Younus [1 ]
Uddin, Gias [1 ]
机构
[1] Univ Calgary, DISA Lab, Calgary, AB, Canada
基金
加拿大自然科学与工程研究理事会;
关键词
code documentation; GPT-3; Machine Learning;
D O I
10.1145/3551349.3559548
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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.
引用
收藏
页数:6
相关论文
共 50 条
  • [1] Towards the Generation of Musical Explanations with GPT-3
    Krol, Stephen James
    Llano, Maria Teresa
    McCormack, Jon
    ARTIFICIAL INTELLIGENCE IN MUSIC, SOUND, ART AND DESIGN (EVOMUSART 2022), 2022, : 131 - 147
  • [2] Using cognitive psychology to understand GPT-3
    Binz, Marcel
    Schulz, Eric
    PROCEEDINGS OF THE NATIONAL ACADEMY OF SCIENCES OF THE UNITED STATES OF AMERICA, 2023, 120 (06)
  • [3] Depression Detection on Malay Dialects Using GPT-3
    Hayati, Mohamad Farid Mohd
    Ali, Mohd Adli Md.
    Rosli, Ahmad Nabil Md.
    2022 IEEE-EMBS CONFERENCE ON BIOMEDICAL ENGINEERING AND SCIENCES, IECBES, 2022, : 360 - 364
  • [4] CodexDB: Synthesizing Code for Query Processing from Natural Language Instructions using GPT-3 Codex
    Trummer, Immanuel
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2022, 15 (11): : 2921 - 2928
  • [5] GPT-3: What's it good for?
    Dale, Robert
    NATURAL LANGUAGE ENGINEERING, 2021, 27 (01) : 113 - 118
  • [6] Is GPT-3 a Good Data Annotator?
    Ding, Bosheng
    Qin, Chengwei
    Liu, Linlin
    Chia, Yew Ken
    Li, Boyang
    Joty, Shafiq
    Bing, Lidong
    PROCEEDINGS OF THE 61ST ANNUAL MEETING OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS (ACL 2023): LONG PAPERS, VOL 1, 2023, : 11173 - 11195
  • [7] SAGA: Collaborative Storytelling with GPT-3
    Shakeri, Hanieh
    Neustaedter, Carman
    DiPaola, Steve
    CONFERENCE COMPANION PUBLICATION OF THE 2021 COMPUTER SUPPORTED COOPERATIVE WORK AND SOCIAL COMPUTING, CSCW 2021 COMPANION, 2021, : 163 - 166
  • [8] Automatic Documentation Generation via Source Code Summarization
    McBurney, Paul W.
    2015 IEEE/ACM 37TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, VOL 2, 2015, : 903 - 906
  • [9] Investigating the Perception of the Future in GPT-3,-3.5 and GPT-4
    Kozachek, Diana
    2023 PROCEEDINGS OF THE 15TH CONFERENCE ON CREATIVITY AND COGNITION, C&C 2023, 2023, : 282 - 287
  • [10] Can GPT-3 Perform Statutory Reasoning?
    Blair-Stanek, Andrew
    Holzenberger, Nils
    Van Durme, Benjamin
    PROCEEDINGS OF THE 19TH INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND LAW, ICAIL 2023, 2023, : 22 - 31