CoreGen: Contextualized Code Representation Learning for Commit Message Generation
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). First posted on arXiv 14 Jul 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 1; 2023: 2; 2024: 5; 2025: 3.
15 papers.
Sort:
By area:
- 2024Automatic Programming: Large Language Models and Beyondcited by 35
- 2021Code Structure Guided Transformer for Source Code Summarizationcited by 29
- 2022RACE: Retrieval-Augmented Commit Message Generationcited by 27
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
- 2021CommitBERT: Commit Message Generation Using Pre-Trained Programming Language Modelcited by 16
- 2023From Commit Message Generation to History-Aware Commit Message Completioncited by 16
- 2024KADEL: Knowledge-Aware Denoising Learning for Commit Message Generationcited by 10
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2024CommitBench: A Benchmark for Commit Message Generationcited by 8
- 2024COMET: Generating Commit Messages using Delta Graph Context Representationcited by 3
- 2021Jointly Learning to Repair Code and Generate Commit Messagecited by 2
- 2023A Full-fledged Commit Message Quality Checker Based on Machine Learningcited by 2
3 more
- 2024Just-In-Time Software Defect Prediction via Bi-modal Change Representation Learningcited by 1
- 2025A Query-Aware Multi-Path Knowledge Graph Fusion Approach for Enhancing Retrieval-Augmented Generation in Large Language Modelscited by 1
- 2025CoRaCMG: Contextual Retrieval-Augmented Framework for Commit Message Generationcited by 0
- 2025CoRaCMG: Contextual Retrieval-Augmented Framework for Commit Message Generation22 Sep 2025
- 2025A Query-Aware Multi-Path Knowledge Graph Fusion Approach for Enhancing Retrieval-Augmented Generation in Large Language Models7 Jul 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2024Just-In-Time Software Defect Prediction via Bi-modal Change Representation Learning15 Oct 2024
- 2024Automatic Programming: Large Language Models and Beyond3 May 2024
- 2024CommitBench: A Benchmark for Commit Message Generation8 Mar 2024
- 2024COMET: Generating Commit Messages using Delta Graph Context Representation2 Feb 2024
- 2024KADEL: Knowledge-Aware Denoising Learning for Commit Message Generation16 Jan 2024
- 2023A Full-fledged Commit Message Quality Checker Based on Machine Learning9 Sep 2023
- 2023From Commit Message Generation to History-Aware Commit Message Completion15 Aug 2023
- 2022RACE: Retrieval-Augmented Commit Message Generation5 Mar 2022
- 2021A Survey on Machine Learning Techniques for Source Code Analysis18 Oct 2021
3 more
- 2024Automatic Programming: Large Language Models and Beyondcited by 35
- 2021Code Structure Guided Transformer for Source Code Summarizationcited by 29
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
- 2021CommitBERT: Commit Message Generation Using Pre-Trained Programming Language Modelcited by 16
- 2023From Commit Message Generation to History-Aware Commit Message Completioncited by 16
- 2024KADEL: Knowledge-Aware Denoising Learning for Commit Message Generationcited by 10
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2024CommitBench: A Benchmark for Commit Message Generationcited by 8
- 2024COMET: Generating Commit Messages using Delta Graph Context Representationcited by 3
- 2021Jointly Learning to Repair Code and Generate Commit Messagecited by 2
- 2023A Full-fledged Commit Message Quality Checker Based on Machine Learningcited by 2
- 2024Just-In-Time Software Defect Prediction via Bi-modal Change Representation Learningcited by 1
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2024Just-In-Time Software Defect Prediction via Bi-modal Change Representation Learning15 Oct 2024
- 2024Automatic Programming: Large Language Models and Beyond3 May 2024
- 2024CommitBench: A Benchmark for Commit Message Generation8 Mar 2024
- 2024COMET: Generating Commit Messages using Delta Graph Context Representation2 Feb 2024
- 2024KADEL: Knowledge-Aware Denoising Learning for Commit Message Generation16 Jan 2024
- 2023A Full-fledged Commit Message Quality Checker Based on Machine Learning9 Sep 2023
- 2023From Commit Message Generation to History-Aware Commit Message Completion15 Aug 2023
- 2021A Survey on Machine Learning Techniques for Source Code Analysis18 Oct 2021
- 2021Jointly Learning to Repair Code and Generate Commit Message25 Sep 2021
- 2021CommitBERT: Commit Message Generation Using Pre-Trained Programming Language Model29 May 2021
- 2021Code Structure Guided Transformer for Source Code Summarization19 Apr 2021