Skip to main content
QUICK REVIEW

[Paper Review] Meaningfully Debugging Model Mistakes using Conceptual Counterfactual Explanations

Abubakar Abid, Mert Yüksekgönül|arXiv (Cornell University)|Jun 24, 2021
Data Stream Mining TechniquesComputer Science10 citations
TL;DR

This paper introduces Conceptual Counterfactual Explanations (CCE), a method that explains model mistakes using human-understandable concepts without requiring training data or retraining. CCE identifies spurious correlations and biases in image classifiers—validating its effectiveness in medical imaging with clinician-confirmed insights—by generating counterfactual perturbations in embedding space using learned concept activation vectors.

ABSTRACT

Understanding and explaining the mistakes made by trained models is critical to many machine learning objectives, such as improving robustness, addressing concept drift, and mitigating biases. However, this is often an ad hoc process that involves manually looking at the model's mistakes on many test samples and guessing at the underlying reasons for those incorrect predictions. In this paper, we propose a systematic approach, conceptual counterfactual explanations (CCE), that explains why a classifier makes a mistake on a particular test sample(s) in terms of human-understandable concepts (e.g. this zebra is misclassified as a dog because of faint stripes). We base CCE on two prior ideas: counterfactual explanations and concept activation vectors, and validate our approach on well-known pretrained models, showing that it explains the models' mistakes meaningfully. In addition, for new models trained on data with spurious correlations, CCE accurately identifies the spurious correlation as the cause of model mistakes from a single misclassified test sample. On two challenging medical applications, CCE generated useful insights, confirmed by clinicians, into biases and mistakes the model makes in real-world settings.

Motivation & Objective

  • To address the ad hoc, manual process of debugging model mistakes by providing a systematic, interpretable method.
  • To explain why models fail on specific test samples using high-level, human-understandable concepts such as image hues, stripes, or view angles.
  • To detect spurious correlations and data biases in models without access to training data or retraining.
  • To validate the method in real-world medical applications where model failures have clinical consequences.
  • To enable fast, user-friendly debugging of model errors using only white-box model access and a small set of labeled examples for concept learning.

Proposed method

  • CCE constructs a concept library of human-interpretable attributes (e.g., stripes, lateral view) from a small set of labeled images.
  • It learns concept activation vectors (CAVs) using SVMs on embedding representations from the model.
  • For a misclassified sample, CCE computes a weighted sum of concept vectors to generate a counterfactual perturbation that would correct the prediction.
  • The method assigns positive or negative scores to concepts: high positive scores indicate adding the concept improves prediction; high negative scores suggest removing it would help.
  • CCE operates in the embedding space, enabling efficient, sub-0.3-second inference per sample on CPU.
  • The approach requires only white-box access to the model and does not retrain or access the training data.

Experimental results

Research questions

  • RQ1Can CCE systematically explain why a model misclassifies a given test sample using human-understandable concepts?
  • RQ2Can CCE detect spurious correlations in model predictions from a single misclassified sample without access to training data?
  • RQ3Can CCE identify biases in medical models, such as sensitivity to image view angle or patient demographics, and confirm these insights with domain experts?
  • RQ4How effective is CCE in identifying domain shift issues, such as distributional shifts in image hues or acquisition protocols?
  • RQ5Can CCE be applied across different data modalities and tasks beyond image classification?

Key findings

  • In a medical dermatology case study, CCE correctly identified that a model misclassified skin images due to the presence of skin hair, a concept confirmed by a trained dermatologist.
  • In a cardiology application, CCE found that 100% of misclassified lateral-view X-rays had the highest negative score for the 'Lateral View' concept, indicating that removing this feature would improve predictions.
  • CCE detected that a model trained on NIH X-rays failed on SHC lateral-view images due to a lack of exposure to that view type, aligning with clinical expectations.
  • The method required only 50 images per concept to learn effective CAVs, demonstrating low data demand for concept learning.
  • CCE generated explanations in under 0.3 seconds per sample on a single CPU, enabling scalable debugging.
  • Clinicians validated CCE’s explanations as plausible and actionable in real-world medical settings, confirming its practical utility.

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.