Assessing and Comparing Mutation-based Fault Localization Techniques

Thierry Titcheu Chekam, Mike Papadakis, Yves Le TraonarXiv 2016

Introduction

Locating the root cause of software failures, known as fault localization, remains one of the most resource-intensive phases of the debugging process. Traditional Spectrum-Based Fault Localization (SBFL) techniques, which rely on execution traces of passing and failing tests, often suffer from "coincidental correctness"—where faulty code is executed without triggering an observable failure. Mutation-Based Fault Localization (MBFL) addresses this by intentionally injecting small syntactic changes ("mutants") into the source code to observe how they influence test outcomes. This paper presents the first comprehensive head-to-head comparison of the two leading MBFL techniques, Metallaxis and MUSE, using complex, real-world software bugs.

Methodology

The study evaluates two distinct algorithmic philosophies within the MBFL domain:

  1. Metallaxis: This technique treats mutants as proxies for the original fault. It utilizes the Ochiai similarity coefficient to rank code statements based on how closely a mutant's failure pattern matches the failure pattern of the original buggy program.
  2. MUSE: Inspired by automated program repair, MUSE identifies mutants that "fix" the program (turning failing tests into passing ones) while penalizing those that break previously passing tests.

To ensure real-world relevance, the researchers utilized the CoREBench dataset, which consists of 30 verified bugs from major GNU open-source projects, including Coreutils, Findutils, and Grep. Thousands of mutants were generated for each program to provide a robust statistical basis for localization.

Key Results and Performance Comparison

The experimental results demonstrate that MBFL is highly effective for localizing complex, real-world faults. However, Metallaxis significantly outperformed MUSE in terms of both accuracy and developer effort.

Figure 2: Comparison of the number of faults found within the Top N most suspicious statements for Metallaxis and MUSE.

As shown in the Top N analysis, Metallaxis consistently identifies more faults within the highest-ranked suspicious statements. While both techniques placed the actual bug within the top 10 suggestions for approximately 50% of the cases, Metallaxis maintained a clear lead as the search space expanded.

Efficiency and Search Effort

A critical metric in fault localization is "search effort," defined as the percentage of code a developer must inspect before finding the bug. Metallaxis proved to be twice as efficient as MUSE in this regard. On average, a developer using Metallaxis would need to inspect only 18% of the program's executable statements, compared to 37% for MUSE.

Figure 6: Summary of performance metrics including Top N counts, Mean Percentage Score (MPS), and Mean Average Precision (MAP).

The statistical superiority of Metallaxis is further evidenced by its higher Mean Percentage Score (MPS) of 0.819 compared to MUSE's 0.628. Furthermore, Metallaxis demonstrated greater stability across different bug types, as reflected in its Mean Average Precision (MAP).

Discussion and Conclusion

The findings suggest that the statistical similarity approach employed by Metallaxis is more robust than the "fix-based" logic of MUSE. MUSE often struggled to generate mutants that could successfully flip a failing test to passing in complex logical scenarios, whereas Metallaxis's reliance on failure pattern correlation provided more consistent results.

While MBFL techniques are computationally intensive due to the need to run thousands of mutants, they offer a significant accuracy boost over traditional SBFL. Future research should focus on mutant sampling and selection strategies to reduce the computational overhead without sacrificing the localization precision demonstrated in this study. In conclusion, Metallaxis stands as the current state-of-the-art for mutation-based fault localization in real-world C programs.

Summary updated

BibTeX
@misc{chekam2016assessing,
  author = {Thierry Titcheu Chekam and Mike Papadakis and Yves Le Traon},
  title = {{Assessing and Comparing Mutation-based Fault Localization Techniques}},
  year = {2016},
  eprint = {1607.05512},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1607.05512},
}
Figure