AI and Technical Debt: Evidence from 4 Billion Lines of Code
- Paper (PDF) for AI and Technical Debt: Evidence from 4 Billion Lines of Code
- SSRN for AI and Technical Debt: Evidence from 4 Billion Lines of Code
Abstract for AI and Technical Debt: Evidence from 4 Billion Lines of Code
We examine whether generative artificial intelligence (AI) speeds up software development at the expense of code quality. Our novel monthly panel tracks 1,459 corporate public software projects from 2022 to 2026, covering 3.9 billion lines of source code. An industry-standard tool identifies maintainability issues, bugs, and security vulnerabilities in each monthly snapshot of the code. We convert its estimated repair time into a dollar measure of technical debt, the future cost of resolving maintainability issues. We compare code quality changes around first detected AI use with changes at comparable projects where we have not yet detected AI use. Contrary to concerns about “AI slop,” total issues per line decline by 1.4%, bugs per line by 2.1%, and technical debt per line by 0.7% of their averages before detection. Quality gains concentrate in projects with weaker development practices before AI use. We also find that issues per unit of software functionality decline relative to comparison projects. Together, the findings link detected AI use to faster growth in firms’ software assets and a lower engineering burden relative to both code volume and software features.
Full findings for AI and Technical Debt: Evidence from 4 Billion Lines of Code →