atlas

Research map / Architectures and efficiency / Attention and transformers

Token Transformation Matters: Towards Faithful Post-hoc Explanation for Vision Transformer

CVPR 2024 · Architectures and efficiency › Attention and transformers · approach: Efficient and robust vision transformers · 13 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes TokenTM, a post-hoc explanation method for Vision Transformers that combines attention weights with a token transformation measure (relative length and cosine direction correlation) aggregated across all layers.

Problem

Existing post-hoc explanation methods for Vision Transformers use only attention weights and ignore how transformations of tokens change their contributions, leading to unfaithful explanations.

Approach

Reinterpret MHSA and FFN outputs as weighted sums of original and transformed tokens, measure token transformation via relative L2 length change and normalized exponential cosine correlation, and aggregate these weights with attention across layers via initialization and layer-wise update rules.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add TokenTM's token-transformation measurement and aggregation frameworkDeiT explanation method · ImageNet-SegmIoU: 61.56 -> 64.22Helped
add TokenTM's token-transformation measurement and aggregation frameworkDeiT explanation method · CIFAR-10, predicted labelAUC negative perturbation: 71.67 -> 74.90Helped
add TokenTM's token-transformation measurement and aggregation frameworkDeiT explanation method · CIFAR-100, predicted labelAUC positive perturbation: 17.52 -> 16.07Helped
add TokenTM's token-transformation measurement and aggregation frameworkDeiT explanation method · ImageNet, predicted labelAUC negative perturbation: 57.53 -> 58.12Helped
add TokenTM's token-transformation measurement and aggregation frameworkViT-B · Impact on probabilityAOPC: 0.721 -> 0.764Helped
add aggregation framework (AF) (ablation)Baseline explanation method on ViT-B · ImageNetPixel accuracy: 52.94 -> 76.30Helped
add relative length measurement to AF (ablation)Baseline + AF on ViT-B · ImageNetPixel accuracy: 76.30 -> 77.50Helped
add NECC to AF and relative length measurement (ablation)Baseline + AF + L on ViT-B · ImageNetPixel accuracy: 77.50 -> 78.22Helped
aggregate more Transformer layers (ablation)TokenTM on ViT-B · ImageNetPixel accuracy: 63.63 -> 68.38 -> 70.46 -> 78.22Helped
aggregate more Transformer layers (ablation)TokenTM on ViT-B · ImageNetAUC positive perturbation: 22.57 -> 20.17 -> 19.24 -> 16.18Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-Segmentation CIFAR-10 CIFAR-100 ImageNet

Benchmarks: ImageNet-Segmentation CIFAR-10 CIFAR-100 ImageNet

Metrics: Pixel accuracy mIoU mAP Negative/positive perturbation AUC AOPC LOdds

Baselines: Grad-CAM LRP Conservative LRP Transformer Attribution Raw Attention Rollout ATTCAT GAE

Builds on: Transformer attention rollout Generic Attention Explainability (GAE) Transformer Attribution Normalized Exponential Cosine Correlation

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy