Evaluating Large Language Models for Code Review
Not on the map. Why?
Abstract (arXiv)
Context: Code reviews are crucial for software quality. Recent AI advances have allowed large language models (LLMs) to review and fix code; now, there are tools that perform these reviews. However, their reliability and accuracy have not yet been systematically evaluated. Objective: This study compares different LLMs' performance in detecting code correctness and suggesting improvements. Method: We tested GPT4o and Gemini 2.0 Flash on 492 AI generated code blocks of varying correctness, along with 164 canonical code blocks from the HumanEval benchmark. To simulate the code review task objectively, we expected LLMs to assess code correctness and improve the code if needed. We ran experiments with different configurations and reported on the results. Results: With problem descriptions, GPT4o and Gemini 2.0 Flash correctly classified code correctness 68.50% and 63.89% of the time, respectively, and corrected the code 67.83% and 54.26% of the time for the 492 code blocks of varying correctness. Without problem descriptions, performance declined. The results for the 164 canonical code blocks differed, suggesting that performance depends on the type of code. Conclusion: LLM code reviews can help suggest improvements and assess correctness, but there is a risk of faulty outputs. We propose a process that involves humans, called the "Human in the loop LLM Code Review" to promote knowledge sharing while mitigating the risk of faulty outputs.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 16 of its 46 references that are in the map. First posted on arXiv 26 May 2025.
Builds on
16 of 46 references.
References · 16
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,057
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,986
- 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 619
- 2023Evaluating the Code Quality of AI-Assisted Code Generation Tools: An Empirical Study on GitHub Copilot, Amazon CodeWhisperer, and ChatGPTcited by 71
- 2022Using Pre-Trained Models to Boost Code Review Automationcited by 63
4 more
- 2021Towards Automating Code Review Activitiescited by 54
- 2023Generation-based Code Review Automation: How Far Are We?cited by 9
- 2021A Systematic Literature Review and Taxonomy of Modern Code Reviewcited by 7
- 2018CORRECT: Code Reviewer Recommendation in GitHub Based on Cross-Project and Technology Experiencecited by 4
Built on by
Citing papers per year: 2025: 2; 2026: 5.
7 papers.
- 2025AI Security Beyond Core Domains: Resume Screening as a Case Study of Adversarial Vulnerabilities in Specialized LLM Applicationscited by 3
- 2026AgenticSCR: An Autonomous Agentic Secure Code Review for Immature Vulnerabilities Detectioncited by 2
- 2026On the Footprints of Reviewer Bots Feedback on Agentic Pull Requests in OSS GitHub Repositoriescited by 2
- 2026Understanding the Limits of Automated Evaluation for Code Review Bots in Practicecited by 1
- 2025From Pilots to Practices: A Scoping Review of GenAI-Enabled Personalization in Computer Science Educationcited by 0
- 2026Agentic Repository Mining: A Multi-Task Evaluationcited by 0
- 2026Evaluating the Impact of Explainable AI on Trust in AI-Assisted Code Reviewcited by 0
- 2026Evaluating the Impact of Explainable AI on Trust in AI-Assisted Code Review27 Jul 2026
- 2026Agentic Repository Mining: A Multi-Task Evaluation6 May 2026
- 2026Understanding the Limits of Automated Evaluation for Code Review Bots in Practice27 Apr 2026
- 2026On the Footprints of Reviewer Bots Feedback on Agentic Pull Requests in OSS GitHub Repositories27 Apr 2026
- 2026AgenticSCR: An Autonomous Agentic Secure Code Review for Immature Vulnerabilities Detection27 Jan 2026
- 2025From Pilots to Practices: A Scoping Review of GenAI-Enabled Personalization in Computer Science Education23 Dec 2025
- 2025AI Security Beyond Core Domains: Resume Screening as a Case Study of Adversarial Vulnerabilities in Specialized LLM Applications23 Dec 2025