Logo image
Don’t Rush to Critique: Cultivating an Analysis-First Habit in Code Review Models
Conference proceeding   Open access

Don’t Rush to Critique: Cultivating an Analysis-First Habit in Code Review Models

Yongda Yu, Guohao Shi, Xianjun Long, Guoping Rong, Haifeng Shen and XueMing Gu
Proceedings of the 17th International Conference on Internetware, pp.548-559
ACM Other Conferences
Internetware '26: The 17th International Conference on Internetware, 17th (Gold Coast, Queensland, 18/07/2026–20/07/2026)
21/11/2026
pdf
Don’t Rush to Critique1.39 MBDownloadView
Published (Version of record) Open CC BY V4.0
url
Don’t Rush to CritiqueView
Published (Version of record) Open CC BY V4.0

Related links

Metrics

1 Record Views

Abstract

Code Review Large Language Mode Chain-of-Thought
In scenarios where GPU resources are constrained or code pri-vacy requirements are stringent, fine-tuning models with fewerparameters to achieve performance comparable to large-scale mod-els remains a common and effective approach. In the field of Au-tomated Code Review (ACR), existing fine-tuning methods haveshown promising results by constructing a Chain-of-Thought (CoT)to simulate the general process used by human reviewers. However,although the performance gain of a CoT-based ACR has been evi-dently supported by current studies, a “Code Analysis” phase—wherehuman experts establish an overview understanding of the codeprior to the actual review—has not been explicitly reflected in ex-isting ACR CoT frameworks. To address this issue, we proposeCoRe, which explicitly incorporates a “Code Analysis” phase at thebeginning of the CoT. This phase includes summarizing the code,analyzing core flows, and examining the content of diff changes.We then employ a sequential fine-tuning strategy to train CoRe, i.e,the model is first trained to perform code analysis and subsequentlytrained to generate review comments. Empirical evaluations on thepublic CodeReviewer dataset and our curated CoRe dataset demon-strate that a 14B parameter model fine-tuned with the CoRe methodoutperforms state-of-the-art large models—such as DeepSeek-R1and GPT-5—despite their parameter scales being several orders ofmagnitude larger. This highlights a significant efficiency advantage.Ablation experiments further verify that explicitly incorporatingthis preliminary analysis into the ACR-oriented CoT is the funda-mental driver of this performance improvement.

Details

Logo image