Causality-Based Fault Localization
Melane Navaratnarajah, Aidan Dakhama, Tom Yaacov, David A. Kelly, Karine Even-Mendoza, Hana Chockler
Key points
From the paper's conclusion- We introduce Causality-Based Fault Localization (CBFL), a novel approach to fault localization grounded in the theory of actual causality.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- How Does Killing Surviving Mutants Help Detect Real Bugs with Assertion Generation? A Controlled ExperimentProceedings of the ACM on Software Engineering · 2026
- Signal Denoising Based Kill Matrix Refinement for Mutation-Based Fault LocalizationProceedings of the ACM on Software Engineering · 2026
- Does Fault Localization Beat a Fresh Attempt? A Placebo-Controlled Study of Test-Guided Code RepairarXiv · 2026
- Project-Scale Statement-Level Fault Localization via Multi-view Semantic Learning and Pairwise RerankingProceedings of the ACM on Software Engineering · 2026
- Mutation-Guided Unit Test Generation With a Large Language ModelIEEE Transactions on Software Engineering · 2026
- LLMutantKiller: Using Large Language Models to Generate Tests That Kill MutantsProceedings of the ACM on Software Engineering · 2026