返回
CoreGen: Contextualized Code Representation Learning for Commit Message Generation
DOI:10.1016/j.neucom.2021.05.039.png)
摘要
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.
Keyword:
Commit message generation
Code representation learning
Code-to-text generation
Self-supervised learning
Contextualized code representation
AI总结
对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。
期刊
IF:
6.5
论文数:
2.6W
被引数:
8.4W
机构
引用论文
Meta-analysis of bariatric surgery versus non-surgical treatment for type 2 diabetes mellitus
Oncotarget
IF0
Inosine pranobex enhances human NK cell cytotoxicity by inducing metabolic activation and NKG2D ligand expression肌苷pranobex通过诱导代谢活化和NKG2D配体表达增强人NK细胞的细胞毒性

