COMET: Generating Commit Messages using Delta Graph Context Representation
Not on the map. Why?
Abstract (arXiv)
Commit messages explain code changes in a commit and facilitate collaboration among developers. Several commit message generation approaches have been proposed; however, they exhibit limited success in capturing the context of code changes. We propose Comet (Context-Aware Commit Message Generation), a novel approach that captures context of code changes using a graph-based representation and leverages a transformer-based model to generate high-quality commit messages. Our proposed method utilizes delta graph that we developed to effectively represent code differences. We also introduce a customizable quality assurance module to identify optimal messages, mitigating subjectivity in commit messages. Experiments show that Comet outperforms state-of-the-art techniques in terms of bleu-norm and meteor metrics while being comparable in terms of rogue-l. Additionally, we compare the proposed approach with the popular gpt-3.5-turbo model, along with gpt-4-turbo; the most capable GPT model, over zero-shot, one-shot, and multi-shot settings. We found Comet outperforming the GPT models, on five and four metrics respectively and provide competitive results with the two other metrics. The study has implications for researchers, tool developers, and software developers. Software developers may utilize Comet to generate context-aware commit messages. Researchers and tool developers can apply the proposed delta graph technique in similar contexts, like code review summarization.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 32 of its 90 references that are in the map. First posted on arXiv 2 Feb 2024.
Builds on
32 of 90 references.
References · 32
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2018Deeper Insights into Graph Convolutional Networks for Semi-Supervised Learningcited by 1,099
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 612
20 more
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2015Sequence Level Training with Recurrent Neural Networkscited by 568
- 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
- 2023A Systematic Study and Comprehensive Evaluation of ChatGPT on Benchmark Datasetscited by 123
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 72
- 2017Automatically Generating Commit Messages from Diffs using Neural Machine Translationcited by 42
- 2016Deep API Learningcited by 41
- 2020CC2Vec: Distributed Representations of Code Changescited by 38
- 2022RACE: Retrieval-Augmented Commit Message Generationcited by 27
- 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
- 2020CoreGen: Contextualized Code Representation Learning for Commit Message Generationcited by 15
- 2017Boosting Automatic Commit Classification Into Maintenance Activities By Utilizing Source Code Changescited by 8
- 2019Generating Commit Messages from Git Diffscited by 5
- 2021On the Impact of Multiple Source Code Representations on Software Engineering Tasks -- An Empirical Studycited by 2
- 2022Evaluating Commit Message Generation: To BLEU Or Not To BLEU?cited by 2
- 2018Coming: a Tool for Mining Change Pattern Instances from Git Commitscited by 1
Built on by
Citing papers per year: 2024: 1; 2025: 1; 2026: 1.
3 papers.