KADEL: Knowledge-Aware Denoising Learning for Commit Message Generation

Author:

Tao Wei1ORCID,Zhou Yucheng2ORCID,Wang Yanlin3ORCID,Zhang Hongyu4ORCID,Wang Haofen5ORCID,Zhang Wenqiang1ORCID

Affiliation:

1. Fudan University, Shanghai, China

2. University of Macau, Macau, China

3. Sun Yat-Sen University, Zhuhai, China

4. Chongqing University, Chongqing, China

5. Tongji University, Shanghai, China

Abstract

Commit messages are natural language descriptions of code changes, which are important for software evolution such as code understanding and maintenance. However, previous methods are trained on the entire dataset without considering the fact that a portion of commit messages adhere to good practice (i.e., good-practice commits), while the rest do not. On the basis of our empirical study, we discover that training on good-practice commits significantly contributes to the commit message generation. Motivated by this finding, we propose a novel knowledge-aware denoising learning method called KADEL. Considering that good-practice commits constitute only a small proportion of the dataset, we align the remaining training samples with these good-practice commits. To achieve this, we propose a model that learns the commit knowledge by training on good-practice commits. This knowledge model enables supplementing more information for training samples that do not conform to good practice. However, since the supplementary information may contain noise or prediction errors, we propose a dynamic denoising training method. This method composes a distribution-aware confidence function and a dynamic distribution list, which enhances the effectiveness of the training process. Experimental results on the whole MCMD dataset demonstrate that our method overall achieves state-of-the-art performance compared with previous methods.

Funder

National Natural Science Foundation of China

Scientific and Technological innovation action plan of Shanghai Science and Technology Committee

Publisher

Association for Computing Machinery (ACM)

Reference69 articles.

1. Proceedings of Machine Learning Research;Arazo Eric,2019

2. Satanjeev Banerjee and Alon Lavie. 2005. METEOR: An automatic metric for MT evaluation with improved correlation with human judgments. In Proceedings of the Workshop on Intrinsic and Extrinsic Evaluation Measures for Machine Translation and/or Summarization@ACL 2005, Jade Goldstein, Alon Lavie, Chin-Yew Lin, and Clare R. Voss (Eds.). Association for Computational Linguistics, 65–72. Retrieved from https://aclanthology.org/W05-0909/

3. The relationship between commit message detail and defect proneness in Java projects on GitHub

4. COMET: Commonsense Transformers for Automatic Knowledge Graph Construction

5. Neural Fuzzy Repair: Integrating Fuzzy Matches into Neural Machine Translation

Cited by 2 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Automated description generation for software patches;Information and Software Technology;2024-07

2. Commit Message Generation via ChatGPT: How Far Are We?;Proceedings of the 2024 IEEE/ACM First International Conference on AI Foundation Models and Software Engineering;2024-04-14

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3