Research map / Large language models / Language, safety and interpretability
Leveraging Context-Aware Prompting for Commit Message Generation
Zhihua Jiang, Jianwei Chen, Dongning Rao, Guanghui Ye
Jinan University · Guangdong University of Technology · Hunan 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 COMMIT instead of CodeT5+ | CodeT5+ · CODEC test | BLEU-4: 12.92 -> 13.13 | Improved |
| Use code property graph (CPG) instead of CFG (ablation) | COMMIT · CODEC test | BLEU-4: 12.40 -> 13.13 | Improved |
| Use CPG instead of PDG (ablation) | COMMIT · CODEC test | ROUGE-L: 23.03 -> 24.05 | Improved |
| Increase dependency depth from 3 to 5 (ablation) | COMMIT · CODEC test | BLEU-4: 13.13 -> 12.57 | Hurt |
| Increase dependency depth from 1 to 3 (ablation) | COMMIT · CODEC test | BLEU-4: 12.37 -> 13.13 | Improved |
| Vary prompt template T1 to T2-T4 (ablation) | COMMIT · CODEC test | BLEU-4: 13.13 -> 12.80/12.83/12.91 | No clear effect |
| More changed lines per commit | COMMIT · CODEC test subsets | BLEU-4: 13.73 -> 11.99 | Hurt |
| Use context-enhanced input instead of Diff input (ablation) | CodeT5+ (no fine-tuning) · CODEC test | BLEU-4: 12.92 -> 13.11 | Improved |
| Use COMMIT instead of Code-LlaMa-7B | Code-LlaMa-7B · CODEC test | BLEU-4: 2.38 -> 13.13 | 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.
- CodeT5+ — CodeT: Code Generation with Generated Tests (ICLR 2023) · better on 6 of 6 shared results
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 in controlled text generation
How can generation be controlled and checked reliably across languages, domains and model sizes without extra cost?
- Each study covers one domain, source or task, so transfer is unknown. · 13 papers state it
- Only a few languages are tested, mostly English or high-resource ones. · 12 papers state it
- Extra stages, calls or tokens make generation slower and costlier. · 10 papers state it
Closest papers by meaning
- Jointly Learning to Repair Code and Generate Commit Message (EMNLP 2021 · similarity 0.88)
- Hierarchical Context Pruning: Optimizing Real-World Code Completion with Repository-Level Pretrained Code LLMs (AAAI 2025 · similarity 0.86)
- AST-T5: Structure-Aware Pretraining for Code Generation and Understanding (ICML 2024 · similarity 0.85)
- CodeSync: Synchronizing Large Language Models with Dynamic Code Evolution at Scale (ICML 2025 · similarity 0.84)
- Improving Code Localization with Repository Memory (ICLR 2026 · similarity 0.84)
- CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modules (ICLR 2024 · 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.