arrow
Return

CoreGen: Contextualized Code Representation Learning for Commit Message Generation

delete2021-10-01
delete25
delete
OA
AI
L
Lun Yiu Nie
C
Cuiyun Gao *
Z
Zhicong Zhong
Wai Lam cover
Wai Lam (Wai Lam)
刘洋 cover
刘洋 (Yang Liu)
Z
Zenglin Xu
DOI:10.1016/j.neucom.2021.05.039delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Automatic generation of high-quality commit messages for code commits can substantially facilitate software developers' works and coordination. However, the semantic gap between source code and natural language poses a major challenge for the task. Several studies have been proposed to alleviate the challenge but none explicitly involves code contextual information during commit message generation. Specifically, existing research adopts static embedding for code tokens, which maps a token to the same vector regardless of its context. In this paper, we propose a novel Contextualized code representation learning strategy for commit message Generation (CoreGen). CoreGen first learns contextualized code representations which exploit the contextual information behind code commit sequences. The learned representations of code commits built upon Transformer are then fine-tuned for downstream commit message generation. Experiments on the benchmark dataset demonstrate the superior effectiveness of our model over the baseline models with at least 28.18% improvement in terms of BLEU-4 score. Furthermore, we also highlight the future opportunities in training contextualized code representations on larger code corpus as a solution to low-resource tasks and adapting the contextualized code representation framework to other code-to-text generation tasks. (c) 2021 Elsevier B.V. All rights reserved.
Keywords:
Commit message generation
Code representation learning
Code-to-text generation
Self-supervised learning
Contextualized code representation
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
COMET: Generating commit messages using delta graph context representation
err2025-04-01
err0
errOAAI
errMandli, Abhinav Reddy; Rajput, Saurabhsingh; Sharma, Tushar
errShare
errSave
Learning to represent code changes
err2025-12-17
err0
PREAI
errXunzhu Tang; Haoye Tian; Weiguo Pian; Saad Ezzini; Abdoul Kader Kaboré; Andrew Habib; Kisub Kim; Jacques Klein; Tegawendé F. Bissyandé
errShare
errSave
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
On Representation Learning-based Methods for Effective, Efficient, and Scalable Code Retrieval
err2024-10-01
err1
PREAI
errFranca, Celso; Lima, Rennan C.; Andrade, Claudio; Cunha, Washington; Melo, Pedro O. S. Vaz de; Ribeiro-Neto, Berthier; Rocha, Leonardo; Santos, Rodrygo L. T.; Pagano, Adriana Silvina; Goncalves, Marcos Andre
errShare
errSave

Journal

Neurocomputing cover
Neurocomputing
IF:
6.5
Papers:
2.6W
Citations:
8.4W

Organization

N
nanyang technological university
Scholars:
4.5K
Papers: 2.1K
Citations: 5.3W
sun yatsen university cover
sun yatsen university
Scholars:
9
Papers: 6
Citations: 5.9W
Harbin Institute of Technology cover
Harbin Institute of Technology
Scholars:
1.1W
Papers: 3.1K
Citations: 5.7W
C
chinese university of hongkong
Scholars:
110
Papers: 48
Citations: 2.6W
researcher View more organizations
Cited Papers

Cited Papers

Meta-analysis of bariatric surgery versus non-surgical treatment for type 2 diabetes mellitus
err2016-09-10
err0
errOAAI
errGuo-zhong Wu; Bing Cai; Feng Yu; Zheng Fang; Xing-li Fu; Hai-sen Zhou; Wen Zhang; Zhi-qiang Tian
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
YAC transgene-mediated olfactory receptor gene choice
err2000-02-01
err0
errOAAI
errFarah A.W. Ebrahimi; James Edmondson; Rodney Rothstein; Andrew Chess
errShare
errSave
Nonanalytic supercurrents inHe3−A
err1983-04-01
err0
PREAI
errPaul Muzikar; Dierk Rainer
errShare
errSave
On using machine learning to automatically classify software applications into domain categories
err2012-10-10
err62
errOAAI
errLinares-Vasquez, Mario; McMillan, Collin; Poshyvanyk, Denys; Grechanik, Mark
errShare
errSave
Bayesian Optimal Sensor Placement for Modal Identification of Civil Infrastructures
err2017-03-06
err0
PREAI
errCostas Argyris; Costas Papadimitriou; Panagiotis Panetsos
errShare
errSave
Inosine pranobex enhances human NK cell cytotoxicity by inducing metabolic activation and NKG2D ligand expression
err2019-09-12
err0
errOAAI
errMichael T. McCarthy; Da Lin; Tomoyoshi Soga; Julie Adam; Christopher A. O'Callaghan
errShare
errSave
researcher View more