paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Boosting Neural Commit Message Generation with Code Semantic Analysis

基于代码语义分析增强神经提交信息生成
ASE 2019 34th IEEE/ACM International Conference on Automated Software Engineering (ASE)2019匹配度 2/10 · 论文聚焦用代码语义分析预处理来提升神经提交信息生成,虽属ML+PL/代码分析交叉,但并未涉及静态分析在ML系统或Agentic程序中的应用,也未用LLM/Agent改进静态分析或形式化验证,更不覆盖浮点程序分析或贝叶斯程序分析。引用 9 inbox
Shuyao Jiang
crossref: 2026-09-12

AI 速览

一句话:提出用代码语义分析预处理代码变更,显著提升神经机器翻译生成提交信息的质量。

提交信息对代码理解至关重要,但开发者常写得不理想;神经机器翻译(NMT)可用于自动生成提交信息,然而现有方法生成质量仍不尽如人意。本文不改进 NMT 算法本身,而是强调将代码变更预处理为简洁输入对训练 NMT 至关重要,并通过代码语义分析实现这一预处理。作者收集了 5 万余条流行 Java 项目提交的真实数据集,并进行综合实验。结果表明,结合代码语义分析的输入预处理能显著提升 NMT 生成提交信息的效果。该工作为如何将机器学习社区设计的 DNN(如 NMT 模型)应用于软件工程任务提供了启示。

问题
如何自动生成高质量提交信息:现有 NMT 算法生成的提交信息质量仍不理想,而开发者手写提交信息也常不规范。
方法
不改进 NMT 算法,而是对代码变更进行语义分析,将其预处理为更简洁的输入,用于训练 NMT 模型生成提交信息。
评估
在收集的 5 万余条流行 Java 项目真实提交数据集上进行综合实验,验证代码语义分析预处理能显著提升 NMT 的效果。
原文摘要(Abstract)

It has been long suggested that commit messages can greatly facilitate code comprehension. However, developers may not write good commit messages in practice. Neural machine translation (NMT) has been suggested to automatically generate commit messages. Despite the efforts in improving NMT algorithms, the quality of the generated commit messages is not yet satisfactory. This paper, instead of improving NMT algorithms, suggests that proper preprocessing of code changes into concise inputs is quite critical to train NMT. We approach it with semantic analysis of code changes. We collect a real-world dataset with 50k+ commits of popular Java projects, and verify our idea with comprehensive experiments. The results show that preprocessing inputs with code semantic analysis can improve NMT significantly. This work sheds light to how to apply existing DNNs designed by the machine learning community, e.g., NMT models, to complete software engineering tasks.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot5225,
  title = {Boosting Neural Commit Message Generation with Code Semantic Analysis},
  author = {Shuyao Jiang},
  booktitle = {ASE},
  year = {2019},
  doi = {10.1109/ase.2019.00162}
}