# Causality-Based Fault Localization

DevFeed: [Causality-Based Fault Localization](<https://devfeed.tech/articles/causality-based-fault-localization-113504.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.01292>)

Author: Melane Navaratnarajah, Aidan Dakhama, Tom Yaacov, David A. Kelly, Karine Even-Mendoza, Hana Chockler

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [causality](<https://devfeed.tech/topics/causality.md>), [mutation-testing](<https://devfeed.tech/topics/mutation-testing.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [approach](<https://devfeed.tech/tags/approach.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [causality](<https://devfeed.tech/tags/causality.md>), [computer-science](<https://devfeed.tech/tags/computer-science.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [generation](<https://devfeed.tech/tags/generation.md>), [localization](<https://devfeed.tech/tags/localization.md>), [location](<https://devfeed.tech/tags/location.md>), [metric](<https://devfeed.tech/tags/metric.md>), [mutation](<https://devfeed.tech/tags/mutation.md>), [program](<https://devfeed.tech/tags/program.md>), [rank](<https://devfeed.tech/tags/rank.md>), [required](<https://devfeed.tech/tags/required.md>), [responsibility](<https://devfeed.tech/tags/responsibility.md>), [results](<https://devfeed.tech/tags/results.md>), [test](<https://devfeed.tech/tags/test.md>), [tests](<https://devfeed.tech/tags/tests.md>), [theory](<https://devfeed.tech/tags/theory.md>), [tool](<https://devfeed.tech/tags/tool.md>)

## AI overview

CBFL ranks likely fault locations by estimating each code location's causal responsibility for a failing test, then uses a distance metric to prioritize minimal fixes and penalize fixes that break tests. Its implementation, SoftReX, reportedly improves Mean Reciprocal Rank and Top-1 by 16% over state-of-the-art mutation-based fault localization tools when evaluated with the same mutants. The paper also describes a program-structure-aware mutation generation strategy that needs 2.6 times fewer mutants evaluated than state-of-the-art methods while remaining competitive in performance. These results are reported in the supplied abstract; experimental details are not included.

## Source excerpt

arXiv:2611.01292v1 Announce Type: new 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.