ProtoS-ViT: Visual foundation models for sparse self-explainable classifications
Hugues Turbé, Mina Bjelogrlic, Gianmarco Mengaldo, Christian Lovis
TL;DR
The paper addresses explainability gaps in prototypical-part networks by introducing a rigorous evaluation framework and identifying shortcomings in existing methods. It presents ProtoS-ViT, a self-explainable classifier that freezes a Vision Transformer backbone and learns a compact set of prototypes $J$, each of dimension $D$, with patch-level embeddings $g_i$ and cosine similarities $S_{i,j}=\cos \langle g_i, p_j\rangle$. A novel prototypical head computes per-prototype scores $h_j$ via depthwise convolutions with independent kernels and multi-scale paths, feeding a positive-weight linear classifier to produce class predictions. Across eight general datasets and biomedical tasks, ProtoS-ViT achieves competitive accuracy while improving explanation metrics such as correctness, completeness, consistency, and contrastivity, aided by the Hoyer-Square sparsity loss and the tanh loss, and validated with ablations and user studies.
Abstract
Prototypical networks aim to build intrinsically explainable models based on the linear summation of concepts. Concepts are coherent entities that we, as humans, can recognize and associate with a certain object or entity. However, important challenges remain in the fair evaluation of explanation quality provided by these models. This work first proposes an extensive set of quantitative and qualitative metrics which allow to identify drawbacks in current prototypical networks. It then introduces a novel architecture which provides compact explanations, outperforming current prototypical models in terms of explanation quality. Overall, the proposed architecture demonstrates how frozen pre-trained ViT backbones can be effectively turned into prototypical models for both general and domain-specific tasks, in our case biomedical image classifiers. Code is available at \url{https://github.com/hturbe/protosvit}.
