CCISolver: End-to-End Detection and Repair of Method-Level Code-Comment Inconsistency

IF 6 1区 计算机科学 Q1 COMPUTER SCIENCE, SOFTWARE ENGINEERING
IEEE Transactions on Software Engineering Pub Date : 2026-09-01 Epub Date: 2026-08-06 DOI:10.1109/TSE.2026.3689089
Renyi Zhong;Yintong Huo;Wenwei Gu;Jinxi Kuang;Zhihan Jiang;Guangba Yu;Yichen Li;David Lo;Michael R. Lyu
{"title":"CCISolver: End-to-End Detection and Repair of Method-Level Code-Comment Inconsistency","authors":"Renyi Zhong;Yintong Huo;Wenwei Gu;Jinxi Kuang;Zhihan Jiang;Guangba Yu;Yichen Li;David Lo;Michael R. Lyu","doi":"10.1109/TSE.2026.3689089","DOIUrl":null,"url":null,"abstract":"Comments within code serve as a crucial foundation for software documentation, facilitating developers to communicate and understand the code effectively. However, code-comment inconsistency (CCI) can negatively affect software development, testing, and maintenance. Recent efforts to mitigate this issue have emerged, but existing studies often suffer from inaccurate datasets and inadequate solutions, weakening their practical effectiveness. In this study, we first conduct a quantitative analysis of existing datasets, revealing that a substantial portion of the sampled data is mislabeled. To address these data limitations, we introduce <sc>CCIBench</small>, a refined dataset comprising high-quality data, to support the training and evaluation of method-level CCI methods. Furthermore, we present an innovative end-to-end LLM-based framework, <sc>CCISolver</small>, designed to improve code quality by identifying and rectifying CCIs. Comprehensive evaluations demonstrate <sc>CCISolver</small>’s superior performance. For detection, it establishes a new state-of-the-art with an F1-score of 89.54%. In the fixing task, it achieves a remarkable 18.84% relative improvement in GLEU score over the strongest baseline. This superiority is confirmed by human evaluation, where <sc>CCISolver</small>’s fixing success rate of 0.6533 significantly surpasses existing methods. Critically, <sc>CCISolver</small>’s architecture is approximately 36% faster during inference than the baseline in practical end-to-end settings. This efficiency underscores its scalability and real-world applicability.","PeriodicalId":13324,"journal":{"name":"IEEE Transactions on Software Engineering","volume":"52 9","pages":"2546-2565"},"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/11643563/","RegionNum":1,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/8/6 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0

Abstract

Comments within code serve as a crucial foundation for software documentation, facilitating developers to communicate and understand the code effectively. However, code-comment inconsistency (CCI) can negatively affect software development, testing, and maintenance. Recent efforts to mitigate this issue have emerged, but existing studies often suffer from inaccurate datasets and inadequate solutions, weakening their practical effectiveness. In this study, we first conduct a quantitative analysis of existing datasets, revealing that a substantial portion of the sampled data is mislabeled. To address these data limitations, we introduce CCIBench, a refined dataset comprising high-quality data, to support the training and evaluation of method-level CCI methods. Furthermore, we present an innovative end-to-end LLM-based framework, CCISolver, designed to improve code quality by identifying and rectifying CCIs. Comprehensive evaluations demonstrate CCISolver’s superior performance. For detection, it establishes a new state-of-the-art with an F1-score of 89.54%. In the fixing task, it achieves a remarkable 18.84% relative improvement in GLEU score over the strongest baseline. This superiority is confirmed by human evaluation, where CCISolver’s fixing success rate of 0.6533 significantly surpasses existing methods. Critically, CCISolver’s architecture is approximately 36% faster during inference than the baseline in practical end-to-end settings. This efficiency underscores its scalability and real-world applicability.
方法级代码注释不一致的端到端检测和修复
代码中的注释是软件文档的重要基础,有助于开发人员有效地沟通和理解代码。然而,代码注释不一致(CCI)会对软件开发、测试和维护产生负面影响。最近已经出现了缓解这一问题的努力,但现有的研究往往受到不准确的数据集和不充分的解决方案的影响,削弱了它们的实际有效性。在本研究中,我们首先对现有数据集进行了定量分析,揭示了很大一部分采样数据被错误标记。为了解决这些数据的局限性,我们引入了CCIBench,这是一个包含高质量数据的精炼数据集,以支持方法级CCI方法的培训和评估。此外,我们提出了一个创新的端到端基于llm的框架,CCISolver,旨在通过识别和纠正CCIs来提高代码质量。综合评估证明了CCISolver的卓越性能。在检测方面,它建立了一个新的先进技术,f1得分为89.54%。在固定任务中,与最强基线相比,GLEU评分相对提高了18.84%。这一优势得到了人类评估的证实,CCISolver的固定成功率为0.6533,明显超过了现有方法。关键的是,CCISolver的架构在推理过程中比实际端到端设置的基线快了大约36%。这种效率强调了它的可伸缩性和现实世界的适用性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信
小红书