Skip to main content
QUICK REVIEW

[Paper Review] Counterfactual Evaluation for Explainable AI

Yingqiang Ge, Shuchang Liu|arXiv (Cornell University)|Sep 5, 2021
Explainable Artificial Intelligence (XAI)Computer Science35 references6 citations
TL;DR

This paper proposes a counterfactual evaluation (CE) framework to assess the faithfulness of explainable AI methods by generating counterfactual inputs through discrete and continuous perturbations on salient features. The method achieves higher correlation with ground-truth explanations than erasure-based metrics, especially under limited model access, demonstrating superior consistency and reduced bias in faithfulness evaluation.

ABSTRACT

While recent years have witnessed the emergence of various explainable methods in machine learning, to what degree the explanations really represent the reasoning process behind the model prediction -- namely, the faithfulness of explanation -- is still an open problem. One commonly used way to measure faithfulness is extit{erasure-based} criteria. Though conceptually simple, erasure-based criterion could inevitably introduce biases and artifacts. We propose a new methodology to evaluate the faithfulness of explanations from the extit{counterfactual reasoning} perspective: the model should produce substantially different outputs for the original input and its corresponding counterfactual edited on a faithful feature. Specially, we introduce two algorithms to find the proper counterfactuals in both discrete and continuous scenarios and then use the acquired counterfactuals to measure faithfulness. Empirical results on several datasets show that compared with existing metrics, our proposed counterfactual evaluation method can achieve top correlation with the ground truth under diffe

Motivation & Objective

  • To address the challenge of evaluating faithfulness in explainable AI, where existing erasure-based criteria suffer from intrinsic bias due to feature removal.
  • To develop a generalizable, causality-driven evaluation method that leverages counterfactual reasoning to assess whether explanations reflect actual model behavior.
  • To reduce evaluation ambiguity by replacing feature erasure with controlled perturbations that preserve input structure while testing model sensitivity.
  • To enable faithfulness evaluation under varying levels of access to black-box model outputs, including only predicted labels or full probability distributions.
  • To empirically validate the proposed method against established metrics using multiple datasets and explanation methods.

Proposed method

  • Proposes a counterfactual evaluation framework based on two core principles: small perturbations on important features should change predictions, while large perturbations on unimportant features should not.
  • Introduces distinct algorithms for generating counterfactuals in discrete (e.g., categorical features) and continuous (e.g., embeddings) input spaces.
  • Defines Proximity as the average edit distance between original and counterfactual inputs to measure perturbation magnitude.
  • Defines Validity as the ratio of counterfactuals that successfully switch the model’s prediction to the desired output, measuring prediction sensitivity.
  • Introduces Validity_soft as the average change in predicted probability for the original class, capturing gradual shifts in model confidence.
  • Combines Proximity and Validity/Validity_soft into a composite score, 𝒞 or 𝒞_soft, to evaluate faithfulness under different access conditions to model outputs.

Experimental results

Research questions

  • RQ1Can counterfactual reasoning provide a more reliable and less biased alternative to erasure-based metrics for evaluating explanation faithfulness?
  • RQ2How do counterfactual-based metrics perform in comparison to established metrics like comprehensiveness and sufficiency under limited model access?
  • RQ3To what extent does the proposed method correlate with ground-truth explanations across different datasets and explanation methods?
  • RQ4Does the inclusion of Proximity in the evaluation score improve the rationality and consistency of faithfulness assessment?
  • RQ5Can the counterfactual evaluation framework handle both discrete and continuous input types effectively?

Key findings

  • The counterfactual evaluation score 𝒞 (disc.) achieved 100% consistency with ground-truth rankings on the Adults dataset when only predicted labels were available, outperforming DFR, which was completely inconsistent.
  • On both Adults and Movie Reviews datasets, 𝒞 (cont.) achieved a 17.83% average improvement in Kendall’s τ and Spearman’s ρ correlation with ground-truth compared to the best baseline (comprehensiveness).
  • The combination of Proximity and Validity_soft in 𝒞_soft significantly refined ranking results on the Adults dataset, indicating that proximity-aware evaluation enhances rationality and consistency.
  • In multi-explanation evaluation, 𝒞_soft achieved 100% consistency with ground-truth rankings across all tested cases, outperforming Random, LIME, and Anchor.
  • The method demonstrated robustness across varying access levels: it remained effective even when only labels were available, and improved further when probabilities and embeddings were accessible.
  • Empirical results show that 𝒞 and 𝒞_soft achieve top correlation with ground-truth explanations, confirming the superiority of counterfactual reasoning over erasure-based criteria in faithfulness evaluation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.