mlsanityData to 7 Oct 2026

Large Language Models in Fault Localisation

arXiv 2308.15276 ↗First posted 29 Aug 2023cs.SEcited by 28

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have shown promise in multiple software engineering tasks including code generation, program repair, code summarisation, and test generation. Fault localisation is instrumental in enabling automated debugging and repair of programs and was prominently featured as a highlight during the launch event of ChatGPT-4. Nevertheless, the performance of LLMs compared to state-of-the-art methods, as well as the impact of prompt design and context length on their efficacy, remains unclear. To fill this gap, this paper presents an in-depth investigation into the capability of ChatGPT-3.5 and ChatGPT-4, the two state-of-the-art LLMs, on fault localisation. Using the widely-adopted large-scale Defects4J dataset, we compare the two LLMs with the existing fault localisation techniques. We also investigate the consistency of LLMs in fault localisation, as well as how prompt engineering and the length of code context affect the fault localisation effectiveness. Our findings demonstrate that within function-level context, ChatGPT-4 outperforms all the existing fault localisation methods. Additional error logs can further improve ChatGPT models' localisation accuracy and consistency, with an average 46.9% higher accuracy over the state-of-the-art baseline SmartFL on the Defects4J dataset in terms of TOP-1 metric. However, when the code context of the Defects4J dataset expands to the class-level, ChatGPT-4's performance suffers a significant drop, with 49.9% lower accuracy than SmartFL under TOP-1 metric. These observations indicate that although ChatGPT can effectively localise faults under specific conditions, limitations are evident. Further research is needed to fully harness the potential of LLMs like ChatGPT for practical fault localisation applications.

Key facts. Cited by 28 papers in the map (data through 7 Oct 2026). First posted on arXiv 29 Aug 2023.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 3; 2024: 8; 2025: 12; 2026: 5.

28 papers.

Sort:

By area:

  1. 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
  2. 2025LocAgent: Graph-Guided LLM Agents for Code Localizationcited by 82
  3. 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolutioncited by 52
  4. 2025OrcaLoca: An LLM Agent Framework for Software Issue Localizationcited by 43
  5. 2025Issue Localization via LLM-Driven Iterative Code Graph Searchingcited by 22
  6. 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasetscited by 15
  7. 2024Feedback-Generation for Programming Exercises With GPT-4cited by 14
  8. 2023Turbulence: Systematically and Automatically Testing Instruction-Tuned Large Language Models for Codecited by 9
  9. 2024A Multi-Agent Approach to Fault Localization via Graph-Based Retrieval and Reflexioncited by 8
  10. 2025Evaluating Large Language Models for Real-World Engineering Taskscited by 7
  11. 2024DCA-Bench: A Benchmark for Dataset Curation Agentscited by 6
  12. 2024You're (Not) My Type -- Can LLMs Generate Feedback of Specific Types for Introductory Programming Tasks?cited by 6
16 more
  1. 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Modelscited by 4
  2. 2024Order Matters! An Empirical Study on Large Language Models' Input Order Bias in Software Fault Localizationcited by 3
  3. 2025COSMosFL: Ensemble of Small Language Models for Fault Localisationcited by 3
  4. 2025Where's the Bug? Attention Probing for Scalable Fault Localizationcited by 3
  5. 2026PhoenixRepair: Rethinking Repair Strategy Exploration in Software Agentscited by 2
  6. 2025Fault Localization via Fine-tuning Large Language Models with Mutation Generated Stack Tracescited by 1
  7. 2025Towards Adaptive Software Agents for Debuggingcited by 1
  8. 2026Root Cause Analysis Method Based on Large Language Models with Residual Connection Structurescited by 1
  9. 2026Multi-task LLMs for Bug Classification: Efficient Inference with Auxiliary Decoding Headscited by 1
  10. 2023Breaking the Silence: the Threats of Using LLMs in Software Engineeringcited by 0
  11. 2024Demystifying Faulty Code with LLM: Step-by-Step Reasoning for Explainable Fault Localizationcited by 0
  12. 2024Inferring Pluggable Types with Machine Learningcited by 0
  13. 2025Search-Based Software Engineering and AI Foundation Models: Current Landscape and Future Roadmapcited by 0
  14. 2025CodeFlowLM: Incremental Just-In-Time Defect Prediction with Pretrained Language Models and Exploratory Insights into Defect Localizationcited by 0
  15. 2026LLM-Based Automated Diagnosis Of Integration Test Failures At Googlecited by 0
  16. 2026BLAgent: Agentic RAG for File-Level Bug Localizationcited by 0