An Empirical Study on Code Comment Completion
Not on the map. Why?
Abstract (arXiv)
Code comments play a prominent role in program comprehension activities. However, source code is not always documented and code and comments not always co-evolve. To deal with these issues, researchers have proposed techniques to automatically generate comments documenting a given code at hand. The most recent works in the area applied deep learning (DL) techniques to support such a task. Despite the achieved advances, the empirical evaluations of these approaches show that they are still far from a performance level that would make them valuable for developers. We tackle a simpler and related problem: Code comment completion. Instead of generating a comment for a given code from scratch, we investigate the extent to which state-of-the-art techniques can help developers in writing comments faster. We present a large-scale study in which we empirically assess how a simple n-gram model and the recently proposed Text-To-Text Transfer Transformer (T5) architecture can perform in autocompleting a code comment the developer is typing. The achieved results show the superiority of the T5 model, despite the n-gram model being a competitive solution.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). First posted on arXiv 22 Jul 2021.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 4; 2024: 0; 2025: 1.
5 papers.
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
- 2023From Commit Message Generation to History-Aware Commit Message Completioncited by 16
- 2023Automating Code-Related Tasks Through Transformers: The Impact of Pre-trainingcited by 8
- 2023Enriching Source Code with Contextual Data for Code Completion Models: An Empirical Studycited by 8
- 2025Empirical Study of Code Large Language Models for Binary Security Patch Detectioncited by 1
- 2025Empirical Study of Code Large Language Models for Binary Security Patch Detection7 Sep 2025
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2023From Commit Message Generation to History-Aware Commit Message Completion15 Aug 2023
- 2023Enriching Source Code with Contextual Data for Code Completion Models: An Empirical Study24 Apr 2023
- 2023Automating Code-Related Tasks Through Transformers: The Impact of Pre-training8 Feb 2023