Skip to main content
QUICK REVIEW

[Paper Review] Uncertainty Estimation and Out-of-Distribution Detection for Counterfactual Explanations: Pitfalls and Solutions

Eoin Delaney, Derek Greene|arXiv (Cornell University)|Jul 20, 2021
Explainable Artificial Intelligence (XAI)Computer Science42 references12 citations
TL;DR

This paper proposes practical methods for estimating uncertainty and detecting out-of-distribution counterfactual explanations using Monte Carlo Dropout and Trust Scores. It demonstrates that these techniques improve reliability in high-stakes AI applications by identifying ambiguous, poorly grounded, or adversarial counterfactuals, with Proto-CF showing high uncertainty and low trust scores despite visual plausibility.

ABSTRACT

Whilst an abundance of techniques have recently been proposed to generate counterfactual explanations for the predictions of opaque black-box systems, markedly less attention has been paid to exploring the uncertainty of these generated explanations. This becomes a critical issue in high-stakes scenarios, where uncertain and misleading explanations could have dire consequences (e.g., medical diagnosis and treatment planning). Moreover, it is often difficult to determine if the generated explanations are well grounded in the training data and sensitive to distributional shifts. This paper proposes several practical solutions that can be leveraged to solve these problems by establishing novel connections with other research works in explainability (e.g., trust scores) and uncertainty estimation (e.g., Monte Carlo Dropout). Two experiments demonstrate the utility of our proposed solutions.

Motivation & Objective

  • To address the lack of uncertainty estimation in counterfactual explanations, which can lead to misleading or harmful recourse in high-stakes domains like healthcare.
  • To identify and mitigate the risk of out-of-distribution (OoD) counterfactuals that are not grounded in training data.
  • To evaluate the robustness of existing counterfactual generation methods under distributional shifts using uncertainty and trust metrics.
  • To propose practical, architecture-agnostic tools—Monte Carlo Dropout and Trust Scores—for assessing explanation uncertainty and data distributional conformity.
  • To guide future development of more reliable, trustworthy, and user-validated counterfactual explanations through empirical evaluation.

Proposed method

  • Uses Monte Carlo Dropout to estimate epistemic uncertainty in counterfactual explanations by sampling multiple forward passes through a dropout-enabled neural network.
  • Employs Trust Scores as a proxy for out-of-distribution detection, measuring how similar a counterfactual is to training data of the counterfactual class.
  • Applies these methods to evaluate three state-of-the-art counterfactual techniques: NUN-CF, W-CF, and Proto-CF across tabular, image, and time-series data.
  • Integrates uncertainty estimation with model-agnostic evaluation, avoiding assumptions about model architecture or availability of autoencoders.
  • Validates the effectiveness of Trust Scores by comparing them with Monte Carlo Dropout uncertainty and ground-truth data distribution conformity.
  • Uses MC-Mean and Trust Score mean values as quantitative metrics to assess uncertainty and distributional plausibility of generated counterfactuals.

Experimental results

Research questions

  • RQ1How can uncertainty in counterfactual explanations be reliably estimated to prevent overconfident and potentially harmful recommendations?
  • RQ2To what extent are existing counterfactual generation methods robust to distributional shifts, and how can out-of-distribution explanations be detected?
  • RQ3Can Trust Scores serve as a reliable, model-agnostic proxy for evaluating the plausibility and grounding of counterfactual explanations in training data?
  • RQ4How do different counterfactual methods (e.g., NUN-CF, W-CF, Proto-CF) compare in terms of uncertainty and trustworthiness across diverse data types?
  • RQ5What are the practical implications of high uncertainty and low trust scores for real-world deployment of counterfactual explanations in high-stakes domains?

Key findings

  • Proto-CF-generated counterfactuals in the image domain exhibited high uncertainty (MC-Mean ≈ 0.67) and low trust scores (mean = 0.977 ± 0.008), indicating poor grounding in the training data despite visual plausibility.
  • W-CF produced explanations with trust scores nearly identical to the original misclassified instances, suggesting they are not meaningfully distinct from adversarial examples and are often imperceptibly different due to small pixel perturbations.
  • NUN-CF generated counterfactuals with significantly lower uncertainty (MC-Mean ≈ 0.93) and higher trust scores, indicating strong alignment with training data, though they may lack sparsity or proximity in complex scenarios.
  • Trust Scores effectively captured distributional conformity and served as a robust proxy for uncertainty, outperforming raw softmax probabilities in identifying OoD explanations.
  • The study reveals that even visually plausible counterfactuals (e.g., blurry or slightly perturbed images) can be highly uncertain and untrustworthy, highlighting the need for formal uncertainty estimation.
  • The results underscore the critical need for uncertainty-aware evaluation in counterfactual explanation systems, especially in domains like healthcare where model trust and safety are paramount.

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.