Large Language Models for Test-Free Fault Localization
Aidan Z.H. Yang, Ruben Martins, Claire Le Goues, Vincent J., Hellendoorn

TL;DR
This paper introduces LLMAO, a novel fault localization method using large language models fine-tuned with adapter layers, achieving state-of-the-art results without relying on test coverage information.
Contribution
It presents the first language model-based fault localization approach that works without test coverage, leveraging fine-tuned LLMs to improve bug localization accuracy.
Findings
Larger LLMs lead to higher confidence in fault localization.
LLMAO outperforms existing MLFL baselines by up to 54.4% in Top-1 results.
First FL technique capable of detecting security vulnerabilities at line level.
Abstract
Fault Localization (FL) aims to automatically localize buggy lines of code, a key first step in many manual and automatic debugging tasks. Previous FL techniques assume the provision of input tests, and often require extensive program analysis, program instrumentation, or data preprocessing. Prior work on deep learning for APR struggles to learn from small datasets and produces limited results on real-world programs. Inspired by the ability of large language models (LLMs) of code to adapt to new tasks based on very few examples, we investigate the applicability of LLMs to line level fault localization. Specifically, we propose to overcome the left-to-right nature of LLMs by fine-tuning a small set of bidirectional adapter layers on top of the representations learned by LLMs to produce LLMAO, the first language model based fault localization approach that locates buggy lines of code…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software Reliability and Analysis Research · Software Testing and Debugging Techniques
MethodsAdapter
