liu.seSearch for publications in DiVA
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • oxford
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Wait, we can use AI for code reviews?: Investigating the usefulness of AI-generated code review comments
Linköping University, Department of Computer and Information Science.
Linköping University, Department of Computer and Information Science.
2025 (English)Independent thesis Basic level (degree of Bachelor), 10,5 credits / 16 HE creditsStudent thesis
Abstract [en]

Recent advancements in artificial intelligence (AI), especially large language models (LLMs), have sparked significant interest in their potential applications. Code review is a widely adopted software development practice that helps participants understand the codebase and maintain software quality. However, this process is highly time-consuming, prompting interest in improving efficiency through advances in code review tools.

This study investigates the applicability and effectiveness of LLMs as assistive tools in the code review process. We generate and systematically evaluate AI-generated code review comments, which are assessed by both the study authors (using scientifically derived criteria) and professional software engineers (reflecting industrial best practices). A review of scientific literature and a series of interviews with engineers reveal substantial theoretical alignment on what constitutes a good code review comment, particularly regarding the identification of functional errors, edge cases, maintainability concerns, and suggestions for more efficient solutions. However, analysis of inter-rater reliability and thematic categorization indicates a substantial divergence of what constitutes a useful code review comment between study authors and engineers in practice.

Our results show that current state-of-the-art LLMs can generate code review comments that are often perceived as useful by both academics and practitioners. Specifically, 69.4% (95% CI [65.5%, 73.1%]) of comments were found useful by the study authors, and 92.8% (95% CI [88.9%, 95.4%]) by professional software engineers. While LLMs are not positioned to replace humans in the code review process, they show promise as effective assistive tools. We highlight challenges related to prompt engineering, subjectivity in usefulness assessments, and the potential of LLMs as a component in future code reviewing tools.

Place, publisher, year, edition, pages
2025.
Keywords [en]
Artificial Intelligence (AI), Large Language Models (LLMs), Code Review, Automated Code Review, Software Engineering, Code Quality, Usefulness of AI Comments, Developer Tools, Software Development Practices
National Category
Artificial Intelligence
Identifiers
URN: urn:nbn:se:liu:diva-215421ISRN: LIU-IDA/LITH-EX-G--25/024--SEOAI: oai:DiVA.org:liu-215421DiVA, id: diva2:1974745
External cooperation
Saab AB
Subject / course
Computer Engineering
Supervisors
Examiners
Available from: 2025-06-25 Created: 2025-06-23 Last updated: 2025-06-25Bibliographically approved

Open Access in DiVA

fulltext(493 kB)461 downloads
File information
File name FULLTEXT01.pdfFile size 493 kBChecksum SHA-512
bd686adb50e7b4634b7baf221777ebbec4f6ea2ed21b54c05affe34e0471c325140503c74f5046c74f5feea437fe9741de4e43082f6ff5bb60d49e8ac3d33f69
Type fulltextMimetype application/pdf
dataset(46583 kB)22 downloads
File information
File name DATASET01.zipFile size 46583 kBChecksum SHA-512
1d1589e60c382fd2c87ff83e669bee3aa58a1b9c9e321629786fafb0b3ef8642444fdc544175381a96a0c835e62baa63ea842352a86d0d2c75ad01cad5336bf3
Type datasetMimetype application/zip

By organisation
Department of Computer and Information Science
Artificial Intelligence

Search outside of DiVA

GoogleGoogle Scholar
Total: 463 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 768 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • oxford
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf