NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ProtoS-ViT: Visual foundation models for sparse self-explainable classifications

Hugues Turbe, Mina Bjelogrlic, Gianmarco Mengaldo, Christian Lovis

TL;DR

ProtoS-ViT turns frozen Vision Transformer (ViT) foundation models into self-explainable classifiers by attaching a lightweight, sparse prototypical head. By enforcing true spatial locality and cross-class prototype sharing, it slashes prototype counts from thousands down to fewer than 60 while matching state-of-the-art accuracy and achieving top-tier explanation quality across general and biomedical vision benchmarks.

What Problem Does This Paper Address?

Prototypical part networks (such as ProtoPNet) are self-explainable models (SEMs) designed to classify an image by detecting interpretable visual concepts ("prototypes") and combining them linearly. In theory, they answer "why was this image classified as X?" by pointing to recognizable patches (e.g., a specific bird beak).

In practice, existing prototypical networks suffer from several critical failure modes:

  1. Spatial misalignment ("Here does not correspond to there"): Because deep convolutional backbones have large receptive fields, an activation map highlighting a specific patch often encodes features from the entire image rather than local information.
  2. Prototype explosion: Many models require hundreds to thousands of prototypes (e.g., up to 8,000 global prototypes), destroying human interpretability.
  3. Flawed evaluations: Standard benchmarks often evaluate explanation consistency using crude bounding boxes on natural images or introduce human prior bias (such as penalizing a model for attending to a bird's natural habitat).

Methods

ProtoS-ViT tackles these limitations through a minimalist architectural design and explicit sparsity constraints:

Input Image ──► [ Frozen ViT Backbone (DINOv2 / OpenCLIP) ] 
                        │
                        ▼
                [ 1x1 Residual Projection Head ]  (Preserves patch-level locality)
                        │
                        ▼
                [ Cosine Similarity + Softmax ]   (Matches patches to prototypes)
                        │
                        ▼
                [ Prototypical Head ]             (Depthwise 1x1 & 3x3 convs + LayerNorm + Max)
                        │
                        ▼
                [ Constrained Linear Head (W ≥ 0) ] ──► Class Prediction
  • Frozen Foundation Backbones: Uses pre-trained self-supervised ViTs (such as DINOv2 or BioMedCLIP). By freezing the backbone and restricting projection convolutions to a $1 \times 1$ kernel, the network preserves the spatial alignment native to ViT patch tokens.
  • Multi-Scale Depthwise Prototypical Head: Standard architectures simply take the maximum activation across an image for each prototype (max_i S_ij). ProtoS-ViT introduces prototype-independent depthwise convolutions ($1 \times 1$ and $3 \times 3$ kernels) to model prototype presence and scale without mixing distinct prototypes.
  • Compactness Losses: Encourages extreme sparsity via the Hoyer-Square (HS) regularizer on the classification importance matrix alongside a batch-level tanh-loss that prevents prototype collapse during early training.
  • Rigorous Evaluation on FunnyBirds: Uses the synthetic FunnyBirds benchmark—which offers precise part-level segmentations—to rigorously evaluate completeness, correctness, contrastivity, and stability.

Datasets

The authors evaluate the model across a wide range of tasks:

  • General fine-grained benchmarks: CUB-200-2011 (birds), Stanford Cars, and Oxford-IIIT Pets.
  • Biomedical imaging: ISIC 2019 (dermoscopy skin lesions), RSNA Pneumonia Detection (chest X-rays), and LC25000 (histopathology lung cancer).
  • Interpretability benchmark: FunnyBirds (a synthetic dataset of 50 bird species with ground-truth segmentations of 5 distinct body parts).

Key Insights and Ideas

  • Freezing the backbone preserves grounding: Training backbones end-to-end often improves classification accuracy marginally, but it degrades explanation consistency and spatial alignment. Keeping foundation ViTs frozen ensures patch embeddings correspond strictly to local semantics.
  • SOTA models can fail contrastivity: PIP-Net achieved near-zero contrastivity on FunnyBirds; its prototype activations highlighted generic patches that did not isolate discriminative bird parts, functioning as non-local shortcuts.
  • Concept sharing across classes: Rather than reserving separate prototypes for each class, ProtoS-ViT learns shared visual primitives. Correlating classification weights reveals that related species (e.g., different sparrow or woodpecker subspecies) reuse the exact same prototypes, mimicking human conceptual taxonomy.

Key Results

  • Extreme Compactness: On CUB, ProtoS-ViT uses only 39 global prototypes (and an average of 6 per image) while achieving 85.2% accuracy, compared to ST-ProtoPNet's 8,000 global prototypes at 86.1% accuracy and PIP-Net's 495 prototypes at 84.3%. On Stanford Cars, it achieves 93.5% accuracy using just 54 prototypes.
  • Explanation Quality: On the FunnyBirds benchmark, ProtoS-ViT attains a mean explainability score ($\text{mX}$) of 0.84 (vs. 0.62 for ST-ProtoPNet and 0.41 for PIP-Net) and a contrastivity score of 99% (vs. 1% for PIP-Net).
  • Biomedical Viability: Matches or exceeds baseline performance on medical tasks (77.5% on ISIC; 82.8% on RSNA; 100% on LC25000) with 9 to 21 total prototypes.
  • Human Alignment: In user studies on FunnyBirds, 21 out of 25 evaluated prototypes showed 100% visual consistency with specific, ground-truth biological parts.

Limitations and Future Work

  • Robustness compensation under single-part deletion: The model achieved a moderate score (0.61) on the single-deletion metric. When a part is masked, the remaining prototypes increase their weights to compensate, which penalizes the metric despite preserving correct classification.
  • Spurious "negative" prototypes: On chest X-rays (RSNA), prototypes representing the absence of pneumonia activated in background tissue outside the lungs, effectively serving as an ungrounded bias term.
  • End-to-end fine-tuning trade-offs: Future research is needed to explore how foundation model backbones can be fine-tuned end-to-end without compromising their native spatial alignment.

Summary updated

BibTeX
@inproceedings{turbe2024protos,
  author = {Hugues Turbe and Mina Bjelogrlic and Gianmarco Mengaldo and Christian Lovis},
  title = {{ProtoS-ViT: Visual foundation models for sparse self-explainable classifications}},
  booktitle = {InterpretableAI @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=xP1ROUJoyt},
}
Figure