Source-linked AI summary

Generative Counterfactual Introspection for Explainable Deep Learning

Shusen Liu, Bhavya Kailkhura, Donald Loveland, Yong Han

arXiv:1907.03077v1cs.LGcs.AIcs.CVstat.ML

TL;DR

Existing introspection methods mainly relate inputs to predictions without identifying meaningful changes that could produce alternative outcomes. This paper uses generative models with actionable attribute editing to generate counterfactual explanations, demonstrating insights into classifier behavior on MNIST and CelebA.

  • Problem

    Existing model introspection approaches study input–output correlations but do not identify meaningful input changes that could produce different predictions.

    Source: §1 · p. 1
  • Method

    The framework uses generative models and actionable latent-feature editing to produce counterfactual prototypes and criticisms.

    Source: §1 · p. 2
  • Results

    The approach reveals classifier decision-boundary patterns through meaningful edits on MNIST and attribute-based counterfactuals on CelebA.

    Source: §4.1 · p. 4, §4.2 · pp. 5–6
  • Takeaways & Limitations

    Generative counterfactual introspection provides actionable feedback for investigating deep neural-network behavior.

    Source: §1 · p. 2, §4.1 · p. 4, §5 · p. 7

    The authors present preliminary results, while existing prototype-and-criticism approaches cannot provide counterfactual, actionable feedback and may yield semantically limited changes.

    Source: §1 · pp. 1–2, §5 · p. 7

Abstract

from arXiv · show

In this work, we propose an introspection technique for deep neural networks that relies on a generative model to instigate salient editing of the input image for model interpretation. Such modification provides the fundamental interventional operation that allows us to obtain answers to counterfactual inquiries, i.e., what meaningful change can be made to the input image in order to alter the prediction. We demonstrate how to reveal interesting properties of the given classifiers by utilizing the proposed introspection approach on both the MNIST and the CelebA dataset.

1 Introduction

The paper argues that correlation-based introspection cannot answer what input changes would produce alternative predictions. It proposes generative, actionable counterfactual explanations that edit meaningful attributes to produce prototypes and criticisms.

  • Existing introspection methods mainly identify input regions correlated with predictions, but do not reveal alternative decisions or counterfactual changes.Source: §1 · p. 1
  • Actionable input edits can clarify how decision boundaries relate inputs to desired outputs, including changes needed to move an output toward a target.Source: §1 · p. 1
  • Prototype and criticism explanations illuminate decision boundaries, but existing approaches lack counterfactual, actionable feedback and often intervene directly in image space.Source: §1 · pp. 1–2
  • The framework generates interpretable counterfactual prototypes and criticisms by editing meaningful attributes with a generative model.Source: §1 · p. 2

2 Related Work

Related work includes attribution, local approximation, feature visualization, counterfactual reasoning, and adversarial examples. The paper distinguishes its approach by seeking meaningful, interpretable edits rather than imperceptible or patch-based changes.

  • CNN interpretation methods attribute predictions to pixels, while local surrogate models approximate complex decision functions around specific inputs.Source: §2 · p. 2
  • Counterfactual explanation methods address causal questions through fairness queries, patch-based image editing, or text explanations for image classification.Source: §2 · p. 2
  • Adversarial examples answer counterfactual queries through imperceptible worst-case perturbations, whereas GAN-based editing targets meaningfully modified images.Source: §2 · p. 2

3 Method

The method searches for actionable attribute or latent edits that change a classifier’s decision while preserving other image content. Because the resulting optimization is generally non-linear and non-convex, the paper uses a differentiable relaxed objective solved by gradient descent.

3 Method

  • The framework seeks counterfactual prototypes and criticisms by identifying attribute changes that alter or strengthen a classifier’s decision.Source: §3 · p. 3, §3.1 · p. 3

3.1 Minimal Change Counterfactual Example Generation

  • Generative editing manipulates known attributes or learned latent factors while preserving unspecified image details.Source: §3.1 · p. 3
  • For criticisms, the target class is the desired alternative class; for prototypes, the target remains the original class while the objective promotes higher confidence rather than no change.Source: §3.1 · p. 3

3.2 Approximate Solution

  • The non-linear, non-convex formulation is relaxed and optimized efficiently with gradient descent using differentiable classifier and generator components.Source: §3.2 · p. 3
  • The method can repeatedly optimize with one-dimensional search over λ to obtain explanations minimizing image change δ = ∥I − I(A′)∥p.Source: §3.2 · p. 3

4 Experiments

Experiments show that generative counterfactual editing produces actionable explanations of classifier decision boundaries on MNIST and CelebA. The analyses reveal meaningful digit transformations, minimal edits under regularization, attribute-based age predictions, potential dataset bias, and prototype–criticism differences.

4 Experiments

  • Counterfactual editing reveals classifier behavior across MNIST and CelebA by generating modified images and actionable attribute changes.The experiments cover datasets with unknown and explicit attributes, respectively.Source: §4 · p. 3, §4.2 · p. 5

4.1 MNIST dataset

  • MNIST counterfactual paths alter digit-9 predictions through meaningful manifold edits, while prototype searches produce more regular handwriting styles.Some 9→2 and 9→6 paths pass through an intermediate 0, exposing similarities and decision-boundary structure.Source: §4.1 · p. 4, Figure 2 · p. 4, Figure 3 · p. 5
  • Regularization makes MNIST optimization paths smoother and keeps image modifications minimal.The regularization term measures distance between the original and edited images.Source: §4.1 · p. 4, Figure 4 · p. 5

4.2 CelebA dataset

  • CelebA editing uses AttGAN attributes to change apparent age while preserving a person’s facial identity and other details.The classifier achieves 90.89% average test accuracy, and experiments exclude direct young/old edits by fixing that attribute.Source: §4.2 · pp. 5–6, Figure 5 · p. 5
  • For three young-classified female faces, edits toward an old classification repeatedly introduce eyeglasses, consistent with higher eyeglass frequency among old-labeled training examples.The counterfactuals expose a potential training-data bias in the age classifier.Source: §4.2 · p. 6, Figure 7 · p. 6, Figure 6 · p. 6
  • Prototype and criticism analyses distinguish prototypical and outlier old-labeled faces, with hair features among the most important age-group discriminators.One male face needs minimal changes to become older, whereas another requires substantial changes and is closer to a typical young image.Source: §4.2 · pp. 6–7, Figure 8 · p. 7

5 Discussion and Future Work

The paper presents preliminary results using generative models to obtain counterfactual explanations for classifiers and identifies scientific model validation and domain discovery as future applications.

  • Generative counterfactual explanations show promise for revealing insights into deep neural network behavior, while scientific applications remain a future direction.Source: §5 · p. 7
Loading 1907.03077v1…