mlsanityData to 7 Oct 2026

Conventional Commit Classification using Large Language Models and Prompt Engineering

arXiv 2605.02033 ↗First posted 3 May 2026cs.SE cs.AIcited by 0

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

Conventional commits provide a structured format for writing commit messages, which improves readability, software maintenance, and enables automation tools such as changelog generators and semantic versioning systems. Existing approaches to conventional commit classification typically rely on ML/DL models trained on large labeled datasets. In this paper, we investigated a training-free alternative by leveraging large language models (LLMs) through prompt engineering. Rather than building a task-specific classifier, we evaluate three prompting strategies, such as zero-shot, few-shot, and chain-of-thought, across three open-source LLMs of varying scale: Mistral-7B-Instruct, LLaMA-3-8B, and DeepSeek-R1-32B. Classification is performed directly on code diffs extracted from a balanced dataset of 3,200 commits mined from the InfluxDB repository, without any model fine-tuning. Our results show that few-shot prompting consistently achieves the highest accuracy, while chain-of-thought prompting does not yield additional gains for this classification task. Among the evaluated models, DeepSeek-R1-32B achieves the strongest overall performance, suggesting that model scale plays a meaningful role in conventional commit classification. These findings provide practical guidance for researchers and practitioners seeking to automate commit classification without the overhead of curating and maintaining labeled training data.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 7 of its 16 references that are in the map. First posted on arXiv 3 May 2026.

Builds on

7 of 16 references.

References · 7

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2023Mistral 7Bcited by 3,065
  5. 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 612
  6. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  7. 2017Automatically Generating Commit Messages from Diffs using Neural Machine Translationcited by 42

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Evaluating Generated Commit Messages with Large Language Models
  2. 2025CoRaCMG: Contextual Retrieval-Augmented Framework for Commit Message Generation
  3. 2025Are Prompts All You Need? Evaluating Prompt-Based Large Language Models (LLM)s for Software Requirements Classification
  4. 2025CodeFuse-CommitEval: Towards Benchmarking LLM's Power on Commit Message and Code Change Inconsistency Detection
  5. 2026Assessing Language Models for Salient Class Identification ↗
  6. 2026CoRaCommit: A VS Code Extension for Commit Message Generation with Exemplar Retrieval ↗
  7. 2026Prompt-Driven Code Summarization: A Systematic Literature Review
  8. 2025LLM-Based Detection of Tangled Code Changes for Higher-Quality Method-Level Bug Datasets