ProtoPatchNet: An Interpretable Patch-Based Prototypical Network

Mohana Singh, Vivek B. S., Jayavardhana Gubbi, R. Venkatesh BabuWorkshops @ CVPR 2025

Abstract

ProtoPatchNet is a novel deep learning architecture designed to provide transparent decision-making in medical imaging. By comparing regions of a test image to specific "learned patches" of representative disease cases, the model achieves state-of-the-art accuracy in glaucoma detection. Unlike previous methods that rely on ambiguous approximations, ProtoPatchNet is interpretable by design, allowing clinicians to visualize the exact image features—such as the optic cup or retinal vessels—that drive a diagnosis.

Introduction

In high-stakes fields like healthcare, the "black-box" nature of standard AI models often hinders trust and adoption. To address this, researchers have turned to prototype-based models, which classify images by finding similarities to "prototypes" (idealized examples of a class). However, existing models face two major challenges: global models struggle to pinpoint small pathological features, and part-based models (like ProtoPNet) often use mathematically ambiguous "nearest neighbor" approximations for visualization. ProtoPatchNet solves these issues by creating an end-to-end trainable model that visualizes the actual learned patches used in the decision-making process.

Methods

The ProtoPatchNet architecture consists of several integrated components designed for both performance and transparency:

  • Prototype Generation: The model utilizes a frozen generator from a pre-trained Variational Autoencoder (VAE) to transform learnable vectors into full-sized prototype images.
  • Differentiable Patch Selection: A specialized module employs a "Top-K" operator to automatically identify the $K$ most relevant patches within the generated prototype images, focusing on critical anatomical parts.
  • Shared Feature Extraction: Both the input test image and the selected prototype patches are processed through a shared backbone (e.g., ResNet50 or MobileNetV2) to ensure comparison in a consistent latent space.
  • Similarity Scoring: The model calculates cosine similarity between test image features and prototype patch features. These scores are aggregated by fully connected layers to produce the final classification.
The ProtoPatchNet architecture showing the end-to-end pipeline from prototype generation to similarity scoring.

Datasets and Evaluation

The model was evaluated on the challenge of glaucoma detection using two primary datasets:

  1. RIM-ONE DL: A benchmark dataset containing 313 normal and 172 glaucoma fundus images.
  2. AIROGS$_{sub}$: A larger subset of the Rotterdam EyePACS AIROGS dataset used for pre-training to establish a solid baseline for retinal image understanding.

Results and Clinical Insights

ProtoPatchNet achieved an accuracy of 95.9% on the RIM-ONE DL dataset (using a MobileNetV2 backbone), matching or exceeding the performance of uninterpretable black-box models. It significantly outperformed previous part-based models like ProtoPNet, which often struggled with the complexity of medical images.

Beyond accuracy, the model demonstrated high clinical relevance. Visualizations show that the model naturally learned to focus on the optic cup and retinal vessels—the same features used by human ophthalmologists. For normal eyes, the model identifies vessel entry points, while for glaucoma, it focuses on the enlarged, bright regions of the optic cup.

Visualization of learned prototypes and the top-3 patches for Normal and Glaucoma classes, demonstrating clinical interpretability.

Conclusion and Future Work

ProtoPatchNet proves that accuracy does not need to be sacrificed for interpretability. Future research will focus on reducing redundancy in overlapping patches through orthogonality constraints and improving prototype clarity by integrating more advanced generative architectures, such as Diffusion models. Additionally, the authors suggest exploring more complex reasoning layers, such as interpretable decision trees, to further enhance the model's logic.

Summary updated

BibTeX
@inproceedings{singh2025protopatchnet,
  author = {Mohana Singh and Vivek B. S. and Jayavardhana Gubbi and R. Venkatesh Babu},
  title = {{ProtoPatchNet: An Interpretable Patch-Based Prototypical Network}},
  booktitle = {Workshops @ CVPR},
  year = {2025},
}
Figure