paperbot · PL 论文追踪

全部论文 待读 收藏

P2 COME: Commit Message Generation with Modification Embedding

COME:基于修改嵌入的提交信息生成
ISSTA Proceedings of the 32nd ACM SIGSOFT International Symposium on Software Testing and Analysis2023匹配度 2/10 · 该论文聚焦提交信息生成(代码改动的表示学习 + 检索/翻译结合),属于软件工程与代码表示的交叉领域,与用户关注的静态分析、形式化验证、浮点程序分析、贝叶斯程序分析等核心方向没有交集;且方法基于传统编码器-解码器而非当前较强 LLM/Agent,也未涉及工业落地或失效 benchmark 分析。引用 24 inbox
Yichen He, Liran Wang, Kaiyi Wang, Yupeng Zhang, Hang Zhang, Zhoujun Li
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:提出 COME 框架,用细粒度修改嵌入与自监督生成任务表示代码改动,并结合检索与翻译方法生成提交信息。

提交信息以自然语言简洁描述代码改动,对程序理解与维护至关重要。已有自动生成方法因代码改动表示不当、翻译式与检索式方法结合不佳而性能受限。本文提出 COME 框架:使用修改嵌入(modification embedding)以细粒度方式表示代码改动;设计自监督生成任务,学习上下文化的代码改动表示;并通过决策算法融合检索式与翻译式方法。在自动评价指标上,COME 相对当时最优方法平均提升 9.2%,在人工评价指标上平均提升 8.0%。消融分析显示,三个主要组件分别带来 8.6%、8.7% 与 5.2% 的提升,验证了各组件对整体性能的有效性。

问题
已有提交信息自动生成方法因代码改动表示不够恰当,以及翻译式与检索式方法结合不当,导致生成质量受限。
方法
提出 COME 框架,采用细粒度修改嵌入表示代码改动,设计自监督生成任务学习上下文化的代码改动表示,并用决策算法融合检索式与翻译式方法。
评估
在自动评价指标上相对当时最优方法平均提升 9.2%,人工评价指标平均提升 8.0%,并通过消融实验分析三个主要组件的贡献(分别提升 8.6%、8.7% 和 5.2%)。
原文摘要(Abstract)

Commit messages concisely describe code changes in natural language and are important for program comprehension and maintenance. Previous studies proposed some approaches for automatic commit message generation, but their performance is limited due to inappropriate representation of code changes and improper combination of translation-based and retrieval-based approaches. To address these problems, this paper introduces a novel framework named COME, in which modification embeddings are used to represent code changes in a fine-grained way, a self-supervised generative task is designed to learn contextualized code change representation, and retrieval-based and translation-based methods are combined through a decision algorithm. The average improvement of COME over the state-of-the-art approaches is 9.2% on automatic evaluation metrics and 8.0% on human evaluation metrics. We also analyse the effectiveness of COME's three main components and each of them results in an improvement of 8.6%, 8.7% and 5.2%.

链接与引用

DOI 原文 · DBLP

BibTeX
@inproceedings{HeWWZZ023,
  title = {COME: Commit Message Generation with Modification Embedding},
  author = {Yichen He and Liran Wang and Kaiyi Wang and Yupeng Zhang and Hang Zhang and Zhoujun Li},
  booktitle = {ISSTA},
  year = {2023},
  doi = {10.1145/3597926.3598096}
}