Causality-Based Fault Localization
Melane Navaratnarajah, Aidan Dakhama, Tom Yaacov, David A. Kelly, Karine Even-Mendoza, Hana Chockler
Abstract
We introduce Causality-Based Fault Localization (CBFL), a novel approach to fault localization grounded in the theory of actual causality. We use the notion of causal responsibility to formalize and define the contribution of a given location in the source code under the context of a failing test. We also utilize a distance metric to prioritize minimal fixes and penalize broken tests, leading to more interpretable and fixable fault localization. We implemented CBFL in a tool, SoftReX, and our evaluation results demonstrate that SoftReX outperforms state-of-the-art Mutation-Based Fault Localization (MBFL) tools based on Mean Reciprocal Rank (MRR) and Top-1 by 16% on both metrics, when using the same set of mutants. We also propose a sophisticated mutation generation strategy based on the structure and representation of the program to improve the accuracy of our ranked list, which outperforms state-of-the-art methods by 2.6x in terms of required mutants evaluated while remaining competitive in performance.
Create a lesson
Related papers
Do Coding Agents Still Need a Debugger? Frontier-Model-Based Fault Localization at the Accuracy Ceiling
Shared title terminologycs.SEChristoph Daxerer, Johann Glock, Christian Macho et al.
Agentic Root Cause Reasoning and Localization of Unsoundness in Static Call Graph Analysis
Shared title terminologycs.SEMohammad Rafieian, Michael Hicks, Shiyi Wei
Idempotency Is Not Recovery: A Fault-Injection Study of Language-Model Agent Tool Actions
Shared title terminologycs.SESong Xu
Formal Analysis of a Fault-Tolerant Extension of the ROSACE Flight Controller
Shared title terminologycs.SEMarco Bozzano, Alessandro Cimatti, Moussa Fall et al.
NINJA: A Navigator-Inspector Joint Architecture for Context-Efficient Issue Localization
Shared title terminologycs.SEWenkai Fang, Shunyu Liu, Wei Luo et al.
Which Signals of Code Correctness Survive Distribution Shift? Hidden-State and Causal Predictors of Program and Verdict Correctness
Shared title terminologycs.SEViola Campos, Thomas Klassert, Adrian Ulges