Hierarchical Cross-Class Part Alignment for Prototypical Part Networks via Hyperbolic Entailment

Keisuke Sano, Takayoshi Yamashita, Hironobu FujiyoshiNeurIPS 2026

TL;DR

When you tell two bird species apart, your brain effortlessly uses a two-step hierarchy: first, find a shared anatomical part (like a wing), and second, inspect its specific details (like yellow stripes). Interpretable AI models called Prototypical Part Networks try to explain their reasoning by pointing to image patches, but they normally miss this shared structure—treating a sparrow's wing and a gull's wing as completely unrelated concepts. By combining curved hyperbolic geometry with clever, temporary guidance from a vision foundation model, the authors teach these networks to organize visual concepts into genuine part hierarchies, boosting both accuracy and human-readability.

What Problem Does This Paper Address?

Deep neural networks are notoriously opaque, which makes deploying them in high-stakes environments tough. One popular antidote is the Prototypical Part Network (ProtoPNet), a self-explaining "This Looks Like That" model. ProtoPNet classifies images by comparing local patches of an input image against a learned library of "prototypes" (actual patches from training images).

However, in fine-grained tasks—like telling apart 200 bird species or 196 car models—every class shares the same basic anatomy (heads, wings, bumpers), while the distinguishing clues live inside those parts (red head vs. black head). Standard ProtoPNets only learn flat, class-specific prototypes. They don't know that a "red wing" on Bird A and a "striped wing" on Bird B are both wings. Because they don't align parts across classes, concepts get fragmented and duplicated, hurting both generalization and the clarity of the explanations.

Figure 1: Comparison between ProtoPNet [7] and the proposed framework. ProtoPNet explains reasoning behind its prediction by presenting local regions that contributed to its inference and class- specific prototypes with high similarity to a region. In contrast, the proposed framework identifies local regions that contributed to an inference based on which part group each prototype belong to.

Methods

The authors introduce an add-on training framework that splits prototypes into two levels: shared prototypes (capturing general, cross-class parts like "wing") and class-specific prototypes (capturing discriminative features like "yellow wing"). To make this work without modifying the underlying network backbone, they combine two distinct techniques:

  1. Hyperbolic Entailment: Flat Euclidean space is clumsy for trees and hierarchies. Hyperbolic space, however, expands exponentially outward from its origin—making it a natural geometric fit for trees. The authors project image features and prototypes into hyperbolic space (using the Lorentz model). General, shared prototypes sit closer to the origin and cast geometric "entailment cones" outward; an entailment loss forces each class-specific prototype to live inside the cone of its parent shared prototype.
  2. Patch-Level Contrastive Learning via DINOv2: Geometry alone isn't enough—without spatial grounding, the network can cheat by aligning arbitrary, redundant image regions inside the cones. To anchor the hierarchy to real anatomy, the authors pass training images through a vision foundation model (DINOv2), use PCA to separate foreground from background, and run k-means clustering to assign consistent "pseudo part IDs" to image patches. Contrastive losses then force the $k$-th shared prototype and all $k$-th class-specific prototypes to activate on patches with the $k$-th ID. Crucially, DINOv2 is discarded after training, leaving inference completely lightweight and backbone-agnostic.
Overview of the hyperbolic projection, entailment cones, and patch-level contrastive losses

Datasets

The authors evaluate their method on two standard fine-grained image recognition benchmarks (no new datasets are introduced):

  • CUB-200-2011: 200 bird species.
  • Stanford Cars: 196 car models.

Key Insights and Ideas

  • Hyperbolic geometry needs spatial supervision: In the ablation study, projecting prototypes into hyperbolic space and adding entailment cones slightly improved accuracy, but caused prototype distinctiveness to plummet (from 32.7% down to ~7%). Left to its own devices in hyperbolic space, the model collapses into learning redundant prototypes. Adding the pseudo-patch contrastive loss rockets distinctiveness up to 89.3%.
  • Foundation models as training-only scaffolds: Previous work used DINOv2 directly as a ProtoPNet backbone, locking you into a heavy model at test time. Using DINOv2 offline just to generate spatial cluster IDs lets small CNNs or ViTs inherit foundation-model part awareness for free at inference.
  • Explicit pairing beats loose hierarchies: Unlike prior hyperbolic prototype methods (like HAPPI) that let a specific prototype attach to any generic prototype within its class, strictly locking index $k$ to part $k$ across all classes is what actually forces true cross-class anatomical alignment.

Key Results

Tested across four ProtoPNet variants (ProtoPNet, ProtoConcepts, ProtoPFormer, HAPPI) and four CNN/ViT backbones (ResNet50, DenseNet161, DeiT-Small, CaiT-XXS24), the framework improved accuracy in every single configuration:

  • Classification Accuracy: Boosted accuracy by up to 10.3 percentage points (taking DenseNet161 ProtoPNet on CUB-200-2011 from 73.85% to 84.15%, and Stanford Cars from 88.16% to 91.16%).
  • Part Hierarchy Alignment: Measured via Intersection over Union (IoU) between activated regions of shared and entailed prototypes, their method jumped from ~10–11% (HAPPI baseline) to 74.77% on CUB-200-2011 and 62.29% on Stanford Cars.
  • Interpretability Metrics: On EvalProtoPNet (CUB-200-2011), it improved Consistency (68.9% $\rightarrow$ 85.0%), Stability (53.4% $\rightarrow$ 59.1%), Distinctiveness (52.4% $\rightarrow$ 79.2%), and Comprehensiveness (34.6% $\rightarrow$ 43.8%).
Visual alignment of shared and class-specific bird part prototypes across species

Limitations and Future Work

  • Reliance on DINOv2's pre-training: Because pseudo part IDs come from clustering DINOv2 features, the pipeline may struggle in specialized domains where general foundation models are weak—such as medical imaging, remote sensing, or industrial inspection. Extending there will require domain-adapted foundation models or new part-ID strategies.
  • Assumes shared anatomy: The framework assumes every class shares the exact same pool of parts (all birds have beaks and wings; all cars have wheels and windshields). Applying this to coarse-grained datasets like ImageNet—where sharks, toasters, and trucks share no common anatomy—would require extra machinery, such as grouping classes into super-classes first.

Summary updated

Abstract

In fine-grained image recognition, semantic parts (e.g., wings, head) recur across classes while discriminative cues lie in within-part features (e.g., yellow wings, striped wings). The prototypical part network (ProtoPNet) is an interpretable model that provides case-based explanations for image recognition by measuring similarities between local patches in an images and their closest prototypes representing patches in a training set. However, existing ProtoPNet variants do not explicitly model this two-level structure, causing prototypes for the same anatomical part to fragment across classes. We propose a hierarchical prototype learning framework that separates shared prototypes capturing cross-class part concepts from class-specific prototypes capturing intra-part features. To model this hierarchy geometrically, prototypes are embedded in hyperbolic space and an entailment loss constrains each class-specific prototype to lie within the cone of its corresponding shared prototype. To prevent degenerate trivial solutions such as redundant prototypes, we introduce a patch-level contrastive learning using pseudo patch IDs from a vision foundation model, used only at training time, leaving the backbone choice free at inference. Unlike prior hyperbolic prototype methods where prototype hierarchies are uncontrolled, our framework defines explicit shared part to intra-part feature correspondences. Across four ProtoPNet variants and four backbones on CUB-200-2011 and Stanford Cars, our method improves classification accuracy by up to 10 points, raises hierarchical part hierarchy IoU from 11\% to 75\%, and consistently improves four interpretability metrics on CUB-200-2011.
BibTeX
@inproceedings{sano2026hierarchical,
  author = {Keisuke Sano and Takayoshi Yamashita and Hironobu Fujiyoshi},
  title = {{Hierarchical Cross-Class Part Alignment for Prototypical Part Networks via Hyperbolic Entailment}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Jn0nBdpogW},
}
Figure