Deep Just-In-Time Inconsistency Detection Between Comments and Source Code
Not on the map. Why?
Abstract (arXiv)
Natural language comments convey key aspects of source code such as implementation, usage, and pre- and post-conditions. Failure to update comments accordingly when the corresponding code is modified introduces inconsistencies, which is known to lead to confusion and software bugs. In this paper, we aim to detect whether a comment becomes inconsistent as a result of changes to the corresponding body of code, in order to catch potential inconsistencies just-in-time, i.e., before they are committed to a code base. To achieve this, we develop a deep-learning approach that learns to correlate a comment with code changes. By evaluating on a large corpus of comment/code pairs spanning various comment types, we show that our model outperforms multiple baselines by significant margins. For extrinsic evaluation, we show the usefulness of our approach by combining it with a comment update model to build a more comprehensive automatic comment maintenance system which can both detect and resolve inconsistent comments based on code changes.
Key facts. Cited by 20 papers in the map (data through 7 Oct 2026). First posted on arXiv 4 Oct 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 2; 2023: 5; 2024: 1; 2025: 3; 2026: 6.
20 papers.
Sort:
By area:
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2021On the Evaluation of Neural Code Summarizationcited by 47
- 2022CoditT5: Pretraining for Source Code and Natural Language Editingcited by 45
- 2024CodeAgent: Autonomous Communicative Agents for Code Reviewcited by 33
- 2023Learning Deep Semantics for Test Completioncited by 31
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2026SkillProbe: Security Auditing for Emerging Agent Skill Marketplaces via Multi-Agent Collaborationcited by 21
- 2025Every Sample Matters: Leveraging Mixture-of-Experts and High-Quality Data for Efficient and Accurate Code LLMcited by 13
- 2021Impact of Evaluation Methodologies on Code Summarizationcited by 11
- 2026SciCoQA: Quality Assurance for Scientific Paper--Code Alignmentcited by 9
- 2022Code Comment Inconsistency Detection with BERT and Longformercited by 6
- 2025Large Language Models are Qualified Benchmark Builders: Rebuilding Pre-Training Datasets for Advancing Code Intelligence Taskscited by 6
8 more
- 2023CCRep: Learning Code Change Representations via Pre-Trained Code Model and Query Backcited by 3
- 2023DocChecker: Bootstrapping Code Large Language Model for Detecting and Resolving Code-Comment Inconsistenciescited by 3
- 2026Why Does CLAUDE.md Keep Growing? Catastrophic Remembering in Agentic Codingcited by 2
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Codecited by 1
- 2025CodeFuse-CommitEval: Towards Benchmarking LLM's Power on Commit Message and Code Change Inconsistency Detectioncited by 1
- 2026Do Papers Tell the Whole Story? A Benchmark and Framework for Uncovering Hidden Implementation Gaps in Bioinformaticscited by 1
- 2026SkillConsist: Detecting Inconsistencies in Agent Skills via Bidirectional Graph Alignmentcited by 0
- 2026Dude: A Dual-Detection Multi-Agent System for Paper-Code Discrepancy Detectioncited by 0
- 2026Dude: A Dual-Detection Multi-Agent System for Paper-Code Discrepancy Detection3 Sep 2026
- 2026Why Does CLAUDE.md Keep Growing? Catastrophic Remembering in Agentic Coding11 Aug 2026
- 2026SkillConsist: Detecting Inconsistencies in Agent Skills via Bidirectional Graph Alignment7 Aug 2026
- 2026Do Papers Tell the Whole Story? A Benchmark and Framework for Uncovering Hidden Implementation Gaps in Bioinformatics23 Mar 2026
- 2026SkillProbe: Security Auditing for Emerging Agent Skill Marketplaces via Multi-Agent Collaboration22 Mar 2026
- 2026SciCoQA: Quality Assurance for Scientific Paper--Code Alignment19 Jan 2026
- 2025CodeFuse-CommitEval: Towards Benchmarking LLM's Power on Commit Message and Code Change Inconsistency Detection25 Nov 2025
- 2025Large Language Models are Qualified Benchmark Builders: Rebuilding Pre-Training Datasets for Advancing Code Intelligence Tasks28 Apr 2025
- 2025Every Sample Matters: Leveraging Mixture-of-Experts and High-Quality Data for Efficient and Accurate Code LLM22 Mar 2025
- 2024CodeAgent: Autonomous Communicative Agents for Code Review3 Feb 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Code5 Jul 2023
8 more
- 2023DocChecker: Bootstrapping Code Large Language Model for Detecting and Resolving Code-Comment Inconsistencies10 Jun 2023
- 2023Learning Deep Semantics for Test Completion20 Feb 2023
- 2023CCRep: Learning Code Change Representations via Pre-Trained Code Model and Query Back8 Feb 2023
- 2022CoditT5: Pretraining for Source Code and Natural Language Editing10 Aug 2022
- 2022Code Comment Inconsistency Detection with BERT and Longformer29 Jul 2022
- 2021Impact of Evaluation Methodologies on Code Summarization22 Aug 2021
- 2021Program Synthesis with Large Language Models16 Aug 2021
- 2021On the Evaluation of Neural Code Summarization15 Jul 2021
- 2024CodeAgent: Autonomous Communicative Agents for Code Reviewcited by 33
- 2026SkillProbe: Security Auditing for Emerging Agent Skill Marketplaces via Multi-Agent Collaborationcited by 21
- 2026SciCoQA: Quality Assurance for Scientific Paper--Code Alignmentcited by 9
- 2026Why Does CLAUDE.md Keep Growing? Catastrophic Remembering in Agentic Codingcited by 2
- 2026SkillConsist: Detecting Inconsistencies in Agent Skills via Bidirectional Graph Alignmentcited by 0
- 2026Dude: A Dual-Detection Multi-Agent System for Paper-Code Discrepancy Detectioncited by 0
- 2026Dude: A Dual-Detection Multi-Agent System for Paper-Code Discrepancy Detection3 Sep 2026
- 2026Why Does CLAUDE.md Keep Growing? Catastrophic Remembering in Agentic Coding11 Aug 2026
- 2026SkillConsist: Detecting Inconsistencies in Agent Skills via Bidirectional Graph Alignment7 Aug 2026
- 2026SkillProbe: Security Auditing for Emerging Agent Skill Marketplaces via Multi-Agent Collaboration22 Mar 2026
- 2026SciCoQA: Quality Assurance for Scientific Paper--Code Alignment19 Jan 2026
- 2024CodeAgent: Autonomous Communicative Agents for Code Review3 Feb 2024
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2021On the Evaluation of Neural Code Summarizationcited by 47
- 2022CoditT5: Pretraining for Source Code and Natural Language Editingcited by 45
- 2023Learning Deep Semantics for Test Completioncited by 31
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2021Impact of Evaluation Methodologies on Code Summarizationcited by 11
- 2022Code Comment Inconsistency Detection with BERT and Longformercited by 6
- 2025Large Language Models are Qualified Benchmark Builders: Rebuilding Pre-Training Datasets for Advancing Code Intelligence Taskscited by 6
- 2023CCRep: Learning Code Change Representations via Pre-Trained Code Model and Query Backcited by 3
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Codecited by 1
- 2025CodeFuse-CommitEval: Towards Benchmarking LLM's Power on Commit Message and Code Change Inconsistency Detectioncited by 1
- 2026Do Papers Tell the Whole Story? A Benchmark and Framework for Uncovering Hidden Implementation Gaps in Bioinformaticscited by 1
- 2026Do Papers Tell the Whole Story? A Benchmark and Framework for Uncovering Hidden Implementation Gaps in Bioinformatics23 Mar 2026
- 2025CodeFuse-CommitEval: Towards Benchmarking LLM's Power on Commit Message and Code Change Inconsistency Detection25 Nov 2025
- 2025Large Language Models are Qualified Benchmark Builders: Rebuilding Pre-Training Datasets for Advancing Code Intelligence Tasks28 Apr 2025
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Code5 Jul 2023
- 2023Learning Deep Semantics for Test Completion20 Feb 2023
- 2023CCRep: Learning Code Change Representations via Pre-Trained Code Model and Query Back8 Feb 2023
- 2022CoditT5: Pretraining for Source Code and Natural Language Editing10 Aug 2022
- 2022Code Comment Inconsistency Detection with BERT and Longformer29 Jul 2022
- 2021Impact of Evaluation Methodologies on Code Summarization22 Aug 2021
- 2021Program Synthesis with Large Language Models16 Aug 2021
- 2021On the Evaluation of Neural Code Summarization15 Jul 2021