Skip to main content
QUICK REVIEW

[Paper Review] Interpretable Image Recognition with Hierarchical Prototypes

Peter Hase, Chaofan Chen|arXiv (Cornell University)|Jun 25, 2019
Domain Adaptation and Few-Shot LearningComputer Science25 citations
TL;DR

This paper proposes Hierarchical Prototypes (HPnet), a deep learning model that enables interpretable image classification across multiple levels of a predefined taxonomy by learning visual prototypes at each hierarchical level. The model achieves performance comparable to black-box models while providing human-understandable explanations through localized attention maps, and it can detect novel classes by classifying them at coarse-grained taxonomy levels, such as recognizing a handgun as a weapon even when rifles were the only weapons seen during training.

ABSTRACT

Vision models are interpretable when they classify objects on the basis of features that a person can directly understand. Recently, methods relying on visual feature prototypes have been developed for this purpose. However, in contrast to how humans categorize objects, these approaches have not yet made use of any taxonomical organization of class labels. With such an approach, for instance, we may see why a chimpanzee is classified as a chimpanzee, but not why it was considered to be a primate or even an animal. In this work we introduce a model that uses hierarchically organized prototypes to classify objects at every level in a predefined taxonomy. Hence, we may find distinct explanations for the prediction an image receives at each level of the taxonomy. The hierarchical prototypes enable the model to perform another important task: interpretably classifying images from previously unseen classes at the level of the taxonomy to which they correctly relate, e.g. classifying a hand gun as a weapon, when the only weapons in the training data are rifles. With a subset of ImageNet, we test our model against its counterpart black-box model on two tasks: 1) classification of data from familiar classes, and 2) classification of data from previously unseen classes at the appropriate level in the taxonomy. We find that our model performs approximately as well as its counterpart black-box model while allowing for each classification to be interpreted.

Motivation & Objective

  • To develop an interpretable image recognition model that explains predictions using human-understandable visual features at multiple levels of a taxonomy.
  • To enable classification of images from previously unseen classes by assigning them to broader, known taxonomy levels (e.g., classifying a new gun as a weapon).
  • To provide localized, attention-based explanations for predictions at each level of the hierarchy, such as identifying which image regions activated a prototype for 'primate' or 'capuchin'.
  • To maintain performance comparable to black-box models while enhancing transparency and diagnostic capability through hierarchical prototype learning.
  • To evaluate the model’s ability to detect novel classes and generalize to coarse-grained taxonomy levels not seen during training.

Proposed method

  • The model uses a deep neural network with shared convolutional features, where hierarchical prototypes are learned at each level of a predefined class taxonomy (e.g., animal → primate → capuchin).
  • Prototypes are embedded in the latent space and optimized via a two-stage training process: end-to-end fine-tuning of convolutional layers followed by convex optimization to refine prototype locations.
  • A projection phase every 5 epochs ensures prototypes remain close to the data manifold, improving stability and interpretability.
  • The model employs a prototype-based classifier that computes attention scores between image features and prototypes, generating heat maps that localize relevant image regions for each class prediction.
  • A novel class detection head is trained to identify whether an image belongs to a known fine-grained class or a previously unseen subclass within a known coarse class.
  • Data augmentation and domain adaptation (CEDA) are applied to improve generalization, especially for novel class detection.

Experimental results

Research questions

  • RQ1Can a vision model achieve performance comparable to black-box models while providing interpretable, hierarchical explanations for image classifications?
  • RQ2Can the model correctly classify images from previously unseen classes by assigning them to appropriate coarse-grained taxonomy levels (e.g., classifying a new gun as a weapon)?
  • RQ3How well do the learned prototypes localize relevant image regions, and can these localizations be used to diagnose model errors?
  • RQ4Does the hierarchical prototype structure improve the model’s ability to detect novel classes while maintaining accuracy on known classes?
  • RQ5How does the model’s performance vary across different levels of the taxonomy, especially in terms of fine-grained and coarse-grained accuracy?

Key findings

  • HPnet achieved 82.61% fine-grained accuracy on in-distribution data (F-ID), comparable to the black-box VGG-16 model (82.19%).
  • The model reached 93.57% coarse-grained accuracy on in-distribution data (C-ID), indicating strong performance at higher-level taxonomy predictions.
  • For novel data, HPnet achieved 62.16% coarse-grained accuracy (C-Novel), demonstrating its ability to classify previously unseen subclasses as belonging to known broader categories.
  • The latent-space clustering quality, measured as the proportion of nearest neighbors to prototypes that share the same class, was 79.24% for HPnet, indicating well-separated and meaningful prototypes.
  • The model successfully detected novel classes with 52.05% accuracy using PbThreshold, and this improved to 51.22% with CEDA, showing robustness in novel class detection.
  • Visual explanations via heat maps revealed that top-activated prototypes localized semantically relevant regions—e.g., triggers and hands in weapon images—enabling diagnostic insights into misclassifications.

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.