FlexFL: Flexible and Effective Fault Localization with Open-Source Large Language Models
Not on the map. Why?
Abstract (arXiv)
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 list of bug-related methods. In the second stage, FlexFL leverages LLMs to delve deeper to double-check the code snippets of methods suggested by the first stage and refine fault localization results. In each stage, FlexFL constructs agents based on open-source LLMs, which share the same pipeline that does not postulate any type of bug-related information and can interact with function calls without the out-of-the-box capability. Extensive experimental results on Defects4J demonstrate that FlexFL outperforms the baselines and can work with different open-source LLMs. Specifically, FlexFL with a lightweight open-source LLM Llama3-8B can locate 42 and 63 more bugs than two state-of-the-art LLM-based FL approaches AutoFL and AgentFL that both use GPT-3.5.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). First posted on arXiv 16 Nov 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 2; 2026: 6.
8 papers.
- 2025Issue Localization via LLM-Driven Iterative Code Graph Searchingcited by 22
- 2025Assessing the Impact of Code Changes on the Fault Localizability of Large Language Modelscited by 4
- 2026Agentic Code Reasoningcited by 4
- 2026LIDL: LLM Integration Defect Localization via Knowledge Graph-Enhanced Multi-Agent Analysiscited by 2
- 2026ARISE: A Repository-level Graph Representation and Toolset for Agentic Program Repair and Fault Localizationcited by 2
- 2026Writing Bug Reports for Software Repair Agents: What Information Matters Most?cited by 1
- 2026SemLoc: Structured Grounding of Free-Form LLM Reasoning for Fault Localizationcited by 0
- 2026Improving MPI Error Detection and Repair with Large Language Models and Bug Referencescited by 0
- 2026Writing Bug Reports for Software Repair Agents: What Information Matters Most?10 Jul 2026
- 2026ARISE: A Repository-level Graph Representation and Toolset for Agentic Program Repair and Fault Localization4 May 2026
- 2026Improving MPI Error Detection and Repair with Large Language Models and Bug References2 Apr 2026
- 2026SemLoc: Structured Grounding of Free-Form LLM Reasoning for Fault Localization31 Mar 2026
- 2026Agentic Code Reasoning2 Mar 2026
- 2026LIDL: LLM Integration Defect Localization via Knowledge Graph-Enhanced Multi-Agent Analysis9 Jan 2026
- 2025Assessing the Impact of Code Changes on the Fault Localizability of Large Language Models6 Apr 2025
- 2025Issue Localization via LLM-Driven Iterative Code Graph Searching28 Mar 2025