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

计算机科学 提交 工作(物理) 消息传递 软件工程 程序设计语言 数据库 工程类 机械工程
作者
Yuxia Zhang,Zhiqing Qiu,Klaas-Jan Stol,Wenhui Zhu,Jiaxin Zhu,Yingchen Tian,Hui Liu
出处
期刊:IEEE Transactions on Software Engineering [IEEE Computer Society]
卷期号:50 (4): 816-835 被引量:42
标识
DOI:10.1109/tse.2024.3364675
摘要

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.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
1秒前
semua发布了新的文献求助20
2秒前
荔枝多酚发布了新的文献求助10
2秒前
酷波er的应助被sandwich采纳,获得10
2秒前
2秒前
Owen的应助被重要白桃采纳,获得10
2秒前
3秒前
3秒前
NM发布了新的文献求助10
3秒前
1111完成签到 ,获得积分10
3秒前
难过早晨完成签到,获得积分10
4秒前
11发布了新的文献求助10
4秒前
4秒前
李爱国的应助被庄户采纳,获得10
4秒前
小二郎的应助被嘻嘻采纳,获得10
4秒前
大个的应助被二月采纳,获得10
5秒前
5秒前
echo发布了新的文献求助10
5秒前
薛小飞发布了新的文献求助10
5秒前
雪白觅海的应助被Monica采纳,获得10
5秒前
qweqwe完成签到,获得积分10
6秒前
6秒前
maguodrgon发布了新的文献求助50
6秒前
传奇3的应助被科研通管家采纳,获得10
6秒前
聪聪冲冲完成签到,获得积分20
6秒前
当女遇到乔发布了新的文献求助150
6秒前
慕青的应助被科研通管家采纳,获得10
6秒前
aajhajkahna的应助被科研通管家采纳,获得10
6秒前
7秒前
7秒前
Lucas的应助被科研通管家采纳,获得10
7秒前
7秒前
7秒前
Lucas的应助被科研通管家采纳,获得10
7秒前
7秒前
7秒前
科研通AI6.4的应助被张教授采纳,获得10
7秒前
秋风的应助被科研通管家采纳,获得10
7秒前
小蘑菇的应助被科研通管家采纳,获得10
7秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
CODESSA Version 2.13 for Windows 2000
Agricultural Ecology (Liao Yuncheng & Lin Wenxiong) 1000
Rosenblum, Global Change Biology 800
Berberine regulates the TLR4 signaling pathway to suppress hypoxia-induced proliferation and migration of pulmonary arterial smooth muscle cells 520
Organizational Behavior 510
Derham on the Law of Set Off (德勒姆论抵消法/第五版) 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 计算机科学 工程类 纳米技术 有机化学 化学工程 内科学 物理 生物化学 复合材料 催化作用 细胞生物学 人工智能 心理学 无机化学 基因 遗传学
热门帖子
关注 科研通微信公众号,转发送积分 7845767
求助须知:如何正确求助?哪些是违规求助? 9365986
关于积分的说明 20648579
捐赠科研通 7441854
什么是DOI,文献DOI怎么找? 3341474
关于科研通互助平台的介绍 2485324
邀请新用户注册赠送积分活动 2363934