[Paper Review] Benchmarking Instance-Centric Counterfactual Algorithms for XAI: From White Box to Black Box
This paper benchmarks four model-agnostic counterfactual generation algorithms—DiCE, WatcherCF, prototype, and GrowingSpheresCF—across white-box (decision tree), grey-box (random forest), and black-box (neural network) models using five datasets. It finds that model type has no significant impact on counterfactual quality, proximity-only loss functions produce implausible explanations, and plausibility is essential for reliable evaluation, with DiCE achieving the best balance of quantitative performance and qualitative plausibility.
This study investigates the impact of machine learning models on the generation of counterfactual explanations by conducting a benchmark evaluation over three different types of models: a decision tree (fully transparent, interpretable, white-box model), a random forest (semi-interpretable, grey-box model), and a neural network (fully opaque, black-box model). We tested the counterfactual generation process using four algorithms (DiCE, WatcherCF, prototype, and GrowingSpheresCF) in the literature in 25 different datasets. Our findings indicate that: (1) Different machine learning models have little impact on the generation of counterfactual explanations; (2) Counterfactual algorithms based uniquely on proximity loss functions are not actionable and will not provide meaningful explanations; (3) One cannot have meaningful evaluation results without guaranteeing plausibility in the counterfactual generation. Algorithms that do not consider plausibility in their internal mechanisms will lead to biased and unreliable conclusions if evaluated with the current state-of-the-art metrics; (4) A counterfactual inspection analysis is strongly recommended to ensure a robust examination of counterfactual explanations and the potential identification of biases.
Motivation & Objective
- To evaluate the impact of different machine learning models—white-box (decision tree), grey-box (random forest), and black-box (neural network)—on counterfactual explanation generation.
- To assess the performance of four state-of-the-art counterfactual algorithms (DiCE, WatcherCF, prototype, GrowingSpheresCF) using standardized quantitative metrics.
- To investigate whether current evaluation metrics like proximity and sparsity are sufficient for assessing counterfactual quality without considering plausibility.
- To demonstrate the necessity of qualitative analysis, including decision path inspection, to detect implausible or biased counterfactuals.
- To advocate for a standardized, robust evaluation framework that integrates both quantitative metrics and qualitative plausibility checks in XAI research.
Proposed method
- Conducted a benchmark evaluation across five datasets: COMPAS, Adult, German, Diabetes, and Breast Cancer.
- Applied four counterfactual generation algorithms—DiCE, WatcherCF, prototype, and GrowingSpheresCF—on three model types: decision tree (white-box), random forest (grey-box), and neural network (black-box).
- Used standard quantitative metrics: proximity (L2 distance), sparsity (L0 norm), and fidelity to evaluate counterfactuals.
- Performed qualitative analysis by tracing decision paths in the underlying models to assess plausibility and alignment with domain knowledge.
- Generated counterfactual examples and visualized them to identify implausible changes (e.g., age increasing from 34 to 81), revealing flaws in optimization-based approaches.
- Provided a public benchmark repository with code to reproduce decision paths and counterfactuals for transparency and reproducibility.
Experimental results
Research questions
- RQ1Does the choice of machine learning model (white-box, grey-box, black-box) significantly affect the quality of generated counterfactual explanations?
- RQ2To what extent do standard quantitative metrics like proximity and sparsity predict the quality of counterfactual explanations?
- RQ3How do counterfactual algorithms perform when their internal mechanisms do not enforce plausibility constraints?
- RQ4Can qualitative inspection of decision paths reveal biases or implausibilities missed by quantitative metrics?
- RQ5Is there a need for a standardized evaluation framework that integrates both quantitative metrics and qualitative plausibility checks in XAI counterfactual research?
Key findings
- The type of underlying machine learning model—whether white-box (decision tree), grey-box (random forest), or black-box (neural network)—had no significant impact on the generation of counterfactual explanations.
- Counterfactual algorithms relying solely on proximity loss functions, such as WatcherCF, produced highly implausible counterfactuals, including extreme changes like increasing age from 34 to 81 and BMI from 34 to 67.
- GrowingSpheresCF achieved the best quantitative scores in proximity and sparsity due to its L0 and L2 norm optimization, but failed to ensure plausibility, resulting in biased and meaningless explanations.
- DiCE achieved the best overall performance by balancing strong quantitative results with high plausibility, particularly through its handling of immutable features.
- WatcherCF performed the worst, as its optimization based purely on distance to the input point led to counterfactuals that deviated significantly from realistic decision paths, even when following the first splitting node in a decision tree.
- The study concludes that current evaluation metrics are insufficient without plausibility checks, and that qualitative analysis of decision paths is essential to detect biases and ensure trustworthy counterfactual explanations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.