Improving Interpretation Faithfulness for Vision Transformers

Lijie Hu, Yixin Liu, Ninghao Liu, Mengdi Huai, Lichao Sun +1 more
2/12/2026

No official code found. Best implementation: aerdelez/re-fvit (1 star, MIT, last commit 2025-06-06). 1 more below.

Abstract

Vision Transformers (ViTs) have achieved state-of-the-art performance for various vision tasks. One reason behind the success lies in their ability to provide plausible innate explanations for the behavior of neural architectures. However, ViTs suffer from issues with explanation faithfulness, as their focal points are fragile to adversarial attacks and can be easily changed with even slight perturbations on the input image. In this paper, we propose a rigorous approach to mitigate these issues by introducing Faithful ViTs (FViTs). Briefly speaking, an FViT should have the following two properties: (1) The top-$k$ indices of its self-attention vector should remain mostly unchanged under input perturbation, indicating stable explanations; (2) The prediction distribution should be robust to perturbations. To achieve this, we propose a new method called Denoised Diffusion Smoothing (DDS), which adopts randomized smoothing and diffusion-based denoising. We theoretically prove that processing ViTs directly with DDS can turn them into FViTs. We also show that Gaussian noise is nearly optimal for both $\ell_2$ and $\ell_\infty$-norm cases. Finally, we demonstrate the effectiveness of our approach through comprehensive experiments and evaluations. Results show that FViTs are more robust against adversarial attacks while maintaining the explainability of attention, indicating higher faithfulness.

View on arXivView PDF

Code Implementations(2)

meherc99/FViTReproCommunity61%
MIT

Reproducibility study of the ICML 2024 paper "Improving Interpretation Faithfulness For Vision Transformers" by Hu et al.

00Python, Jupyter NotebookJun 20, 20251 years agoMIT
aerdelez/re-fvitCommunity57%
MIT

Code repository for the TMLR paper [Re] Improving Interpretation Faithfulness for Vision Transformers.

10Shell, PythonJan 2, 20251 years agoMIT

Similar Papers

Cite this paper

@article{hu2026improving,
  title  = {Improving Interpretation Faithfulness for Vision Transformers},
  author = {Lijie Hu and Yixin Liu and Ninghao Liu and Mengdi Huai and Lichao Sun and Di Wang},
  year   = {2026},
  eprint = {2311.17983},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2311.17983},
  journal = {ICML 2023 2023}
}

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

Discussion