Instability and Explanation Discrepancies Between CNNs and Vision Transformers in Keratoconus Detection

The stability and reliability of explainable artificial intelligence (XAI) explanations are unclear, despite the growing use of XAI. In this study, we evaluate the stability and faithfulness of class-activation mapping (CAM)-based explanations from CNNs and vision transformers (ViTs) when classifying keratoconus using corneal topography. CNNs (ResNet-50) and ViTs (B/16) were trained on a public dataset of corneal topography images classified as normal, suspect, or keratoconus. Grad-CAM was used for CNN, and Integrated Gradients (IG) was used for ViT to generate heat/attribution maps displaying regions important to a model’s diagnosis. Explanation reliability was measured with CAM/IG instability, structural similarity index (SSIM), confidence with CAM/IG and random pixel removal, and explanation dispersion values (EDV). CNN CAM instability was high (0.84 normal, 0.45 suspect, 0.71 keratoconus), but ViT IG instability was low (0.22 normal, 0.24 suspect, 0.23 keratoconus). Explanation agreement between models was low (SSIM = 0.29). CNN prediction confidence was more sensitive to the removal of CAM regions compared to random ones (0.110 vs. 0.339), while ViT had no significant difference (0.382 vs. 0.354). EDV values were lower for ViT (-0.019) compared to CNN (0.135). The CNN's faithfulness was higher since its confidence was more sensitive to CAM vs. random removal, while ViT explanations exhibited less variability but lower faithfulness. These findings suggest that CAM/IG reliability is architecture-dependent, and XAI should be evaluated before clinical use.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-01-04
DOI
https://doi.org/10.5281/zenodo.18102671
Primary Topic
Corneal surgery and disorders
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Instability and Explanation Discrepancies Between CNNs and Vision Transformers in Keratoconus Detection

Shankar Harikrishnan
Zenodo (CERN European Organization for Nuclear Research)
Corneal surgery and disorders
article

Instability and Explanation Discrepancies Between CNNs and Vision Transformers in Keratoconus Detection

Shankar Harikrishnan
article en

Abstract

The stability and reliability of explainable artificial intelligence (XAI) explanations are unclear, despite the growing use of XAI. In this study, we evaluate the stability and faithfulness of class-activation mapping (CAM)-based explanations from CNNs and vision transformers (ViTs) when classifying keratoconus using corneal topography. CNNs (ResNet-50) and ViTs (B/16) were trained on a public dataset of corneal topography images classified as normal, suspect, or keratoconus. Grad-CAM was used for CNN, and Integrated Gradients (IG) was used for ViT to generate heat/attribution maps displaying regions important to a model’s diagnosis. Explanation reliability was measured with CAM/IG instability, structural similarity index (SSIM), confidence with CAM/IG and random pixel removal, and explanation dispersion values (EDV). CNN CAM instability was high (0.84 normal, 0.45 suspect, 0.71 keratoconus), but ViT IG instability was low (0.22 normal, 0.24 suspect, 0.23 keratoconus). Explanation agreement between models was low (SSIM = 0.29). CNN prediction confidence was more sensitive to the removal of CAM regions compared to random ones (0.110 vs. 0.339), while ViT had no significant difference (0.382 vs. 0.354). EDV values were lower for ViT (-0.019) compared to CNN (0.135). The CNN's faithfulness was higher since its confidence was more sensitive to CAM vs. random removal, while ViT explanations exhibited less variability but lower faithfulness. These findings suggest that CAM/IG reliability is architecture-dependent, and XAI should be evaluated before clinical use.

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 99%
Corneal surgery and disorders
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.