CommitLLM: A Fine-Tuned Pipeline for Git Commit Message Generation

Md Rafid Haque, Poojan Narendrabhai Patel, Meetkumar Vijaybhai Raychura
7/20/2026
cs.SEcs.AI

No confident code implementation found for this paper.

Abstract

Developers frequently write uninformative git commit messages such as "fix" or "update stuff", degrading the value of version-control history for code review, debugging, and onboarding. We present CommitLLM, a three-stage pipeline that generates concise, Conventional Commits-compliant messages from code diffs using a fine-tuned small language model.

Show full abstract

The system combines (1) QLoRA fine-tuning of Mistral-7B-Instruct-v0.2 on the CommitPackFT dataset, (2) constrained decoding to enforce brevity, and (3) deterministic post-processing to strip conversational artifacts and enforce format. On a 50-sample evaluation, CommitLLM achieves 98% format compliance (vs. 22% for vanilla Mistral), reduces average output length from 154.8 to 37.9 characters, and improves LLM-as-a-Judge scores from 1.97 to 3.68 out of 5. Notably, the post-processing layers contribute more to quality improvement than the fine-tuning itself, suggesting that for structured-output tasks, treating the LLM as a component in a deterministic pipeline is more effective than optimizing the model alone. The entire system runs on a single consumer GPU (NVIDIA T4, 16 GB VRAM).

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{haque2026commitllm,
  title  = {CommitLLM: A Fine-Tuned Pipeline for Git Commit Message Generation},
  author = {Md Rafid Haque and Poojan Narendrabhai Patel and Meetkumar Vijaybhai Raychura},
  year   = {2026},
  eprint = {2607.17532},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.17532v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.17532.svg)](https://codeofpaper.com/paper/2607.17532)

Discussion