Building a Theory of Latent Space Fault Localization, Repair and Testing
Details
# Building a Theory of Latent Space Fault Localization, Repair and Testing
Join us at KTH with Jonathan Katzy (TU Delft) on applying software engineering principles to the maintenance of code language models.
Date: Tuesday, December 15, 2026
Time: 11:00–12:00 CET
Location: KTH, Room 1537
## Abstract
Large language models, and code language models, have transitioned from task-specific machine-learning models designed to solve individual tasks to long-lived generalist models deployed as software artifacts in larger development pipelines. While these models have been warmly received by developers, one critical problem remains largely unaddressed. Language models are relatively static artifacts that face many of the same maintenance problems as conventional software, including bugs, outdated APIs, and reproducing anti-patterns. To address these software engineering challenges in code language models, we propose to view language models as a code base, where specific behaviors and knowledge are localized to specialized components that work together to generate outputs.
We apply this perspective in two works. First, we identify neural operators that determine how information is combined in the residual stream and correct up to 13.6% of incorrect predictions by removing buggy patterns. Second, we use sparse representations to locate and patch a learned bug, repairing 63.79% of observed failures in real code contexts while retaining 99.73% of unaffected control outputs. In future work, we aim to combine these approaches into a general theory of latent-space software maintenance, encompassing fault localization, targeted repair, and testing of code language models.
## About the speaker
Jonathan Katzy is a PhD candidate in the Software Engineering Research Group at TU Delft and has recently submitted his thesis on Software Engineering for Code Language Models. His research focuses on mechanistic interpretability for fault localization, repair and testing, code language model supply chains, and equitable access to code language models.
Personal webpage: https://jkatzy.nl/
Organized as part of the TCS Seminar Series at KTH Royal Institute of Technology. Everyone is welcome!
