A Quantitative and Qualitative Evaluation of LLM-Based Explainable Fault Localization
Top Cited Papers
Open Access
- 12 July 2024
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Software Engineering
- Vol. 1 (FSE) , 1424-1446
Abstract
Fault Localization (FL), in which a developer seeks to identify which part of the code is malfunctioning and needs to be fixed, is a recurring challenge in debugging. To reduce developer burden, many automated FL techniques have been proposed. However, prior work has noted that existing techniques fail to provide rationales for the suggested locations, hindering developer adoption of these techniques. With this in mind, we propose A uto FL, a Large Language Model (LLM)-based FL technique that generates an explanation of the bug along with a suggested fault location. A uto FL prompts an LLM to use function calls to navigate a repository, so that it can effectively localize faults over a large software repository and overcome the limit of the LLM context length. Extensive experiments on 798 real-world bugs in Java and Python reveal A uto FL improves method-level acc@1 by up to 233.3% over baselines. Furthermore, developers were interviewed on their impression of A uto FL-generated explanations, showing that developers generally liked the natural language explanations of A uto FL, and that they preferred reading a few, high-quality explanations instead of many.Keywords
All Related Versions
Funding Information
- National Research Foundation of Korea (RS-2023-00208998)
- Engineering Research Center Program (2021R1A5A1021944)
- Institute of Information & Communications Technology Planning & Evaluation (2021-0-01001)
This publication has 45 references indexed in Scilit:
- Testing Very Large Database Management Systems: The Case of SAP HANADatenbank-Spektrum, 2022
- Real world projects, real faults: evaluating spectrum based fault localization techniques on Python projectsEmpirical Software Engineering, 2022
- Fault Localization with Code Coverage Representation Learning2021
- Automatic Unit Test Generation for Machine Learning Libraries: How Far Are We?2021
- Improving Fault Localization by Integrating Value and Predicate Based Causal Inference Techniques2021
- SapFix: Automated End-to-End Repair at Scale2019
- Automatic repair of real bugs in java: a large-scale experiment on the defects4j datasetEmpirical Software Engineering, 2016
- A practical guide to controlled experiments of software engineering tools with human participantsEmpirical Software Engineering, 2013
- Metallaxis‐FL: mutation‐based fault localizationSoftware Testing, Verification and Reliability, 2013
- Statistical Methods for Rates and Proportions2003