PiPViT: Patch-based Visual Interpretable Prototypes for Retinal Image Analysis

Marzieh Oghbaie, Teresa Araújo, Hrvoje Bogunović
6/12/2025
6 citations
cs.CVcs.AI
transformer-attention

Official code: marziehoghbaie/PiPViT (5 stars, Python, last commit 2026-01-20).

Abstract

Background and Objective: Prototype-based methods improve interpretability by learning fine-grained part-prototypes; however, their visualization in the input pixel space is not always consistent with human-understandable biomarkers. In addition, well-known prototype-based approaches typically learn extremely granular prototypes that are less interpretable in medical imaging, where both the presence and extent of biomarkers and lesions are critical.

Show full abstract

Methods: To address these challenges, we propose PiPViT (Patch-based Visual Interpretable Prototypes), an inherently interpretable prototypical model for image recognition. Leveraging a vision transformer (ViT), PiPViT captures long-range dependencies among patches to learn robust, human-interpretable prototypes that approximate lesion extent only using image-level labels. Additionally, PiPViT benefits from contrastive learning and multi-resolution input processing, which enables effective localization of biomarkers across scales. Results: We evaluated PiPViT on retinal OCT image classification across four datasets, where it achieved competitive quantitative performance compared to state-of-the-art methods while delivering more meaningful explanations. Moreover, quantitative evaluation on a hold-out test set confirms that the learned prototypes are semantically and clinically relevant. We believe PiPViT can transparently explain its decisions and assist clinicians in understanding diagnostic outcomes. Github page: https://github.com/marziehoghbaie/PiPViT

View on arXivView PDF

Code Implementations(1)

PiPViT: Patch-based Visual Interpretable Prototypes for Retinal Image Analysis

50Python, ShellJun 12, 202510 months ago

Similar Papers

Cite this paper

@article{oghbaie2025pipvit,
  title  = {PiPViT: Patch-based Visual Interpretable Prototypes for Retinal Image Analysis},
  author = {Marzieh Oghbaie and Teresa Araújo and Hrvoje Bogunović},
  year   = {2025},
  eprint = {2506.10669},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.10669v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.10669.svg)](https://codeofpaper.com/paper/2506.10669)

Discussion