Salvato in:
Dettagli Bibliografici
Autori principali: Xu, Xiaomeng, Wahab, Zahin, Holmes, Reid, Lemieux, Caroline
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:https://arxiv.org/abs/2511.00215
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908623300460544
author Xu, Xiaomeng
Wahab, Zahin
Holmes, Reid
Lemieux, Caroline
author_facet Xu, Xiaomeng
Wahab, Zahin
Holmes, Reid
Lemieux, Caroline
contents Code-documentation inconsistencies are common and undesirable: they can lead to developer misunderstandings and software defects. This paper introduces DocPrism, a multi-language, code-documentation inconsistency detection tool. DocPrism uses a standard large language model (LLM) to analyze and explain inconsistencies. Plain use of LLMs for this task yield unacceptably high false positive rates: LLMs identify natural gaps between high-level documentation and detailed code implementations as inconsistencies. We introduce and apply the Local Categorization, External Filtering (LCEF) methodology to reduce false positives. LCEF relies on the LLM's local completion skills rather than its long-term reasoning skills. In our ablation study, LCEF reduces DocPrism's inconsistency flag rate from 98% to 14%, and increases accuracy from 14% to 94%. On a broad evaluation across Python, TypeScript, C++, and Java, DocPrism maintains a low flag rate of 15%, and achieves a precision of 0.62 without performing any fine-tuning.
format Preprint
id arxiv_https___arxiv_org_abs_2511_00215
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle DocPrism: Local Categorization and External Filtering to Identify Relevant Code-Documentation Inconsistencies
Xu, Xiaomeng
Wahab, Zahin
Holmes, Reid
Lemieux, Caroline
Software Engineering
Code-documentation inconsistencies are common and undesirable: they can lead to developer misunderstandings and software defects. This paper introduces DocPrism, a multi-language, code-documentation inconsistency detection tool. DocPrism uses a standard large language model (LLM) to analyze and explain inconsistencies. Plain use of LLMs for this task yield unacceptably high false positive rates: LLMs identify natural gaps between high-level documentation and detailed code implementations as inconsistencies. We introduce and apply the Local Categorization, External Filtering (LCEF) methodology to reduce false positives. LCEF relies on the LLM's local completion skills rather than its long-term reasoning skills. In our ablation study, LCEF reduces DocPrism's inconsistency flag rate from 98% to 14%, and increases accuracy from 14% to 94%. On a broad evaluation across Python, TypeScript, C++, and Java, DocPrism maintains a low flag rate of 15%, and achieves a precision of 0.62 without performing any fine-tuning.
title DocPrism: Local Categorization and External Filtering to Identify Relevant Code-Documentation Inconsistencies
topic Software Engineering
url https://arxiv.org/abs/2511.00215