CCISolver: End-to-End Detection and Repair of Method-Level Code-Comment Inconsistency
Renyi Zhong, Yintong Huo, Wenwei Gu, Jinxi Kuang, Zhihan Jiang, Guangba Yu, Yichen Li, David Lo, Michael R. Lyu

TL;DR
This paper introduces CCISolver, an end-to-end LLM-based framework for detecting and repairing method-level code-comment inconsistencies, supported by a high-quality dataset, achieving state-of-the-art results and practical efficiency.
Contribution
It presents a new high-quality dataset CCIBench and an innovative end-to-end LLM-based framework CCISolver for effective detection and repair of code-comment inconsistencies.
Findings
State-of-the-art detection F1-score of 89.54%
18.84% relative improvement in fixing GLEU score
36% faster inference speed than baseline
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 a substantial portion of sampled data are 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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Electrostatic Discharge in Electronics · Software Testing and Debugging Techniques
