Back to search

Schulich School of Engineering

LLM-SATD: An Empirical Study of Self-Admitted Technical Debt in Software Integrating Large Language Models

Abstract

dc:description.abstract

Large language models (LLMs) are increasingly integrated into software systems to support capabili-ties such as task automation and conversational interfaces. Under pressure to rapidly ship LLM-powered features and gain first-mover advantage, developers may incur technical debt: workarounds and shortcuts that accelerate short-term delivery but make future software maintenance and evolution more difficult. Developers often acknowledge such debt in code comments, forming Self-Admitted Technical Debt (SATD). These comments capture the maintenance challenges developers face. SATD has therefore been studied both in general software systems and in specialized contexts such as machine-learning systems, revealing concerns such as data-pipeline management as drivers of SATD. However, despite the rapid adoption of LLMs, empirical evidence on SATD arising specifically from LLM integration, which we call LLM-SATD, remains scarce. To address this gap, we empirically study open-source projects to determine the prevalence of LLM-SATD, the effort required to repay it, and its recurring forms. We construct a dataset of 90,845 SATD instances mined from 2,854 GitHub repositories and develop an approach to identify LLM-SATD among them. We find that LLM-SATD accounts for 5.6% of all SATD (5,086 comments). It is also repaid more often than non-LLM-SATD (62.3% vs. 46.3%) and requires less effort to repay: at the median, 32.6% fewer modified lines of code, 37.5% fewer modified files, and 6.9% fewer Abstract Syntax Tree (AST) modifications, while taking nearly the same time. Through thematic analysis, we derive a taxonomy of LLM-SATD with 22 subcategories across 10 categories, capturing challenges specific to LLM integration, such as Agent Integration Debt and Prompt Debt. We further examine repayment time and effort across LLM-SATD categories, finding Testing and Behaviour Verification Debt particularly concerning, with a median repayment time of 76.6 days and a median of 179 modified lines. We also find that LLM-SATD activity is largely maintainer-driven: maintainers introduce 87.1% and repay 86.9% of LLM-SATD. Based on these findings, we provide recommendations to reduce LLM-SATD and streamline repayment, helping practitioners estimate the maintenance effort involved in building LLM-based features and prioritize debts to address early.

Degree

thesis:*
Name thesis:degree_name
Master of Science (MSc)
Discipline thesis:degree_discipline
Engineering – Electrical & Computer
Grantor
Schulich School of Engineering
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Owolabi, Saviour
Advisor dc:contributor.advisor
  • Abdellatif, Ahmad
Committee members dc:contributor.committeemember
  • Ginde, Gouri
  • Kim, Kangsoo

Subjects

dc:subject × 5

Rights

dc:rights
Statement dc:rights
  • Unless otherwise indicated, this material is protected by copyright and has been made available with authorization from the copyright owner. You may use this material in any way that is permitted by the Copyright Act or through licensing that has been assigned to the document. For uses that are not allowable under copyright legislation or licensing, you are required to seek permission.
Language dc:language.iso
en

Identifiers

dc:identifier.*
Dc Identifier Citation
Owolabi, S. (2026). LLM-SATD: An empirical study of self-admitted technical debt in software integrating large language models (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://prism.ucalgary.ca.

Chain of custody

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

Owolabi, Saviour. LLM-SATD: An Empirical Study of Self-Admitted Technical Debt in Software Integrating Large Language Models. Schulich School of Engineering, 2026. https://hdl.handle.net/1880/125235