KADEL: Knowledge-Aware Denoising Learning for Commit Message Generation

Author:

Tao Wei1,Zhou Yucheng2,Wang Yanlin3,Zhang Hongyu4,Wang Haofen5,Zhang Wenqiang6

Affiliation:

1. Shanghai Engineering Research Center of AI and Robotics, Academy for Engineering and Technology Fudan University, Shanghai, China

2. State Key Laboratory of Internet of Things for Smart City, Department of Computer and Information Science University of Macau, Macau, China

3. School of Software Engineering Sun Yat-sen University, Zhuhai, China

4. School of Big Data and Software Engineering Chongqing University, Chongqing, China

5. College of Design and Innovation Tongji University, Shanghai, China

6. Engineering Research Center of AI and Robotics, Ministry of Education, Academy for Engineering and Technology; Shanghai Key Lab of Intelligent Information Processing, School of Computer Science Fudan 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.

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference69 articles.

1. Eric Arazo, Diego Ortego, Paul Albert, Noel E. O’Connor, and Kevin McGuinness. 2019. Unsupervised Label Noise Modeling and Loss Correction. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA(Proceedings of Machine Learning Research, Vol.  97), Kamalika Chaudhuri and Ruslan Salakhutdinov (Eds.). PMLR, 312–321. http://proceedings.mlr.press/v97/arazo19a.html

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, Ann Arbor, Michigan, USA, June 29, 2005, Jade Goldstein, Alon Lavie, Chin-Yew Lin, and Clare R. Voss (Eds.). Association for Computational Linguistics, 65–72. 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. In Proceedings of the 57th Conference of the Association for Computational Linguistics, ACL;Bosselut Antoine,2019

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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