This Looks Like That, Because ... Explaining Prototypes for Interpretable Image Recognition

Meike Nauta, Annemarie Jutte, Jesper C. Provoost, Christin Seifert

Introduction

Prototype-based image recognition models, such as ProtoPNet, are often considered inherently "interpretable" because they operate on a "this looks like that" logic. To classify a test image, these models identify a patch and compare it to a learned prototype from the training set. For example, a bird might be classified as a White Pelican because a patch of its beak resembles a prototypical pelican beak.

However, a critical gap remains: Prototype Ambiguity. While a human might assume the model is focusing on the shape of the beak, the model might actually be prioritizing the orange hue or the texture of the feathers. If the human's reasoning differs from the model's, the system is not truly interpretable. This paper introduces a method to quantify the importance of specific visual characteristics—hue, shape, texture, saturation, and contrast—to explain why a model considers two patches similar.

The proposed framework adds an explanation layer to prototype-based classification, quantifying the importance of visual features like hue and shape.

Methods

The authors propose a framework to calculate Importance Scores for five key visual characteristics: Hue, Saturation, Contrast, Shape, and Texture. The core technique involves a sensitivity analysis through image modification.

Prototype Extraction and Modification

The baseline model extracts prototypical patches from training images based on activation maps, identifying the regions the model finds most representative of a class.

The process of extracting a prototypical patch from a training image using activation maps.

To determine which features the model values, the researchers generate five modified versions of a given image patch. For instance, they might blur the image to remove texture, warp it to distort shape, or jitter colors to change the hue.

Quantifying Importance

The original and modified patches are fed into the pre-trained model. If the similarity score drops significantly after a specific modification (e.g., blurring), that characteristic (e.g., Texture) is assigned a high importance score.

  • Local Importance explains specific predictions (why this patch looks like that prototype).
  • Global Importance aggregates these scores across the training set to define the general semantic meaning of a prototype (e.g., identifying a "Red Hue" detector).

Results and Insights

The method was evaluated using the Caltech-UCSD Birds (CUB-200-2011) dataset, a standard benchmark for fine-grained classification. The model achieved a baseline accuracy of 78.3%.

Key Findings

  • Human-CNN Divergence: The study confirms that while humans are often biased toward shape, CNNs frequently prioritize texture and color.
  • Unmasking Misleading Prototypes: Importance scores revealed cases where prototypes that appeared to represent shapes (like a "red foot") were actually only functioning as color detectors (red hue), ignoring the shape entirely.
  • Redundancy Discovery: Global importance scores identified redundant prototypes within the model that focused on identical visual characteristics, suggesting opportunities for model pruning.
  • Robustness: Welch t-tests showed no significant difference between global importance scores from training vs. test sets (p-values < $3.5 \times 10^{-11}$), indicating that the explanations capture fundamental model strategies.

Conclusion

This research addresses the "black box" nature of similarity in prototype-based models. By disentangling visual characteristics, the proposed method provides a more granular and faithful explanation of model reasoning. Future work may explore interactions between features and expand the vocabulary of characteristics beyond the initial five.

Summary updated

BibTeX
@inproceedings{nauta2020this,
  author = {Meike Nauta and Annemarie Jutte and Jesper C. Provoost and Christin Seifert},
  title = {{This Looks Like That, Because ... Explaining Prototypes for Interpretable Image Recognition}},
  booktitle = {Pkdd/ecml Workshops},
  year = {2020},
  doi = {10.1007/978-3-030-93736-2\_34},
}
Figure