Counterfactual explanations for misclassified images: How human and machine explanations differ

Eoin Delaney, Arjun Pakrashi, Derek Greene, Mark T. Keane · DOI

TL;DR

Most Explainable AI (XAI) algorithms assume that the best "counterfactual" explanation is the one that changes the original image as little as possible. This paper proves that assumption wrong: through user studies, researchers found that humans prefer making large, meaningful, and "prototypical" changes rather than the tiny, often imperceptible pixel-tweaks favored by machines.

What Problem Does This Paper Address?

Deep learning models are notoriously "black boxes." To make them more transparent, researchers use counterfactual explanations. A counterfactual tells you: "If the input had been this way instead of that way, the prediction would have changed." For example, "If this image of a '3' had an extra loop here, the model would have correctly identified it as an '8'."

While over 100 counterfactual methods exist, the authors point out a glaring gap: only about 7% of these methods have actually been tested on human users. Most are built on the mathematical intuition of proximity—the idea that a "plausible" explanation should be the "minimal edit" required to flip a model's decision. This paper asks a fundamental question: Is the machine’s definition of "plausible" the same as a human's?

Methods

The researchers moved away from "system-centered" testing (where users just rate machine outputs) to a "human-centered" approach.

  1. Ground-Truth Collection: They built a custom GUI tool and asked human participants to "fix" misclassified images. If a model called a "helicopter" a "mushroom," the human would edit the image (adding or erasing pixels) to show what a helicopter should look like to be correctly classified.
  2. Machine Comparison: They ran the same misclassified images through four state-of-the-art XAI algorithms:
  3. Min-Edit: The classic approach focused purely on minimal distance.
  4. CEM-PN & VLK: Methods that try to balance proximity with "representativeness" using autoencoders.
  5. Revise: A generative approach that uses a Variational Autoencoder (VAE) to find counterfactuals in a latent space.
  6. Evaluation Metrics: They compared human and machine explanations using three lenses:
  7. Proximity: L1 and L2 distances (how much was changed?).
  8. Representativeness: Out-of-distribution (OOD) measures like MC-Dropout and Local Outlier Factor (how much does the result look like a real data point?).
  9. Prototypicality: Grad-Cos similarity (how close is the result to the "ideal" version of that class?).

Datasets

The study utilized two benchmark image datasets:

  • MNIST: The standard dataset of handwritten digits (0-9). It’s simple but allows for clear tracking of how one number "becomes" another.
  • Google QuickDraw: A dataset of 50 million doodles. The authors used a subset (bicycle, giraffe, helicopter, mushroom, pizza). This is more complex because it involves semantic parts (like "rotor blades" or "pizza toppings") that humans can easily identify but machines struggle with.

Key Insights and Ideas

  • The Proximity Paradox: Machines try to stay as close to the original image as possible, often resulting in "adversarial-like" noise that is imperceptible to humans. Humans, conversely, make large, bold changes.
  • Humans are "Prototype-Driven": When a human explains why a doodle is a helicopter, they don't just tweak a few pixels; they draw the rotor blades. They move the image toward the "center" of the target class distribution rather than just nudging it across the nearest decision boundary.
  • Instructions Don't Change Human Nature: Even when specifically told to make the "smallest possible changes," humans still produced edits that were significantly larger and more semantic than any of the machine algorithms.
  • The Generative Advantage: The Revise method, which uses a generative model, came closest to human behavior because it operates in a "semantic" latent space rather than raw pixel space, though it still fell short of human-level meaningfulness.

Key Results

  • Distance Divergence: Human L1/L2 distances were significantly higher than machine-generated ones. For MNIST, humans changed roughly 3-4 times more of the image than the Min-Edit algorithm.
  • Uncertainty Gap: Using Monte Carlo Dropout, the researchers found that human-generated counterfactuals had much higher "certainty" scores (MC-Mean of 0.94 for MNIST) compared to machines (ranging from 0.33 to 0.66). This means humans create examples that the model is very confident about, whereas machines create examples that sit precariously on the edge of the decision boundary.
  • Latent Similarity: In the latent (semantic) space, human edits were significantly more similar to class prototypes (measured via Grad-Cos) than any machine method.

Limitations and Future Work

The authors acknowledge that while MNIST and QuickDraw are excellent for controlled studies, they are relatively simple. Future work needs to explore how these findings translate to natural, high-resolution images (like ImageNet), where "drawing" an explanation is much harder for a human.

Additionally, the study suggests that XAI researchers should stop obsessing over "minimal edits" and start focusing on generative models that can produce prototypical, semantic changes. The goal shouldn't be to find the closest counterfactual, but the most meaningful one.

Summary updated

BibTeX
@article{delaney2023counterfactual,
  author = {Eoin Delaney and Arjun Pakrashi and Derek Greene and Mark T. Keane},
  title = {{Counterfactual explanations for misclassified images: How human and machine explanations differ}},
  journal = {Artificial Intelligence},
  year = {2023},
  doi = {10.1016/j.artint.2023.103995},
}
Figure