Tell me why: Visual foundation models as self-explainable classifiers

Hugues Turbé, Mina Bjelogrlic, Gianmarco Mengaldo, Christian LovisarXiv 2025

Abstract

Visual foundation models (VFMs) have become increasingly popular due to their state-of-the-art performance. However, interpretability remains crucial for critical applications. In this sense, self-explainable models (SEM) aim to provide interpretable classifiers that decompose predictions into a weighted sum of interpretable concepts. Despite their promise, recent studies have shown that these explanations often lack faithfulness. In this work, we combine VFMs with a novel prototypical architecture and specialized training objectives. By training only a lightweight head (approximately 1M parameters) on top of frozen VFMs, our approach (ProtoFM) offers an efficient and interpretable solution. Evaluations demonstrate that our approach achieves competitive classification performance while outperforming existing models across a range of interpretability metrics derived from the literature.

Introduction

Deep learning models are notoriously opaque. In high-stakes fields like medicine or remote sensing, knowing that a model is right isn't enough; we need to know why. Current solutions generally fall into two camps: post-hoc methods (like SHAP or LIME) that explain a model after training, and Self-Explainable Models (SEMs) designed to be interpretable by construction, often using "prototypes" (e.g., "this looks like a bird's beak").

However, existing SEMs suffer from two major flaws: semantic gaps (a prototype might represent different concepts across images) and spatial misalignment (the model highlights the wrong area for a concept). Furthermore, most SEMs have struggled to effectively leverage the massive power of modern Visual Foundation Models (VFMs) without compromising their interpretability.

Methods

ProtoFM combines the representational power of frozen VFMs (like DINOv2 or OpenCLIP) with a novel prototypical head. By keeping the VFM frozen, ProtoFM leverages high-quality local features while remaining highly efficient, requiring only ~1M trainable parameters.

Overview of the ProtoFM architecture, illustrating the Extract, Project, Classify, and Display stages.

Key technical innovations include:

  • Student-Teacher Alignment: A framework that forces the model to assign the same prototypes to different augmented views of the same image, ensuring concept stability.
  • Positive-Weight Linear Head: The final classification is a simple weighted sum of prototype activations with weights constrained to be positive, ensuring that the presence of a concept directly contributes to a class prediction.
  • Sparsity & Contrastive Losses: These objectives ensure the model uses a small, distinct set of prototypes for each prediction, preventing "explanation clutter."

Results and Discussion

ProtoFM was evaluated across diverse benchmarks, including CUB-200-2011 (birds), Stanford Cars, and the RSNA pneumonia detection dataset. To mathematically verify faithfulness, the authors used FunnyBirds, a synthetic dataset with ground-truth part annotations.

Qualitative results showing ProtoFM's ability to decompose predictions into interpretable prototypes with associated importance scores and the SEC metric.

Key findings include:

  • Performance and Efficiency: On the CUB dataset, ProtoFM achieved 86.3% accuracy, rivaling the non-interpretable DINOv2 baseline (89.6%) while training only 1.3M parameters.
  • Interpretability SOTA: On the FunnyBirds benchmark, ProtoFM achieved a mean explainability score (mX) of 0.92, outperforming all 24 combinations of models and post-hoc methods previously evaluated in the literature.
  • Score Explained by Composition (SEC): The authors introduced the SEC metric to measure how much of the model's "certainty" is actually visible to the user. ProtoFM ensures that the displayed prototypes account for a significant portion of the final prediction score.
  • Stability: ProtoFM scored 0.99 on stability metrics, meaning its explanations remain consistent even when input images are slightly perturbed.

Conclusion

ProtoFM demonstrates that VFMs are "interpretability-ready." By using them as frozen backbones with a specialized prototypical head, we can achieve competitive accuracy with superior transparency. Future work includes incorporating textual descriptions for prototypes via Large Language Models (LLMs) and further closing the gap between human-level concept consistency and model-level prototype assignment.

Summary updated

BibTeX
@misc{turbe2025tell,
  author = {Hugues Turbé and Mina Bjelogrlic and Gianmarco Mengaldo and Christian Lovis},
  title = {{Tell me why: Visual foundation models as self-explainable classifiers}},
  year = {2025},
  eprint = {2502.19577},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.19577},
}
Figure