RAG-Enhanced Commit Message Generation
Not on the map. Why?
Abstract (arXiv)
Commit message is one of the most important textual information in software development and maintenance. However, it is time-consuming to write commit messages manually. Commit Message Generation (CMG) has become a research hotspot. Recently, several pre-trained language models (PLMs) and large language models (LLMs) with code capabilities have been introduced, demonstrating impressive performance on code-related tasks. Meanwhile, prior studies have explored the utilization of retrieval techniques for CMG, but it is still unclear what effects would emerge from combining advanced retrieval techniques with various generation models. This paper proposed REACT, a REtrieval-Augmented framework for CommiT message generation. It integrates advanced retrieval techniques with different PLMs and LLMs, to enhance the performance of these models on the CMG task. Specifically, a hybrid retriever is designed and used to retrieve the most relevant code diff and commit message pair as an exemplar. Then, the retrieved pair is utilized to guide and enhance the CMG task by PLMs and LLMs through fine-tuning and in-context learning. The experimental results show that REACT significantly enhances these models' performance on the CMG task, improving the BLEU score of CodeT5 by up to 55%, boosting Llama 3's BLEU score by 102%, and substantially surpassing all baselines.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). First posted on arXiv 8 Jun 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 5; 2026: 1.
6 papers.
- 2025LAURA: Enhancing Code Review Generation with Context-Enriched Retrieval-Augmented LLMcited by 8
- 2025RAGVA: Engineering Retrieval Augmented Generation-based Virtual Assistants in Practicecited by 6
- 2025A Deep Dive into Retrieval-Augmented Generation for Code Completion: Experience on WeChatcited by 5
- 2025When More Retrieval Hurts: Retrieval-Augmented Code Review Generationcited by 2
- 2026AtomicCommitBench: Can Coding Agents Reconstruct Commit Histories from Squashed Patches?cited by 2
- 2025Optimizing Code Runtime Performance through Context-Aware Retrieval-Augmented Generationcited by 1
- 2026AtomicCommitBench: Can Coding Agents Reconstruct Commit Histories from Squashed Patches?3 Jul 2026
- 2025LAURA: Enhancing Code Review Generation with Context-Enriched Retrieval-Augmented LLM1 Dec 2025
- 2025When More Retrieval Hurts: Retrieval-Augmented Code Review Generation7 Nov 2025
- 2025A Deep Dive into Retrieval-Augmented Generation for Code Completion: Experience on WeChat24 Jul 2025
- 2025RAGVA: Engineering Retrieval Augmented Generation-based Virtual Assistants in Practice20 Feb 2025
- 2025Optimizing Code Runtime Performance through Context-Aware Retrieval-Augmented Generation28 Jan 2025
Similar, not cited
Close in wording, no citation either way
- 2025CoRaCMG: Contextual Retrieval-Augmented Framework for Commit Message Generation
- 2026CoRaCommit: A VS Code Extension for Commit Message Generation with Exemplar Retrieval ↗
- 2025Evaluating Generated Commit Messages with Large Language Models
- 2022RACE: Retrieval-Augmented Commit Message Generation
- 2024CodeRAG-Bench: Can Retrieval Augment Code Generation?
- 2026Conventional Commit Classification using Large Language Models and Prompt Engineering
- 2024Evaluating the Effectiveness and Efficiency of Demonstration Retrievers in RAG for Coding Tasks
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approaches