Research map / Large language models / Agents, code and math
HierDiff: Enhancing Large Language Models for Commit Message Generation with Hierarchical Diff Information
Jinrui Sun, Tong Jia, Minghua He, Ying Li
Peking University
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use HierDiff-6.7B instead of GPT-4o (Code Diff) | commit message generation · HierCMD | CIDEr: 0.57 -> 0.74 | Improved |
| use HierDiff-6.7B instead of GPT-4o (Code Diff) | commit message generation · MCMD-New-TestX | BLEU: 11.85 -> 13.22 | Hurt |
| use HierDiff-6.7B instead of Gemini-2.5-Flash (Code Diff) | commit message generation · MCMD-New-TestX | BLEU: 14.04 -> 13.22 | Mixed |
| give hierarchical diff input instead of code diff | GPT-4o and Gemini-2.5-Flash · HierCMD and MCMD-New-TestX | BLEU/METEOR/ROUGE-L/CIDEr: GPT-4o HierCMD CIDEr 0.57 -> 0.62 | No clear effect |
| add Stage 1 architectural-diff training (ablation) | HierDiff-6.7B · HierCMD and MCMD-New-TestX | metrics | Improved |
| add Stage 2 code-diff training (ablation) | HierDiff-6.7B · HierCMD and MCMD-New-TestX | metrics | Improved |
| add Stage 3 joint alignment (ablation) | HierDiff-6.7B · HierCMD and MCMD-New-TestX | metrics | Improved |
| use Staged Diff Learning instead of direct fine-tuning on hierarchical diffs (ablation) | HierDiff-6.7B · HierCMD and MCMD-New-TestX | metrics | Improved |
| fine-tune directly on hierarchical diffs instead of code diffs only (ablation) | HierDiff-6.7B · HierCMD and MCMD-New-TestX | metrics | Improved |
| use HierDiff-6.7B with architectural diffs only instead of strongest baseline | commit message generation · HierCMD | BLEU: 4.39 -> 7.14 (62.6% reported) | Improved |
| use HierDiff-6.7B instead of GPT-4o and Gemini-2.5-Flash | commit message generation · MCMD-New-TestX human/LLM eval | overall what and why | Hurt |
| use HierDiff-6.7B instead of GPT-4o | commit message generation · MCMD-New-TestX LLM eval | conciseness (1-5): 2.77 -> 4.33 | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- Gemini-2.5 — GEMINI: Controlling The Sentence-Level Summary Style in Abstractive Text Summarization (EMNLP 2023) · better on 1 of 1 shared result
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems this paper states
- “Dataset includes only Python and Java, so generalization to other programming languages is unvalidated.” → Tested on Python or a few languages, so other languages are untested. (an open problem in software engineering agents)
Open problems in software engineering agents
Do coding-agent results hold beyond Python, small benchmarks and LLM judges?
- Tested on Python or a few languages, so other languages are untested. · 20 papers state it
- Benchmarks are small, with only 100 to a few hundred tasks. · 14 papers state it
- Scores depend on an LLM judge that may not match human judgment. · 11 papers state it
Closest papers by meaning
- Leveraging Context-Aware Prompting for Commit Message Generation (EMNLP 2024 · similarity 0.88)
- Jointly Learning to Repair Code and Generate Commit Message (EMNLP 2021 · similarity 0.88)
- DI-BENCH: Benchmarking Large Language Models on Dependency Inference with Testable Repositories at Scale (ACL 2025 · similarity 0.87)
- Improving Code Localization with Repository Memory (ICLR 2026 · similarity 0.85)
- kGym: A Platform and Dataset to Benchmark Large Language Models on Linux Kernel Crash Resolution (NeurIPS 2024 · similarity 0.85)
- SWE-Chain: Benchmarking Coding Agents on Chained Release-Level Package Upgrades (NeurIPS 2026 · similarity 0.84)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.