Causal Explanations for Image Classifiers

Hana Chockler, David A. Kelly, Daniel Kroening, Youcheng SunarXiv 2024 · DOI

Introduction

Deep neural networks are often criticized as "black boxes," particularly in high-stakes domains like healthcare and autonomous driving. While various eXplainable AI (XAI) tools exist, they frequently lack a rigorous formal definition of an explanation, often resulting in noisy saliency maps that include irrelevant background data. This paper introduces rex, a novel black-box explainability tool grounded in the formal theory of "actual causality." By identifying the minimal subset of pixels necessary to maintain a classification, rex provides precise and compact explanations.

Methodology

The rex framework is built upon the Halpern-Pearl Theory of Actual Causality. An explanation is formally defined as a minimal subset of pixels that, when preserved while others are masked, retains the original top-1 classification.

The rex Algorithm

Since finding the absolute minimal set is computationally intractable (NP-hard), rex employs a two-stage approximation:

  1. Causal Ranking: The image is partitioned into superpixels. The algorithm calculates the "sufficient responsibility" of these segments, identifying how much each contributes to the final decision. High-responsibility areas are iteratively subdivided for finer analysis.
  2. Greedy Extraction: Pixels are ranked by responsibility and added back into a masked image until the model's original classification is restored.

As a black-box tool, rex requires no knowledge of the model's internal architecture or gradients, making it suitable for proprietary systems.

Experimental Evaluation

The authors evaluated rex using several benchmarks:

  • ImageNet-1k-mini: Standard large-scale classification.
  • Pascal VOC2012 & ECSSD: Evaluated alignment with human-provided segmentation masks.
  • Photobombing Dataset: A custom benchmark where random color patches are overlaid on ImageNet images to test if XAI tools are distracted by irrelevant occlusions.

Key Results and Insights

rex consistently produced the most compact explanations, typically covering only 3%–5% of the image. In the "Photobombing" test, rex explanations were 97% disjoint from irrelevant occlusions, demonstrating superior precision over tools like LIME or SHAP.

Causal Independence and Metrics

A significant insight is the justification for treating pixels as causally independent, simplifying the causal graph to a depth-2 structure. Furthermore, the paper challenges the "deletion curve" metric, noting that a high deletion score may simply indicate redundant explanations (e.g., multiple parts of an object being sufficient for classification) rather than a poor explanation.

Conclusion and Future Work

rex provides a principled, efficient, and highly precise approach to black-box image explanation. Future work aims to extend this causal framework to other modalities such as tabular data and time series, and to optimize the algorithm for real-time applications like autonomous vehicle object detection.

Summary updated

BibTeX
@misc{chockler2024causal,
  author = {Hana Chockler and David A. Kelly and Daniel Kroening and Youcheng Sun},
  title = {{Causal Explanations for Image Classifiers}},
  year = {2024},
  eprint = {2411.08875},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.08875},
}
Figure