CodeFuse-CommitEval: Towards Benchmarking LLM's Power on Commit Message and Code Change Inconsistency Detection
Not on the map. Why?
Abstract (arXiv)
Version control relies on commit messages to convey the rationale for code changes, but these messages are often low quality and, more critically, inconsistent with their diffs-known as message-code inconsistency (MCI). MCIs mislead reviewers, hinder maintenance, contaminate research datasets, and may obscure security patches. Yet, no dedicated benchmark exists to evaluate models for MCI detection. We introduce CODEFUSE-COMMITEVAL, the first benchmark designed for MCI detection using large language models (LLMs). Built on the ApacheCM dataset for diversity and quality, we generate seven types of inconsistent messages through rule-guided mutations of originally consistent commits and apply two-fold validation to verify both positive and negative samples. Using this labeled dataset of message-diff pairs, we evaluate six state-of-the-art open-source LLMs under a vanilla setting and with three augmentation strategies: few-shot prompting, chain-of-thought, and extended context. Results show models detect inconsistent commits more reliably than consistent ones (average Recall 85.95%, Precision 80.28%, Specificity 63.8%); gpt-oss-20B performs best overall but uses over twice the tokens of others. Augmentation effects vary: adjacent context helps larger models but adds noise for smaller ones; few-shot improves accuracy and reduces token use, yet increases universally incorrect predictions; chain-of-thought boosts precision and specificity at the cost of recall and higher token consumption. Type-wise analysis reveals higher detectability for component, file-path, and operation inconsistencies, but lower accuracy and higher token cost for intent-level "purpose" inconsistencies. CODEFUSE-COMMITEVAL provides a rigorous foundation for measuring, comparing, and advancing MCI detection, highlighting the need for richer context and balanced data to capture high-level semantic gaps.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 31 of its 61 references that are in the map. First posted on arXiv 25 Nov 2025.
Builds on
31 of 61 references.
References · 31
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2023Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Promptingcited by 1,081
- 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 293
- 2024Long-context LLMs Struggle with Long In-context Learningcited by 285
- 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 133
- 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 92
- 2017Automatically Generating Commit Messages from Diffs using Neural Machine Translationcited by 42
- 2022RACE: Retrieval-Augmented Commit Message Generationcited by 27
- 2017A Neural Architecture for Generating Natural Language Descriptions from Source Code Changescited by 23
- 2020Deep Just-In-Time Inconsistency Detection Between Comments and Source Codecited by 20
- 2021On the Evaluation of Commit Message Generation Models: An Experimental Studycited by 20
- 2022What Makes a Good Commit Message?cited by 19
19 more
- 2023A Survey on Generative Modeling with Limited Data, Few Shots, and Zero Shotcited by 19
- 2023From Commit Message Generation to History-Aware Commit Message Completioncited by 16
- 2020A Fine-grained Data Set and Analysis of Tangling in Bug Fixing Commitscited by 11
- 2015Untangling Fine-Grained Code Changescited by 10
- 2024Using Large Language Models for Commit Message Generation: A Preliminary Studycited by 10
- 2024Automated Commit Message Generation with Large Language Models: An Empirical Study and Beyondcited by 10
- 2025Hallucination by Code Generation LLMs: Taxonomy, Benchmarks, Mitigation, and Challengescited by 9
- 2024CommitBench: A Benchmark for Commit Message Generationcited by 8
- 2022Code Comment Inconsistency Detection with BERT and Longformercited by 6
- 2025An Empirical Study on Commit Message Generation using LLMs via In-Context Learningcited by 5
- 2023DocChecker: Bootstrapping Code Large Language Model for Detecting and Resolving Code-Comment Inconsistenciescited by 3
- 2025METAMON: Finding Inconsistencies between Program Documentation and Behavior using Metamorphic LLM Queriescited by 3
- 2025Contextual Code Retrieval for Commit Message Generation: A Preliminary Studycited by 3
- 2023A Full-fledged Commit Message Quality Checker Based on Machine Learningcited by 2
- 2025Optimization is Better than Generation: Optimizing Commit Message Leveraging Human-written Commit Messagecited by 2
- 2025CCISolver: End-to-End Detection and Repair of Method-Level Code-Comment Inconsistencycited by 2
- 2025Evaluating Generated Commit Messages with Large Language Modelscited by 2
- 2023SECOMlint: A linter for Security Commit Messagescited by 1
- 2024Detecting Multi-Parameter Constraint Inconsistencies in Python Data Science Librariescited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025LLM-Based Detection of Tangled Code Changes for Higher-Quality Method-Level Bug Datasets
- 2025Large Language Model Critics for Execution-Free Evaluation of Code Changes
- 2026CoRaCommit: A VS Code Extension for Commit Message Generation with Exemplar Retrieval ↗
- 2025The SWE-Bench Illusion: When State-of-the-Art LLMs Remember Instead of Reason
- 2025CoRaCMG: Contextual Retrieval-Augmented Framework for Commit Message Generation
- 2025Benchmarking LLMs and LLM-based Agents in Practical Vulnerability Detection for Code Repositories
- 2025Code Change Intention, Development Artifact and History Vulnerability: Putting Them Together for Vulnerability Fix Detection by LLM
- 2026Beyond Strict Rules: Assessing the Effectiveness of Large Language Models for Code Smell Detection ↗