Skip to main content
QUICK REVIEW

[Paper Review] This Looks Like That... Does it? Shortcomings of Latent Space Prototype Interpretability in Deep Networks

Adrian Hoffmann, Claudio Fanconi|arXiv (Cornell University)|May 5, 2021
Explainable Artificial Intelligence (XAI)Computer Science28 references19 citations
TL;DR

This paper investigates the interpretability of prototype-based deep networks, specifically ProtoPNet, revealing that semantic similarity in latent space does not guarantee perceptual similarity in input space. The authors demonstrate through adversarial noise and JPEG compression experiments that prototypes can be misaligned with human perception, undermining the model's claimed interpretability, even after adversarial training or data augmentation.

ABSTRACT

Deep neural networks that yield human interpretable decisions by architectural design have lately become an increasingly popular alternative to post hoc interpretation of traditional black-box models. Among these networks, the arguably most widespread approach is so-called prototype learning, where similarities to learned latent prototypes serve as the basis of classifying an unseen data point. In this work, we point to an important shortcoming of such approaches. Namely, there is a semantic gap between similarity in latent space and similarity in input space, which can corrupt interpretability. We design two experiments that exemplify this issue on the so-called ProtoPNet. Specifically, we find that this network's interpretability mechanism can be led astray by intentionally crafted or even JPEG compression artefacts, which can produce incomprehensible decisions. We argue that practitioners ought to have this shortcoming in mind when deploying prototype-based models in practice.

Motivation & Objective

  • To investigate whether latent space similarity in prototype-based networks like ProtoPNet ensures perceptual similarity in input space for human interpretation.
  • To evaluate the robustness of ProtoPNet's interpretability mechanism under common image corruptions such as adversarial noise and JPEG compression.
  • To determine whether adversarial training or data augmentation can mitigate these interpretability failures.
  • To challenge the assumption that prototype-based models offer inherently transparent, human-like reasoning.

Proposed method

  • The authors use projected gradient descent (PGD) with a step size of 2/255, ε = 8/255, and 10–40 iterations to generate adversarial perturbations that shift prototype attention to arbitrary image patches.
  • They define a success metric based on whether a perturbed image causes a prototype to be more similar to a non-intended patch than the original, human-recognized patch.
  • For the JPEG experiment, they train ProtoPNets with 50% probability of random JPEG compression (quality 20%) during data augmentation to assess robustness.
  • They compare similarity maps before and after compression to evaluate whether perceptually similar patches yield consistent prototype attention.
  • They evaluate model performance on the CUB-200-2011 dataset using clean and adversarial accuracy, and success rate of the perturbation attack.
  • They visualize top-activating patches to assess the coherence of prototype attention under different conditions.

Experimental results

Research questions

  • RQ1Does a small, imperceptible adversarial perturbation cause ProtoPNet to assign prototype attention to a non-salient region of an image, contradicting human perception?
  • RQ2Can JPEG compression artifacts lead to inconsistent prototype similarity scores between visually similar image patches, undermining interpretability?
  • RQ3To what extent does adversarial training reduce the success rate of such misdirection attacks on prototype attention?
  • RQ4Can data augmentation with JPEG compression improve the robustness of prototype-based interpretations?
  • RQ5Is the semantic gap between latent space similarity and input space similarity sufficient to compromise the transparency of prototype-based models?

Key findings

  • The success rate of adversarial attacks that misdirect prototype attention to non-intended image patches reached 99.5% on ResNet-18 and 93.0% on ResNet-34 under standard training, indicating severe interpretability failure.
  • After adversarial training, the success rate dropped to 34.0% on ResNet-18 and 27.0% on ResNet-34, but remained substantial, showing limited robustness.
  • Adversarial training caused a significant drop in clean test accuracy, from 75.8% to 56.3% on ResNet-18, indicating a trade-off between robustness and performance.
  • Adding random JPEG compression (quality 20%) during training reduced erratic similarity behavior in prototype attention, improving consistency on compressed vs. original images.
  • Despite augmentation, the problem was not fully resolved, as similarity maps still showed inconsistent attention patterns under compression.
  • The visualizations confirmed that prototype attention often focused on regions that were not perceptually meaningful to humans, even when the model made correct predictions.

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.