FlexFL: Flexible and Effective Fault Localization with Open-Source Large Language Models
Chuyang Xu, Zhongxin Liu, Xiaoxue Ren, Gehao Zhang, Ming Liang, David, Lo

TL;DR
FlexFL is a new fault localization framework that effectively uses open-source large language models and various bug-related information to improve bug detection accuracy.
Contribution
FlexFL introduces a flexible, two-stage bug localization approach that leverages open-source LLMs and multiple bug-related data sources, overcoming limitations of prior proprietary LLM-based methods.
Findings
FlexFL outperforms existing LLM-based FL methods on Defects4J.
Using Llama3-8B, FlexFL locates 42-63 more bugs than GPT-3.5-based approaches.
FlexFL effectively integrates different bug-related information types.
Abstract
Due to the impressive code comprehension ability of Large Language Models (LLMs), a few studies have proposed to leverage LLMs to locate bugs, i.e., LLM-based FL, and demonstrated promising performance. However, first, these methods are limited in flexibility. They rely on bug-triggering test cases to perform FL and cannot make use of other available bug-related information, e.g., bug reports. Second, they are built upon proprietary LLMs, which are, although powerful, confronted with risks in data privacy. To address these limitations, we propose a novel LLM-based FL framework named FlexFL, which can flexibly leverage different types of bug-related information and effectively work with open-source LLMs. FlexFL is composed of two stages. In the first stage, FlexFL reduces the search space of buggy code using state-of-the-art FL techniques of different families and provides a candidate…
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.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware System Performance and Reliability · Software Engineering Research · Service-Oriented Architecture and Web Services
