PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
June 27, 2026Automated Software Engineering1 citationsOpen Access

Are LLMs reliable code reviewers? systematic overcorrection in requirement conformance judgement

HJHaolin JinHCHuaming Chen

Key Points

  • This research investigates the reliability of large language models in reviewing code against natural language task requirements.
  • Systematic evaluation of LLM performance using widely adopted benchmarks and prompt designs.
  • Analysis of misclassification rates and the impact of detailed prompt designs on code compliance judgments.
  • Development of a Fix-guided Verification Filter for validating code implementation.
  • LLMs misclassify correct code as non-compliant at significant rates.
  • More detailed prompts requiring explanations lead to increased misjudgment rates.
  • Recommendations for integrating LLMs in automated processes to enhance reliability.

Abstract

Abstract Large language models (LLMs) have become essential tools in software development, widely used for requirements engineering, code generation and review tasks. Software engineers often rely on LLMs to verify if code implementation satisfy task requirements, thereby ensuring code robustness and accuracy. However, it remains unclear whether LLMs can reliably determine code against the given task descriptions, which is usually in a form of natural language specifications. In this paper, we uncover a systematic failure of LLMs in matching code to natural language requirements. Specifically, with widely adopted benchmarks and unified prompts design, we demonstrate that LLMs frequently misclassify correct code implementation as non-compliant or defective. Surprisingly, we find that more detailed prompt design, particularly with those requiring explanations and proposed corrections, leads to higher misjudgment rates, highlighting critical reliability issues for LLM-based code assistants. We further analyze the mechanisms driving these failures and evaluate the reliability of rationale-required judgments. Building on these findings, we propose a Fix-guided Verification Filter that treats the model proposed fix as executable counterfactual evidence, and validates the original and revised implementations using benchmark tests and spec-constrained augmented tests. Our results expose previously under-explored limitations in LLM-based code review capabilities, and provide practical guidance for integrating LLM-based reviewers with safeguards in automated review and development pipelines.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Jin et al. (2026) studied this question.

synapsesocial.com/papers/6a3f68f5aea7db3c1953fd76https://doi.org/10.1007/s10515-026-00638-5
Ask AI
Helpful
Bookmark
Share
View Full Paper