paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Revisiting Learning-based Commit Message Generation

重新审视基于学习的提交信息生成
ICSE 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE)2023匹配度 2/10 · 该论文属于机器学习与软件工程/代码生成交叉,研究对象是提交信息生成,不涉及用户关注的静态分析、Agentic程序、浮点程序分析或贝叶斯程序分析,也未用LLM/Agent改进静态分析或形式化验证;仅在问题驱动的失败模式分析上略有方法学共鸣。引用 20 inbox
Jinhao Dong, Yiling Lou, Dan Hao, Lin Tan
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:系统研究学习型提交信息生成的输出模式,发现约90%为简单模式,并揭示模型主要依赖变更标记。

提交信息能帮助理解代码变更,但人工编写耗时。近年来基于学习的提交信息生成技术取得进展,然而现有评估主要依赖BLEU等自动指标,无法展示生成信息的具体样貌。本文首次系统研究学习型技术生成的提交信息,分析其频繁模式,发现约90%属于新增/删除/修复/避免等简单模式。进一步探究数据集、输入表示和模型组件的影响,发现仅用变更标记(+/-/空格)作为输入时,现有技术仍具竞争力,表明模型主要关注变更标记而未能充分利用代码语法与语义;训练集模式比例也会正向影响生成模式比例,模型组件影响各异。

问题
现有基于学习的提交信息生成技术虽在BLEU等指标上表现良好,但缺乏对生成信息具体模式和能力的细粒度理解,不清楚哪些提交信息能被精确生成。
方法
对学习型技术生成的提交信息进行实证研究,分析频繁模式,并探究数据集、输入表示和模型组件对模式比例的影响。
评估
通过模式分类和消融/替换输入表示(包括仅用变更标记)的实验,揭示约90%生成信息为简单模式,且仅用变更标记时仍具竞争力。
原文摘要(Abstract)

Commit messages summarize code changes and help developers understand the intention. To alleviate human efforts in writing commit messages, researchers have proposed various automated commit message generation techniques, among which learning-based techniques have achieved great success in recent years. However, existing evaluation on learning-based commit message generation relies on the automatic metrics (e.g., BLEU) widely used in natural language processing (NLP) tasks, which are aggregated scores calculated based on the similarity between generated commit messages and the ground truth. Therefore, it remains unclear what generated commit messages look like and what kind of commit messages could be precisely generated by existing learning-based techniques. To fill this knowledge gap, this work performs the first study to systematically investigate the detailed commit messages generated by learning-based techniques. In particular, we first investigate the frequent patterns of the commit messages generated by state-of-the-art learning-based techniques. Surprisingly, we find the majority (~90%) of their generated commit messages belong to simple patterns (i.e., addition/removal/fix/avoidance patterns). To further explore the reasons, we then study the impact of datasets, input representations, and model components. We surprisingly find that existing learning-based techniques have competitive performance even when the inputs are only represented by change marks (i.e., “+”/“-”/“ ”), It indicates that existing learning-based techniques poorly utilize syntax and semantics in the code while mostly focusing on change marks, which could be the major reason for generating so many pattern-matching commit messages. We also find that the pattern ratio in the training set might also positively affect the pattern ratio of generated commit messages; and model components might have different impact on the pattern ratio.

链接与引用

DOI 原文 · DBLP

BibTeX
@inproceedings{DongLHT23,
  title = {Revisiting Learning-based Commit Message Generation},
  author = {Jinhao Dong and Yiling Lou and Dan Hao and Lin Tan},
  booktitle = {ICSE},
  year = {2023},
  doi = {10.1109/icse48619.2023.00075}
}