How do Execution Features Improve Statistical Fault Localization? An Empirical Study
Abstract
Context. Statistical fault localization (SFL) ranks suspicious lines from pass and fail coverage spectra, which leave out the data flow, values, and conditions behind a failure. Objective. In a registered study, we test whether weighting SFL with the importances of execution features improves localization. Method. For all 310 reproducible Tests4Py bugs, we train a random forest per subject on execution features, map its importances to source lines, and weight five SFL formulas with them. We evaluate top-, EXAM, and wasted effort with paired effect sizes, a mixed-effects model, and positive and negative controls. Results. The weighting barely moves the ranking (top-1 accuracy from 0.153 to 0.161). No paired effect size reaches 0.2 (), the method is superior for none of the five formulas, and neither registered hypothesis is supported. An oracle weighting is superior for every formula, while random importances do as well as learned ones. Turning the tables, a ranker trained on the faults of other projects raises top-1 to 0.290 and lowers EXAM from 0.237 to 0.080. Under the paired effect size, it is superior for every formula, while the same ranker with random importances is not. Conclusions. Execution features capture how a failing run differs. With a single failing run, as in 72% of subjects, multiple features separate it equally well, and not all of them point to where the fix applies. Execution features do improve localization once the knowledge of how to weigh them is learned across faults.
Create a lesson
Metadata
- Comments
- Stage 2 registered report. Stage 1 (ICSME 2026 Registered Reports track): arXiv:2606.30324, https://arxiv.org/abs/2606.30324. 44 pages, 4 figures, 11 tables. Replication package: https://doi.org/10.5281/zenodo.24572352
Related papers
Does Training-Free Delegation Improve Cost Efficiency in Multi-Agent Software Engineering Systems? An Empirical Study
Shared title terminologycs.SEMootez Saad, Mohammad Masudur Rahman, Tushar Sharma
An Empirical Study of Vulnerability Localization with Third-Party Reports
Shared title terminologycs.SEMingsheng Cai, Joanna Cecilia da Silva Santos, Adriana Sejfia
Do Causal-Inspired Optimizers Improve Optimization Quality and Consistency? A Negative Result in Software Optimization
Shared title terminologycs.SEAmirali Rayegan, Lunxiao Li, Tim Menzies
The Placebo Improvement: Stress-Testing False Claims by Autonomous Research Agents
Shared title terminologycs.SEMarek Šuppa, Jaroslav Kopčan
MergeReady-Bench: Evaluating and Improving Coding Agents Beyond Test Passing
Shared title terminologycs.SEPriyatham Kattakinda, Wenxiao Wang, Soheil Feizi
All About That Bayes: A Focus Group on the State of Bayesian Analysis in Empirical Software Engineering
Shared title terminologycs.SEJustus Bogner, Roberto Verdecchia