CommitBench: A Benchmark for Commit Message Generation
Not on the map. Why?
Abstract (arXiv)
Writing commit messages is a tedious daily task for many software developers, and often remains neglected. Automating this task has the potential to save time while ensuring that messages are informative. A high-quality dataset and an objective benchmark are vital preconditions for solid research and evaluation towards this goal. We show that existing datasets exhibit various problems, such as the quality of the commit selection, small sample sizes, duplicates, privacy issues, and missing licenses for redistribution. This can lead to unusable models and skewed evaluations, where inferior models achieve higher evaluation scores due to biases in the data. We compile a new large-scale dataset, CommitBench, adopting best practices for dataset creation. We sample commits from diverse projects with licenses that permit redistribution and apply our filtering and dataset enhancements to improve the quality of generated commit messages. We use CommitBench to compare existing models and show that other approaches are outperformed by a Transformer model pretrained on source code. We hope to accelerate future research by publishing the source code( https://github.com/Maxscha/commitbench ).
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 28 of its 50 references that are in the map. First posted on arXiv 8 Mar 2024.
Builds on
28 of 50 references.
References · 28
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
- 2018Datasheets for Datasetscited by 1,371
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2016Bag of Tricks for Efficient Text Classificationcited by 869
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2018Texygen: A Benchmarking Platform for Text Generation Modelscited by 484
- 2016FastText.zip: Compressing text classification modelscited by 331
- 2022What Does it Mean for a Language Model to Preserve Privacy?cited by 194
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
16 more
- 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 123
- 2018Mapping Language to Code in Programmatic Contextcited by 104
- 2021CoTexT: Multi-task Learning with Code-Text Transformercited by 61
- 2017Automatically Generating Commit Messages from Diffs using Neural Machine Translationcited by 42
- 2020Code to Comment "Translation": Data, Metrics, Baselining & Evaluationcited by 28
- 2021CodeTrans: Towards Cracking the Language of Silicon's Code Through Self-Supervised Deep Learning and High Performance Computingcited by 28
- 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
- 2021On the Evaluation of Commit Message Generation Models: An Experimental Studycited by 20
- 2022What Makes a Good Commit Message?cited by 19
- 2021CommitBERT: Commit Message Generation Using Pre-Trained Programming Language Modelcited by 16
- 2023From Commit Message Generation to History-Aware Commit Message Completioncited by 16
- 2020CoreGen: Contextualized Code Representation Learning for Commit Message Generationcited by 15
- 2017Towards Automatic Generation of Short Summaries of Commitscited by 8
- 2020On the Relevance of Cross-project Learning with Nearest Neighbours for Commit Message Generationcited by 4
- 2021Unsupervised Learning of General-Purpose Embeddings for Code Changescited by 3
Built on by
Citing papers per year: 2024: 2; 2025: 3; 2026: 3.
8 papers.
- 2024Long Code Arena: a Set of Benchmarks for Long-Context Code Modelscited by 48
- 2024CodeJudge-Eval: Can Large Language Models be Good Judges in Code Understanding?cited by 29
- 2025LAURA: Enhancing Code Review Generation with Context-Enriched Retrieval-Augmented LLMcited by 8
- 2025Hallucinations in Code Change to Natural Language Generation: Prevalence and Evaluation of Detection Metricscited by 4
- 2026Code Change Characteristics and Description Alignment: A Comparative Study of Agentic versus Human Pull Requestscited by 2
- 2026AtomicCommitBench: Can Coding Agents Reconstruct Commit Histories from Squashed Patches?cited by 2
- 2025CodeFuse-CommitEval: Towards Benchmarking LLM's Power on Commit Message and Code Change Inconsistency Detectioncited by 1
- 2026Pull Requests as a Training Signal for Repo-Level Code Editingcited by 1
- 2026AtomicCommitBench: Can Coding Agents Reconstruct Commit Histories from Squashed Patches?3 Jul 2026
- 2026Pull Requests as a Training Signal for Repo-Level Code Editing7 Feb 2026
- 2026Code Change Characteristics and Description Alignment: A Comparative Study of Agentic versus Human Pull Requests24 Jan 2026
- 2025LAURA: Enhancing Code Review Generation with Context-Enriched Retrieval-Augmented LLM1 Dec 2025
- 2025CodeFuse-CommitEval: Towards Benchmarking LLM's Power on Commit Message and Code Change Inconsistency Detection25 Nov 2025
- 2025Hallucinations in Code Change to Natural Language Generation: Prevalence and Evaluation of Detection Metrics12 Aug 2025
- 2024CodeJudge-Eval: Can Large Language Models be Good Judges in Code Understanding?20 Aug 2024
- 2024Long Code Arena: a Set of Benchmarks for Long-Context Code Models17 Jun 2024