arrow
Return

Context-aware Retrieval-based Deep Commit Message Generation

delete2021-07-23
delete28
delete
OA
AI
H
Haoye Wang
X
Xin Xia *
David Lo cover
David Lo (David Lo)
Q
Qiang He
王
王新宇 (Xinyu Wang)
John Grundy cover
John Grundy (John Grundy)
DOI:10.1145/3464689delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Commit messages recorded in version control systems contain valuable information for software development, maintenance, and comprehension. Unfortunately, developers often commit code with empty or poor quality commit messages. To address this issue, several studies have proposed approaches to generate commit messages from commit diffs. Recent studies make use of neural machine translation algorithms to try and translate git diffs into commit messages and have achieved some promising results. However, these learningbasedmethods tend to generate high-frequency words but ignore low-frequency ones. In addition, they suffer from exposure bias issues, which leads to a gap between training phase and testing phase. In this article, we propose COREC to address the above two limitations. Specifically, we first train a contextaware encoder-decoder model that randomly selects the previous output of the decoder or the embedding vector of a ground truth word as context to make the model gradually aware of previous alignment choices. Given a diff for testing, the trained model is reused to retrieve the most similar diff from the training set. Finally, we use the retrieval diff to guide the probability distribution for the final generated vocabulary. Our method combines the advantages of both information retrieval and neural machine translation. We evaluate CoRec on a dataset from Liu et al. and a large-scale dataset crawled from 10K popular Java repositories in Github. Our experimental results show that COREC significantly outperforms the state-of-the-art method NNGen by 19% on average in terms of BLEU.
Keywords:
Commit message generation
neural machine translation
information retrieval
Delving into History: Retrieve Less but Augment More on Commit Message Generation
err2026-09-16
err0
errOAAI
errPeng Lan; Jiakun Liu; Xinyu Zhong; Ning Gui; Lingfeng Bao; David Lo; Zhifang Liao
errShare
errSave
Is It Hard to Generate Holistic Commit Message?
err2025-01-18
err0
PREAI
errWang, Guoqing; Sun, Zeyu; Dong, Jinhao; Zhang, Yuxia; Zhu, Mingxuan; Liang, Qingyuan; Hao, Dan
errShare
errSave
KADEL: Knowledge-Aware Denoising Learning for Commit Message Generation
err2024-06-04
err2
errOAAI
errTao, Wei; Zhou, Yucheng; Wang, Yanlin; Zhang, Hongyu; Wang, Haofen; Zhang, Wenqiang
errShare
errSave
CCMG: Enhancing Conventional Commit Message Generation With Hierarchical Context
err2026-05-12
err0
PREAI
errWenke Li; Chengwei Liu; Yiran Zhang; Xuesen Lin; Suyuan Wang; Feng Wu; Cai Fu; Yang Liu
errShare
errSave
COMET: Generating commit messages using delta graph context representation
err2025-04-01
err0
errOAAI
errMandli, Abhinav Reddy; Rajput, Saurabhsingh; Sharma, Tushar
errShare
errSave
AI-Driven Code Documentation: Comparative Evaluation of LLMs for Commit Message Generation
err2026-02-01
err0
errOAAI
errMohamed Mehdi Trigui; Wasfi G. Al-Khatib; Mohammad Amro; Fatma Mallouli
errShare
errSave

Journal

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
Papers:
1.4K
Citations:
4.5K

Organization

zhe jiang university cover
zhe jiang university
Scholars:
1.5K
Papers: 463
Citations: 9.6W
S
Singapore Management University
Scholars:
229
Papers: 159
Citations: 2.3K
S
Swinburne University of Technology
Scholars:
687
Papers: 354
Citations: 10.0K
M
monash university
Scholars:
3.6K
Papers: 1.4K
Citations: 4.5W
researcher View more organizations
Cited Papers

Cited Papers

Safety of Pressurized Intraosseous Blood Infusion Strategies in a Swine Model of Hemorrhagic Shock
err2020-02-01
err0
errOAAI
errJonathan D. Auten; Christian S. McEvoy; Paul J. Roszko; Travis M. Polk; Ryan E. Kachur; Jean D. Kemp; Ramesh Natarajan; Greg J. Zarow
errShare
errSave
err
IF0
err
err0
errOAAI
err
errShare
errSave
errShare
errSave
Chromatin Accessibility Profiling Reveals Cis-Regulatory Heterogeneity and Novel Transcription Factor Dependencies in Multiple Myeloma
err2018-11-29
err0
errOAAI
errChristopher J. Ott; Raphael Szalat; Matthew Lawlor; Mehmet Kemal Samur; Yan Xu; Charles B Epstein; Charles Y Lin; Rao Prabhala; Nina Farrell; Lauren D Walter; Logan Schwartz; Kenneth Wen; Yu-Tzu Tai; Mariateresa Fulciniti; Jinhua Wang; Nathanael Gray; Kenneth Anderson; Richard A. Young; Nikhil Munshi
errShare
errSave
Enzymatic analysis of total- and HDL-cholesterol: Comparison with the standardized Liebermann-Burchard method used by the lipid research clinics program
err1988-06-01
err0
errOAAI
errPaul S. Bachorik; Donna G. Virgil; Carol Derby; David Widman; Robert McMahon; Robinson P. Fulwood; Trena Ezzati
errShare
errSave
Poorer self-rated health in residential areas with limited healthcare supply
err2014-02-12
err0
PREAI
errSigríður Haraldsdóttir; Unnur A Valdimarsdóttir; Sigurður Guðmundsson
errShare
errSave
Establishment and characterization of a new triple-negative canine mammary cancer cell line
err2018-10-01
err0
PREAI
errHong Zhang; Shimin Pei; Bin Zhou; Huanan Wang; Hongchao Du; Di Zhang; Degui Lin
errShare
errSave
errShare
errSave
Long-Range Coupled Motions Underlie Ligand Recognition by a Chemokine Receptor
err2020-12-01
err0
errOAAI
errKrishna Mohan Sepuru; Vinay Nair; Priyanka Prakash; Alemayehu A. Gorfe; Krishna Rajarathnam
errShare
errSave
researcher View more