bioRxivBioinformaticsPreprint
Benchmarking attention-based methods for vision transformers' interpretability in retinal fundus imaging
Sacha BorsiD, Michael BeyeleriD, Olga TrofimovaiD, David M. PresbyiD, Dennis BontempiiD, Sven BergmanniD
Abstract
Deep learning models based on Vision Transformers (ViTs) have shown strong performance in retinal fundus imaging, but their interpretability remains poorly understood. In particular, attention-based attribution methods are widely used to explain ViT predictions, despite limited evaluation of their faithfulness and biological relevance in medical imaging. Here, we systematically benchmark four attention-based interpretability methods for RETFound, a retinal ViT-based foundation model, that we previously fine-tuned to predict 17 retinal vascular phenotypes from UK Biobank fundus images1. We compare raw attention, attention rollout, gradient-weighted attention rollout, and Chefers hybrid relevance-based method using both qualitative visualisation and quantitative evaluation frameworks. To assess attribution faithfulness, we perform perturbation-based deletion and insertion experiments, quantifying changes in model predictions as highly attended image regions are progressively removed or restored. To evaluate biological specificity, we run structure-aware analyses combining attribution maps with vessel segmentation and artery-vein labels through the Relative ratio of Attention Intensity (RAI) metric. Across models, attribution maps differed substantially depending on the selected interpretability method, highlighting the need for rigorous quantitative evaluation. Among the evaluated approaches, gradient-weighted attention rollout consistently achieved the strongest perturbation performance and produced attribution maps most closely aligned with the anatomical definition of the predicted retinal traits. Furthermore, vessel-type specific models systematically concentrate attention on the corresponding vascular structures despite being trained using only a single scalar value per image as supervision. These findings demonstrate that attention-based attribution methods capture biologically meaningful vascular representations, while also revealing method-dependent variability in attribution behaviour. This work provides a quantitative framework for evaluating interpretability methods in medical imaging with annotated segmentation and contributes toward more transparent and biologically grounded medical AI systems.
- Citations
- 0
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Quantifying Interpretation Reproducibility in Vision Transformer Models with TAVAC
Yue Zhao, Dylan Agyemang, … Sheng Li·Science AdvancesPeer-reviewed·Dec 20, 2024
- Attcatvgg-Net: an Explainable Multioutput Deep Learning Framework for Cataract Stage Classification and Visual Acuity Regression using Multicolor Fundus Images
Mostafa Nazarpour-Servak, Neda Taghinezhad, … Mohammad Hossein Nowroozzadeh·bioRxiv·Oct 25, 2025
- Comparing tangible retinal image characteristics with deep learning features reveals their complementarity for gene association and disease prediction
Michael J. Beyeler, Olga Trofimova, … Sven Bergmann·medRxiv·Dec 23, 2024
- Foveation as self-supervision signal: Blur masks beat blank masks for learning robust visual representations
Akihito Maruya, Hossein Adeli Jelodar, … Ning Qian A·bioRxiv·Oct 1, 2026
- Retinal Vessels Detection Using Convolutional Neural Networks in Fundus Images
Md. Mohaimenul Islam, Tahmina Nasrin Poly, Yu‐Chuan Li·bioRxiv·Aug 16, 2019
- CVAE-based Causal Representation Learning from Retinal Fundus Images for Age Related Macular Degeneration(AMD) Prediction
D. W. Kim·bioRxiv·Feb 13, 2025