On the Evaluation of Commit Message Generation Models: An Experimental Study
Not on the map. Why?
Abstract (arXiv)
Commit messages are natural language descriptions of code changes, which are important for program understanding and maintenance. However, writing commit messages manually is time-consuming and laborious, especially when the code is updated frequently. Various approaches utilizing generation or retrieval techniques have been proposed to automatically generate commit messages. To achieve a better understanding of how the existing approaches perform in solving this problem, this paper conducts a systematic and in-depth analysis of the state-of-the-art models and datasets. We find that: (1) Different variants of the BLEU metric are used in previous works, which affects the evaluation and understanding of existing methods. (2) Most existing datasets are crawled only from Java repositories while repositories in other programming languages are not sufficiently explored. (3) Dataset splitting strategies can influence the performance of existing models by a large margin. Some models show better performance when the datasets are split by commit, while other models perform better when the datasets are split by timestamp or by project. Based on our findings, we conduct a human evaluation and find the BLEU metric that best correlates with the human scores for the task. We also collect a large-scale, information-rich, and multi-language commit message dataset MCMD and evaluate existing models on this dataset. Furthermore, we conduct extensive experiments under different dataset splitting strategies and suggest the suitable models under different scenarios. Based on the experimental results and findings, we provide feasible suggestions for comprehensively evaluating commit message generation models and discuss possible future research directions. We believe this work can help practitioners and researchers better evaluate and select models for automatic commit message generation.
Key facts. Cited by 20 papers in the map (data through 14 Oct 2026). Builds on 14 of its 42 references that are in the map. First posted on arXiv 12 Jul 2021.
Builds on
14 of 42 references.
References · 14
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2014CIDEr: Consensus-based Image Description Evaluationcited by 2,046
- 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,292
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,026
- 2018code2seq: Generating Sequences from Structured Representations of Codecited by 179
- 2019Recommendations for Datasets for Source Code Summarizationcited by 46
- 2017Automatically Generating Commit Messages from Diffs using Neural Machine Translationcited by 42
- 2016Deep API Learningcited by 41
- 2020CC2Vec: Distributed Representations of Code Changescited by 39
- 2019ATOM: Commit Message Generation Based on Abstract Syntax Tree and Hybrid Rankingcited by 25
- 2017A Neural Architecture for Generating Natural Language Descriptions from Source Code Changescited by 23
- 2017Nematus: a Toolkit for Neural Machine Translationcited by 16
2 more
- 2019Automatic Generation of Pull Request Descriptionscited by 13
- 2017Towards Automatic Generation of Short Summaries of Commitscited by 8
Built on by
Citing papers per year: 2021: 1; 2022: 4; 2023: 3; 2024: 4; 2025: 3; 2026: 5.
20 papers.
Sort:
By area:
- 2021On the Evaluation of Neural Code Summarizationcited by 48
- 2022RACE: Retrieval-Augmented Commit Message Generationcited by 27
- 2022CoCoSoDa: Effective Contrastive Learning for Code Searchcited by 22
- 2023From Commit Message Generation to History-Aware Commit Message Completioncited by 16
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 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
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completioncited by 7
- 2022CommitBART: A Large Pre-trained Model for GitHub Commitscited by 6
- 2022Using Developer Discussions to Guide Fixing Bugs in Softwarecited by 3
- 2023CCRep: Learning Code Change Representations via Pre-Trained Code Model and Query Backcited by 3
8 more
- 2024COMET: Generating Commit Messages using Delta Graph Context Representationcited by 3
- 2026ShortCoder: Knowledge-Augmented Syntax Optimization for Token-Efficient Code Generationcited by 3
- 2026DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoningcited by 3
- 2026PhoenixRepair: Rethinking Repair Strategy Exploration in Software Agentscited by 2
- 2025CodeFuse-CommitEval: Towards Benchmarking LLM's Power on Commit Message and Code Change Inconsistency Detectioncited by 1
- 2026RefactorAssist: Agentic Refinement for Reliable Code Refactoringcited by 1
- 2023Predicting Line-Level Defects by Capturing Code Contexts with Hierarchical Transformerscited by 0
- 2024Towards Realistic Evaluation of Commit Message Generation by Matching Online and Offline Settingscited by 0
- 2026RefactorAssist: Agentic Refinement for Reliable Code Refactoring2 Aug 2026
- 2026PhoenixRepair: Rethinking Repair Strategy Exploration in Software Agents21 Jul 2026
- 2026DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoning28 Jan 2026
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion27 Jan 2026
- 2026ShortCoder: Knowledge-Augmented Syntax Optimization for Token-Efficient Code Generation14 Jan 2026
- 2025CodeFuse-CommitEval: Towards Benchmarking LLM's Power on Commit Message and Code Change Inconsistency Detection25 Nov 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2024Towards Realistic Evaluation of Commit Message Generation by Matching Online and Offline Settings15 Oct 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
8 more
- 2023Predicting Line-Level Defects by Capturing Code Contexts with Hierarchical Transformers19 Dec 2023
- 2023From Commit Message Generation to History-Aware Commit Message Completion15 Aug 2023
- 2023CCRep: Learning Code Change Representations via Pre-Trained Code Model and Query Back8 Feb 2023
- 2022Using Developer Discussions to Guide Fixing Bugs in Software11 Nov 2022
- 2022CommitBART: A Large Pre-trained Model for GitHub Commits17 Aug 2022
- 2022CoCoSoDa: Effective Contrastive Learning for Code Search7 Apr 2022
- 2022RACE: Retrieval-Augmented Commit Message Generation5 Mar 2022
- 2021On the Evaluation of Neural Code Summarization15 Jul 2021
- 2021On the Evaluation of Neural Code Summarizationcited by 48
- 2022CoCoSoDa: Effective Contrastive Learning for Code Searchcited by 22
- 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
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completioncited by 7
- 2022CommitBART: A Large Pre-trained Model for GitHub Commitscited by 6
- 2022Using Developer Discussions to Guide Fixing Bugs in Softwarecited by 3
- 2023CCRep: Learning Code Change Representations via Pre-Trained Code Model and Query Backcited by 3
- 2024COMET: Generating Commit Messages using Delta Graph Context Representationcited by 3
- 2025CodeFuse-CommitEval: Towards Benchmarking LLM's Power on Commit Message and Code Change Inconsistency Detectioncited by 1
12 most cited of 14 All 14 (JSON)
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion27 Jan 2026
- 2025CodeFuse-CommitEval: Towards Benchmarking LLM's Power on Commit Message and Code Change Inconsistency Detection25 Nov 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2024Towards Realistic Evaluation of Commit Message Generation by Matching Online and Offline Settings15 Oct 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
- 2023Predicting Line-Level Defects by Capturing Code Contexts with Hierarchical Transformers19 Dec 2023
- 2023From Commit Message Generation to History-Aware Commit Message Completion15 Aug 2023
- 2023CCRep: Learning Code Change Representations via Pre-Trained Code Model and Query Back8 Feb 2023
- 2022Using Developer Discussions to Guide Fixing Bugs in Software11 Nov 2022
- 2022CommitBART: A Large Pre-trained Model for GitHub Commits17 Aug 2022
12 newest of 14 All 14 (JSON)