Disentangling Visual Transformers: Patch-level Interpretability for Image Classification

Guillaume Jeanneret, Loïc Simon, Frédéric Jurie
2/24/2025
cs.CVcs.AI

No official code found. Best implementation: guillaumejs2403/HiT (1 star, Apache-2.0, last commit 2025-05-20).

Abstract

Visual transformers have achieved remarkable performance in image classification tasks, but this performance gain has come at the cost of interpretability. One of the main obstacles to the interpretation of transformers is the self-attention mechanism, which mixes visual information across the whole image in a complex way. In this paper, we propose Hindered Transformer (HiT), a novel interpretable by design architecture inspired by visual transformers. Our proposed architecture rethinks the design of transformers to better disentangle patch influences at the classification stage. Ultimately, HiT can be interpreted as a linear combination of patch-level information. We show that the advantages of our approach in terms of explicability come with a reasonable trade-off in performance, making it an attractive alternative for applications where interpretability is paramount.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

"Disentangling Visual Transformers: Patch-level Interpretability for Image Classification" CVPRW2025 Official Code

10PythonApr 7, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{jeanneret2025disentangling,
  title  = {Disentangling Visual Transformers: Patch-level Interpretability for Image Classification},
  author = {Guillaume Jeanneret and Loïc Simon and Frédéric Jurie},
  year   = {2025},
  eprint = {2502.17196},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.17196v2}
}

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/2502.17196.svg)](https://codeofpaper.com/paper/2502.17196)

Discussion