Automated Code Review in the Age of LLMs A Comparative Analysis

dc.contributor.authorZaman, Maliha
dc.contributor.authorSami , Mohammad Ittehad Rahman
dc.contributor.authorAfnan, Tamim
dc.date.accessioned2026-06-24T08:20:08Z
dc.date.issued2025-10-25
dc.descriptionSupervised by Ms. Maliha Noushin Raida, Lecturer, Department of Computer Science and Engineering (CSE) Islamic University of Technology (IUT) Board Bazar, Gazipur, Bangladesh This thesis is submitted in partial fulfillment of the requirement for the degree of Bachelor of Science in Software Engineering, 2025
dc.description.abstractCode review is a critical but labor-intensive process in software development, often leading to bottlenecks and inconsistencies when performed manually. While Large Language Models (LLMs) offer a promising avenue for automation, existing approaches are limited by unreliable evaluation metrics and low-quality datasets, failing to ade- quately measure the semantic alignment of AI-generated feedback with human rea- soning. Our research presents a comprehensive comparative analysis of LLMs for automated code review. We evaluate five state-of-the-art models GPT-4, LLaMA 3.1, CodeL- LaMA, Qwen 2.5, and Mistral using a rigorous methodology that employs consistent prompting strategies (zero-shot, one-shot, few-shot) and multiple similarity metrics, including SBERT for semantic evaluation and BLEU for surface-level comparison. A key contribution of this work is the creation of a novel, high-quality benchmark dataset, curated from open-source repositories and validated by industry experts, to address the shortcomings of existing public datasets. Our results demonstrate that few-shot prompting consistently yields the highest per- formance across all models, with GPT-4 showing the most significant absolute im- provement. Furthermore, evaluation on our new benchmark revealed a substantial increase in SBERT scores for all models with GPT-4’s similarity to human reviews nearly doubling confirming that dataset quality is a pivotal factor in accurately as- sessing LLM capability. This study establishes a more reliable foundation for future research and demonstrates the significant potential of LLMs to generate human-like, context-aware code reviews when properly benchmarked.
dc.identifier.urihttps://repository.iutoic-dhaka.edu/handle/123456789/2630
dc.language.isoen
dc.publisherDepartment of Computer Science and Engineering(CSE), Islamic University of Technology(IUT), Board Bazar, Gazipur-1704, Bangladesh
dc.titleAutomated Code Review in the Age of LLMs A Comparative Analysis
dc.typeThesis

Files

Original bundle

Now showing 1 - 2 of 2
Loading...
Thumbnail Image
Name:
41 Fulltext_ CSE_ Automated Code Review in the Age of LLMs A Comparative Analysis.pdf
Size:
1.88 MB
Format:
Adobe Portable Document Format
Loading...
Thumbnail Image
Name:
41 Turnitin Report_ 200042131.pdf
Size:
991.76 KB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
1.71 KB
Format:
Item-specific license agreed upon to submission
Description:

Collections