arrow
返回

Automatic Commit Message Generation: A Critical Review and Directions for Future Work

delete2024-04-01
delete6
delete
OA
AI
Y
Yuxia Zhang
Z
Zhiqing Qiu
K
Klaas-Jan Stol
W
Wenhui Zhu
J
Jiaxin Zhu
Y
Yingchen Tian
刘辉 封面图
刘辉 (Hui Liu) *
DOI:10.1109/TSE.2024.3364675delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Commit messages are critical for code comprehension and software maintenance. Writing a high-quality message requires skill and effort. To support developers and reduce their effort on this task, several approaches have been proposed to automatically generate commit messages. Despite the promising performance reported, we have identified three significant and prevalent threats in these automated approaches: 1) the datasets used to train and evaluate these approaches contain a considerable amount of 'noise'; 2) current approaches only consider commits of a limited diff size; and 3) current approaches can only generate the subject of a commit message, not the message body. The first limitation may let the models 'learn' inappropriate messages in the training stage, and also lead to inflated performance results in their evaluation. The other two threats can considerably weaken the practical usability of these approaches. Further, with the rapid emergence of large language models (LLMs) that show superior performance in many software engineering tasks, it is worth asking: can LLMs address the challenge of long diffs and whole message generation? This article first reports the results of an empirical study to assess the impact of these three threats on the performance of the state-of-the-art auto generators of commit messages. We collected commit data of the Top 1,000 most-starred Java projects in GitHub and systematically removed noisy commits with bot-submitted and meaningless messages. We then compared the performance of four approaches representative of the state-of-the-art before and after the removal of noisy messages, or with different lengths of commit diffs. We also conducted a qualitative survey with developers to investigate their perspectives on simply generating message subjects. Finally, we evaluate the performance of two representative LLMs, namely UniXcoder and ChatGPT, in generating more practical commit messages. The results demonstrate that generating commit messages is of great practical value, considerable work is needed to mature the current state-of-the-art, and LLMs can be an avenue worth trying to address the current limitations. Our analyses provide insights for future work to achieve better performance in practice.
Keyword:
Commit-based software development
open collaboration
commit message generation
benchmark

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.9K
被引数:
1.1W

机构

U
University College Cork
学者数:
1.5W
论文数: 1.3W
被引数: 1.7W
B
beijing institute of technology
学者数:
5.5W
论文数: 4.0W
被引数: 63
C
chinese academy of sciences
学者数:
56.7W
论文数: 45.0W
被引数: 704
学者 查看更多机构
引用论文

引用论文

CoreGen: Contextualized Code Representation Learning for Commit Message Generation
err2021-10-01
err25
errOAAI
errNie, Lun Yiu; Gao, Cuiyun; Zhong, Zhicong; Lam, Wai; Liu, Yang; Xu, Zenglin
err分享
err收藏
Chromatin Accessibility Profiling Reveals Cis-Regulatory Heterogeneity and Novel Transcription Factor Dependencies in Multiple Myeloma
err2018-11-29
err0
errOAAI
errChristopher J. Ott; Raphael Szalat; Matthew Lawlor; Mehmet Kemal Samur; Yan Xu; Charles B Epstein; Charles Y Lin; Rao Prabhala; Nina Farrell; Lauren D Walter; Logan Schwartz; Kenneth Wen; Yu-Tzu Tai; Mariateresa Fulciniti; Jinhua Wang; Nathanael Gray; Kenneth Anderson; Richard A. Young; Nikhil Munshi
err分享
err收藏
Enzymatic analysis of total- and HDL-cholesterol: Comparison with the standardized Liebermann-Burchard method used by the lipid research clinics program
err1988-06-01
err0
errOAAI
errPaul S. Bachorik; Donna G. Virgil; Carol Derby; David Widman; Robert McMahon; Robinson P. Fulwood; Trena Ezzati
err分享
err收藏
Poorer self-rated health in residential areas with limited healthcare supply
err2014-02-12
err0
PREAI
errSigríður Haraldsdóttir; Unnur A Valdimarsdóttir; Sigurður Guðmundsson
err分享
err收藏
err分享
err收藏
Time-Delay Margin Analysis for an Adaptive Controller
err2012-09-01
err0
PREAI
errAndrei Dorobantu; Peter Seiler; Gary J. Balas
err分享
err收藏
学者 查看更多内容