Back to search

Carleton University

Investigating Code Review Quality in ML Libraries: Patterns of Missed Bugs and Bug Detection with LLMs

Abstract

dc:description.abstract

ML techniques, increasingly used in real-world scenarios, often rely on open-source codebases that may contain bugs with far-reaching consequences. Despite developers' efforts, these codebases remain prone to hard-to-detect issues, exacerbated by their complexity. This thesis investigates code review quality in five major ML libraries (PyTorch, TensorFlow, Scikit-learn, NumPy, Pandas). We analyze missed bugs in pull requests (PRs) spanning three years, finding that the most frequent bugs are not intrinsic to ML but stem from human factors and external aspects, and that the percentage of PRs that miss bugs ranges from 11.71% to 25.65%. We evaluate SOTA large language models (LLMs) for bug type detection, revealing that LLMs are generally effective in identifying bug types and can enhance automated code review routines. These findings offer valuable insights into the blind spots in current review practices, the limitations of LLMs, and the potential for more robust software development processes.

Degree

thesis:*
Name thesis:degree_name
Master of Computer Science (M.C.S.)
Level thesis:degree_level
Master's
Discipline thesis:degree_discipline
Computer Science
Grantor dc:publisher
Carleton University
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Thaker, Vivek

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • Copyright © 2025 the author(s). Theses may be used for non-commercial research, educational, or related academic purposes only. Such uses include personal study, distribution to students, research and scholarship. Theses may only be shared by linking to the Carleton University Institutional Repository and no part may be copied without proper attribution to the author; no part may be used for commercial purposes directly or indirectly via a for-profit platform; no adaptation or derivative works are permitted without consent from the copyright owner.
Language dc:language.iso
en

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
Carleton University
Base URL
carleton.scholaris.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Thaker, Vivek. Investigating Code Review Quality in ML Libraries: Patterns of Missed Bugs and Bug Detection with LLMs. Master's thesis, Carleton University, 2025. https://hdl.handle.net/20.500.14718/44040