Learning From Humans: Automated Commit Message Generation Leveraging Human-Written Commit Message and Context

IF 6 1区 计算机科学 Q1 COMPUTER SCIENCE, SOFTWARE ENGINEERING
IEEE Transactions on Software Engineering Pub Date : 2026-09-01 Epub Date: 2026-06-09 DOI:10.1109/TSE.2026.3701958
Jiawei Li;David Faragó;Christian Petrov;Iftekhar Ahmed
{"title":"Learning From Humans: Automated Commit Message Generation Leveraging Human-Written Commit Message and Context","authors":"Jiawei Li;David Faragó;Christian Petrov;Iftekhar Ahmed","doi":"10.1109/TSE.2026.3701958","DOIUrl":null,"url":null,"abstract":"Commit messages are crucial in software development, supporting maintenance tasks and communication among developers. While Large Language Models (LLMs) have advanced Commit Message Generation (CMG) using various software contexts, some contexts that developers consider are often missed by CMG techniques and can’t be easily retrieved or even retrieved by automated tools. To address this, we propose Commit Message Optimization (CMO), which enhances human-written messages by leveraging LLMs and search-based optimization. CMO starts with human-written messages and iteratively improves them by integrating key contexts and feedback from external evaluators. Our extensive evaluation shows CMO generates commit messages that are significantly more Rational, Comprehensive, and Expressive while outperforming state-of-the-art CMG methods and human messages 40.3%-78.4% of the time. Moreover, CMO can support existing CMG techniques to further improve message quality and generate high-quality messages when human-written ones are blank.","PeriodicalId":13324,"journal":{"name":"IEEE Transactions on Software Engineering","volume":"52 9","pages":"2654-2669"},"PeriodicalIF":6.0000,"publicationDate":"2026-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE Transactions on Software Engineering","FirstCategoryId":"94","ListUrlMain":"https://ieeexplore.ieee.org/document/11554963/","RegionNum":1,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/6/9 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0

Abstract

Commit messages are crucial in software development, supporting maintenance tasks and communication among developers. While Large Language Models (LLMs) have advanced Commit Message Generation (CMG) using various software contexts, some contexts that developers consider are often missed by CMG techniques and can’t be easily retrieved or even retrieved by automated tools. To address this, we propose Commit Message Optimization (CMO), which enhances human-written messages by leveraging LLMs and search-based optimization. CMO starts with human-written messages and iteratively improves them by integrating key contexts and feedback from external evaluators. Our extensive evaluation shows CMO generates commit messages that are significantly more Rational, Comprehensive, and Expressive while outperforming state-of-the-art CMG methods and human messages 40.3%-78.4% of the time. Moreover, CMO can support existing CMG techniques to further improve message quality and generate high-quality messages when human-written ones are blank.
向人类学习:利用人类编写的提交消息和上下文自动生成提交消息
提交消息在软件开发中是至关重要的,它支持维护任务和开发人员之间的通信。虽然大型语言模型(llm)具有使用各种软件上下文的高级提交消息生成(CMG),但开发人员考虑的一些上下文经常被CMG技术遗漏,并且无法轻松检索,甚至无法通过自动化工具检索。为了解决这个问题,我们提出了提交消息优化(Commit Message Optimization, CMO),它通过利用llm和基于搜索的优化来增强人工编写的消息。CMO从人工编写的消息开始,并通过集成关键上下文和来自外部评估者的反馈来迭代地改进它们。我们广泛的评估显示,CMO生成的提交消息在40.3%-78.4%的时间内比最先进的CMG方法和人类消息表现得更加理性、全面和富有表现力。此外,CMO可以支持现有的CMG技术,以进一步提高消息质量,并在人工编写的消息为空白时生成高质量的消息。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
IEEE Transactions on Software Engineering
IEEE Transactions on Software Engineering 工程技术-工程:电子与电气
CiteScore
9.70
自引率
10.80%
发文量
724
审稿时长
6 months
期刊介绍: IEEE Transactions on Software Engineering seeks contributions comprising well-defined theoretical results and empirical studies with potential impacts on software construction, analysis, or management. The scope of this Transactions extends from fundamental mechanisms to the development of principles and their application in specific environments. Specific topic areas include: a) Development and maintenance methods and models: Techniques and principles for specifying, designing, and implementing software systems, encompassing notations and process models. b) Assessment methods: Software tests, validation, reliability models, test and diagnosis procedures, software redundancy, design for error control, and measurements and evaluation of process and product aspects. c) Software project management: Productivity factors, cost models, schedule and organizational issues, and standards. d) Tools and environments: Specific tools, integrated tool environments, associated architectures, databases, and parallel and distributed processing issues. e) System issues: Hardware-software trade-offs. f) State-of-the-art surveys: Syntheses and comprehensive reviews of the historical development within specific areas of interest.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书