Skip to main content
QUICK REVIEW

[Paper Review] On Relating 'Why?' and 'Why Not?' Explanations

Alexey Ignatiev, Nina Narodytska|arXiv (Cornell University)|Dec 21, 2020
Explainable Artificial Intelligence (XAI)Computer Science61 references11 citations
TL;DR

This paper establishes a formal duality between 'Why?' (abductive) and 'Why Not?' (contrastive) explanations in machine learning, proving that abductive explanations are minimal hitting sets of contrastive explanations and vice versa. It introduces novel algorithms for efficiently extracting and enumerating both types of explanations using duality-based techniques grounded in minimal unsatisfiable and minimal correction subsets.

ABSTRACT

Explanations of Machine Learning (ML) models often address a 'Why?' question. Such explanations can be related with selecting feature-value pairs which are sufficient for the prediction. Recent work has investigated explanations that address a 'Why Not?' question, i.e. finding a change of feature values that guarantee a change of prediction. Given their goals, these two forms of explaining predictions of ML models appear to be mostly unrelated. However, this paper demonstrates otherwise, and establishes a rigorous formal relationship between 'Why?' and 'Why Not?' explanations. Concretely, the paper proves that, for any given instance, 'Why?' explanations are minimal hitting sets of 'Why Not?' explanations and vice-versa. Furthermore, the paper devises novel algorithms for extracting and enumerating both forms of explanations.

Motivation & Objective

  • To formally relate abductive explanations ('Why?') and contrastive explanations ('Why Not?') in machine learning models.
  • To demonstrate that abductive and contrastive explanations are dual via minimal hitting set relationships, extending Reiter's work on inconsistent theories.
  • To develop efficient, rigorous algorithms for extracting and enumerating both types of explanations using duality between minimal unsatisfiable subsets (MUS) and minimal correction subsets (MCS).
  • To evaluate the feasibility and scalability of exhaustive explanation enumeration on real-world datasets using XGBoost models.
  • To assess the correlation between contrastive explanations and SHAP feature importance, showing practical alignment with existing explainability tools.

Proposed method

  • Formalize ML models using first-order logic (FOL) or equivalent representations (e.g., integer programming), treating instances as sets of literals.
  • Model abductive explanations as minimal hitting sets of contrastive explanations, and vice versa, leveraging duality between minimal unsatisfiable subsets (MUS) and minimal correction subsets (MCS).
  • Use a duality-based algorithm (Algorithm 2) to exhaustively enumerate all abductive explanations (AXps), which simultaneously computes all contrastive explanations (CXps) via duality.
  • Implement a prototype based on [47] to perform oracle queries on XGBoost models, enabling scalable explanation enumeration via incremental SAT solving or constraint reasoning.
  • Apply the method to six public datasets (Adult, Lending, Recidivism, etc.) with tree ensemble models trained with XGBoost (50 trees, depth 3), using a duality-based approach to extract all explanations.
  • Measure correlation between CXps and SHAP features by computing the overlap between top-weighted SHAP pixels and CXp features, using the Jaccard-like metric corr = |S ∩ T| / |S|.

Experimental results

Research questions

  • RQ1What is the formal relationship between abductive ('Why?') and contrastive ('Why Not?') explanations in machine learning models?
  • RQ2Can the duality between minimal unsatisfiable subsets (MUS) and minimal correction subsets (MCS) be leveraged to compute both abductive and contrastive explanations efficiently?
  • RQ3How scalable is the exhaustive enumeration of abductive and contrastive explanations for real-world models and datasets?
  • RQ4To what extent do contrastive explanations correlate with feature importance from SHAP, a widely used explainability tool?
  • RQ5Can the proposed method generate the first algorithm for enumerating abductive explanations in a rigorous, model-based framework?

Key findings

  • Abductive explanations are minimal hitting sets of contrastive explanations, and vice versa, establishing a formal duality grounded in MUS-MCS duality from inconsistent theory analysis.
  • The duality-based algorithm successfully enumerated all abductive and contrastive explanations for all instances in six benchmark datasets, with average computation times ranging from a fraction of a second to a few seconds per instance.
  • On average, the method required between a few dozen and several hundred oracle calls per instance, with some cases reaching up to a few thousand calls, demonstrating practical feasibility.
  • Contrastive explanations were typically more numerous than abductive explanations, but significantly smaller in size—on average 2.3–3.6 features—making them more interpretable for human users.
  • A strong correlation (corr = 0.4 on average) was observed between the top SHAP features and the features in contrastive explanations, indicating alignment with established explainability methods.
  • In many cases, contrastive explanations were of size one, suggesting that single-feature changes are often sufficient to alter predictions, which supports their utility in model interpretation.

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.