TL;DR
This paper introduces MCR-Bench, the first defect state-aware benchmark designed to evaluate Large Language Models (LLMs) on realistic, multi-round code reviews. By tracking how defects evolve across successive commits and discussions, the benchmark reveals that while current LLMs perform decently in single-turn tasks, they struggle significantly with long-range memory and temporal alignment over multiple review rounds.
What Problem Does This Paper Address?
In real-world software engineering, code review is rarely a one-shot deal. It is an iterative conversation: a developer submits a Pull Request (PR), a reviewer flags issues, the developer pushes a fix, and the reviewer re-evaluates.
Despite this interactive reality, most existing automated code review benchmarks treat the task as a static, single-round decision. They ask an LLM to look at an isolated code diff and generate a comment. This oversimplification ignores two critical features of real-world development: multi-round interactivity and dynamic defect evolution (tracking whether a bug is new, still open, or successfully resolved). Without modeling these state transitions, LLMs cannot reliably determine if a new commit actually addresses a past review comment.
Methods
The authors developed a rigorous, multi-stage data construction pipeline to build MCR-Bench using a "local detection first, global tracking later" strategy:
- Phase I: Local Round-wise Detection: To prevent attention degradation from massive context windows, the pipeline breaks a PR's history into individual rounds. An LLM identifies candidate defects within each isolated round.
- Phase II: Cross-round Consolidation & Lifecycle Tracking: A separate LLM aggregates the local candidates into a global pool, merges duplicates that refer to the same underlying issue, and tracks their lifecycle states across rounds (New $\rightarrow$ Open $\rightarrow$ Resolved $\rightarrow$ Reopened).
- Quality Control & Filtering: The pipeline runs independently three times; only tasks with fully consistent defect cards across all runs are kept. Finally, six experienced developers manually cross-validated the dataset (achieving a high Cohen's kappa agreement of 0.87).
For evaluation, the authors validated an automated metric called LLM-Hit-Judge (using GPT-5.2-pro), which showed a much higher correlation with human judgments (0.73 QWK) than traditional lexical metrics like BLEU-4 (0.27).
Datasets
The paper introduces MCR-Bench, which consists of 2,269 real-world multi-round code review tasks sourced from 38 well-maintained, highly-starred GitHub repositories.
- Languages Covered: Python, Java, JavaScript, TypeScript, and C#.
- Complexity: Every task contains at least two review rounds, with an average of 3.8 rounds (and a maximum of 10).
- Metadata: Each task features fine-grained defect cards detailing descriptions, locations, categories (Functional vs. Evolvability), and severity levels (Trivial to Critical).
Key Insights and Ideas
- The "Multi-Round" Penalty: LLM performance degrades noticeably as the number of interaction rounds increases. Long contexts introduce noise that disrupts the models' reasoning.
- Temporal Misalignment: The most common false positive error (32.5%) occurs when an LLM fails to align defect states with code versions. Models frequently flag an already-resolved bug as "New" because they rely blindly on historical comments rather than analyzing the updated code.
- Cross-Round Defect Forgetting: The leading cause of false negatives (25.1%) is that models simply stop tracking unresolved defects in later rounds as their attention shifts to newly introduced changes.
- Severity Bias: LLMs are much better at catching high-severity defects (Major, Critical) than subtle, low-salience issues (Trivial, Minor), which often depend on fine-grained project conventions.
Key Results
- Defect Detection: Mainstream LLMs exhibit modest capabilities, with F1 scores hovering in the low-to-medium range. The best-performing model barely exceeded an F1 score of 0.55.
- State Tracking Accuracy: When evaluating only the correctly identified defects, Claude Haiku 4.5 achieved the highest tracking accuracy at 79.69%, followed closely by GPT-5.2 (71.23%) and DeepSeek V3.2 (72.60%). Other models struggled significantly, dropping down to ~44%.
- Existing Baselines Fail: Specialized automated code review (ACR) tools like PR-Agent and Hybrid-Review performed significantly worse than directly prompted base LLMs, primarily because they were fundamentally architected for single-pass reviews.
Limitations and Future Work
The authors acknowledge a few limitations:
- Open-Source Focus: The dataset is built entirely from public GitHub repositories, meaning it might not fully capture the proprietary coding practices or compliance constraints of enterprise-scale development.
- Filtering Bias: The strict consistency filtering mechanism used during dataset construction might filter out highly complex, ambiguous cases that are valuable for stress-testing frontier models.
Future Directions: The study highlights an urgent need for future automated code review research to move away from simple prompt engineering and focus on building architectures with robust cross-round memory, historical context grounding, and explicit lifecycle-aware state tracking.
Summary updated