CCISolver: end-to-end detection and repair of method-level code-comment inconsistency

Publication Type

Journal Article

Publication Date

8-2026

Abstract

Comments within code serve as a crucial foundation for software documentation, facilitating effective communication and code understanding among developers. However, code-comment inconsistency (CCI) can negatively affect software development, testing, and maintenance. Recent efforts have emerged to mitigate this issue, 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 an 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.

Keywords

Code comment inconsistency, large language model, Java method-level comment, comment quality, comment maintenance

Discipline

Software Engineering

Publication

IEEE Transactions on Software Engineering

Volume

52

Issue

9

First Page

2546

Last Page

2565

ISSN

0098-5589

Identifier

10.1109/TSE.2026.3689089

Publisher

Institute of Electrical and Electronics Engineers

This document is currently not available here.

Share

COinS