Analyzing Vision Transformers for Image Classification in Class Embedding Space
Not on the map. Why?
Abstract (arXiv)
Despite the growing use of transformer models in computer vision, a mechanistic understanding of these networks is still needed. This work introduces a method to reverse-engineer Vision Transformers trained to solve image classification tasks. Inspired by previous research in NLP, we demonstrate how the inner representations at any level of the hierarchy can be projected onto the learned class embedding space to uncover how these networks build categorical representations for their predictions. We use our framework to show how image tokens develop class-specific representations that depend on attention mechanisms and contextual information, and give insights on how self-attention and MLP layers differentially contribute to this categorical composition. We additionally demonstrate that this method (1) can be used to determine the parts of an image that would be important for detecting the class of interest, and (2) exhibits significant advantages over traditional linear probing approaches. Taken together, our results position our proposed framework as a powerful tool for mechanistic interpretability and explainability research.
Key facts. Cited by 26 papers in the map (data through 14 Oct 2026). Builds on 20 of its 22 references that are in the map. First posted on arXiv 29 Oct 2023.
Builds on
20 of 22 references.
References · 20
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2016Understanding intermediate layers using linear classifier probescited by 1,353
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2021Scaling Vision Transformerscited by 999
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 675
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 627
- 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 623
- 2021ImageNet-21K Pretraining for the Massescited by 613
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 532
- 2021Intriguing Properties of Vision Transformerscited by 446
- 2022How Do Vision Transformers Work?cited by 307
- 2021Understanding Robustness of Transformers for Image Classificationcited by 249
8 more
- 2020Probing the Probing Paradigm: Does Probing Accuracy Entail Task Relevance?cited by 151
- 2022Analyzing Transformers in Embedding Spacecited by 132
- 2019On Identifiability in Transformerscited by 116
- 2021Large-scale Unsupervised Semantic Segmentationcited by 101
- 2023Jump to Conclusions: Short-Cutting Transformers With Linear Transformationscited by 90
- 2022What do Vision Transformers Learn? A Visual Explorationcited by 76
- 2021On Improving Adversarial Transferability of Vision Transformerscited by 70
- 2020Overinterpretation reveals image classification model pathologiescited by 28
Built on by
Citing papers per year: 2024: 14; 2025: 11; 2026: 1.
26 papers.
Sort:
By area:
- 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 422
- 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Modelscited by 235
- 2024Towards Interpreting Visual Information Processing in Vision-Language Modelscited by 122
- 2025Everything, Everywhere, All at Once: Is Mechanistic Interpretability Identifiable?cited by 34
- 2025Pixels Versus Priors: Controlling Knowledge Priors in Vision-Language Models through Visual Counterfactscited by 32
- 2024What Do VLMs NOTICE? A Mechanistic Interpretability Pipeline for Gaussian-Noise-free Text-Image Corruption and Evaluationcited by 30
- 2024Not All Diffusion Model Activations Have Been Evaluated as Discriminative Featurescited by 25
- 2025Prisma: An Open Source Toolkit for Mechanistic Interpretability in Vision and Videocited by 21
- 2024Decomposing and Interpreting Image Representations via Text in ViTs Beyond CLIPcited by 20
- 2025Block-Recurrent Dynamics in Vision Transformerscited by 20
- 2024Beyond the Doors of Perception: Vision Transformers Represent Relations Between Objectscited by 13
- 2024Looking Beyond The Top-1: Transformers Determine Top Tokens In Ordercited by 12
14 more
- 2024Position: An Inner Interpretability Framework for AI Inspired by Lessons from Cognitive Neurosciencecited by 11
- 2024LookHere: Vision Transformers with Directed Attention Generalize and Extrapolatecited by 10
- 2024Superpixel Tokenization for Vision Transformers: Preserving Semantic Integrity in Visual Tokenscited by 7
- 2025Signatures of human-like processing in Transformer forward passescited by 3
- 2025LLMs Can Compensate for Deficiencies in Visual Representationscited by 3
- 2026Self-Distillation of Hidden Layers for Self-Supervised Representation Learningcited by 3
- 2024Convolutional Neural Networks and Vision Transformers for Fashion MNIST Classification: A Literature Reviewcited by 2
- 2025CoRLD: Contrastive Representation Learning Of Deformable Shapes In Imagescited by 2
- 2025Communication Efficient Split Learning of ViTs with Attention-based Double Compressioncited by 2
- 2024FovEx: Human-Inspired Explanations for Vision Transformers and Convolutional Neural Networkscited by 1
- 2025ECG-Soup: Harnessing Multi-Layer Synergy for ECG Foundation Modelscited by 1
- 2024Unveiling Transformer Perception by Exploring Input Manifoldscited by 0
- 2025How Can Multimodal Remote Sensing Datasets Transform Classification via SpatialNet-ViT?cited by 0
- 2025CircuitProbe: Tracing Visual Temporal Evidence Flow in Video Language Modelscited by 0
- 2026Self-Distillation of Hidden Layers for Self-Supervised Representation Learning16 Mar 2026
- 2025Block-Recurrent Dynamics in Vision Transformers23 Dec 2025
- 2025Communication Efficient Split Learning of ViTs with Attention-based Double Compression18 Sep 2025
- 2025ECG-Soup: Harnessing Multi-Layer Synergy for ECG Foundation Models27 Aug 2025
- 2025CircuitProbe: Tracing Visual Temporal Evidence Flow in Video Language Models25 Jul 2025
- 2025How Can Multimodal Remote Sensing Datasets Transform Classification via SpatialNet-ViT?25 Jun 2025
- 2025LLMs Can Compensate for Deficiencies in Visual Representations5 Jun 2025
- 2025Pixels Versus Priors: Controlling Knowledge Priors in Vision-Language Models through Visual Counterfacts21 May 2025
- 2025Prisma: An Open Source Toolkit for Mechanistic Interpretability in Vision and Video28 Apr 2025
- 2025Signatures of human-like processing in Transformer forward passes18 Apr 2025
- 2025CoRLD: Contrastive Representation Learning Of Deformable Shapes In Images21 Mar 2025
- 2025Everything, Everywhere, All at Once: Is Mechanistic Interpretability Identifiable?28 Feb 2025
14 more
- 2024Superpixel Tokenization for Vision Transformers: Preserving Semantic Integrity in Visual Tokens6 Dec 2024
- 2024Looking Beyond The Top-1: Transformers Determine Top Tokens In Order26 Oct 2024
- 2024Towards Interpreting Visual Information Processing in Vision-Language Models9 Oct 2024
- 2024Unveiling Transformer Perception by Exploring Input Manifolds8 Oct 2024
- 2024Not All Diffusion Model Activations Have Been Evaluated as Discriminative Features4 Oct 2024
- 2024FovEx: Human-Inspired Explanations for Vision Transformers and Convolutional Neural Networks4 Aug 2024
- 2024What Do VLMs NOTICE? A Mechanistic Interpretability Pipeline for Gaussian-Noise-free Text-Image Corruption and Evaluation24 Jun 2024
- 2024Beyond the Doors of Perception: Vision Transformers Represent Relations Between Objects22 Jun 2024
- 2024Convolutional Neural Networks and Vision Transformers for Fashion MNIST Classification: A Literature Review5 Jun 2024
- 2024Decomposing and Interpreting Image Representations via Text in ViTs Beyond CLIP3 Jun 2024
- 2024Position: An Inner Interpretability Framework for AI Inspired by Lessons from Cognitive Neuroscience3 Jun 2024
- 2024LookHere: Vision Transformers with Directed Attention Generalize and Extrapolate22 May 2024
- 2024Mechanistic Interpretability for AI Safety -- A Review22 Apr 2024
- 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Models11 Jan 2024
- 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 422
- 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Modelscited by 235
- 2025Everything, Everywhere, All at Once: Is Mechanistic Interpretability Identifiable?cited by 34
- 2025Prisma: An Open Source Toolkit for Mechanistic Interpretability in Vision and Videocited by 21
- 2025Prisma: An Open Source Toolkit for Mechanistic Interpretability in Vision and Video28 Apr 2025
- 2025Everything, Everywhere, All at Once: Is Mechanistic Interpretability Identifiable?28 Feb 2025
- 2024Mechanistic Interpretability for AI Safety -- A Review22 Apr 2024
- 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Models11 Jan 2024
- 2024Towards Interpreting Visual Information Processing in Vision-Language Modelscited by 122
- 2025Pixels Versus Priors: Controlling Knowledge Priors in Vision-Language Models through Visual Counterfactscited by 32
- 2024What Do VLMs NOTICE? A Mechanistic Interpretability Pipeline for Gaussian-Noise-free Text-Image Corruption and Evaluationcited by 30
- 2025LLMs Can Compensate for Deficiencies in Visual Representationscited by 3
- 2025LLMs Can Compensate for Deficiencies in Visual Representations5 Jun 2025
- 2025Pixels Versus Priors: Controlling Knowledge Priors in Vision-Language Models through Visual Counterfacts21 May 2025
- 2024Towards Interpreting Visual Information Processing in Vision-Language Models9 Oct 2024
- 2024What Do VLMs NOTICE? A Mechanistic Interpretability Pipeline for Gaussian-Noise-free Text-Image Corruption and Evaluation24 Jun 2024
- 2024Decomposing and Interpreting Image Representations via Text in ViTs Beyond CLIPcited by 20
- 2025Block-Recurrent Dynamics in Vision Transformerscited by 20
- 2024Beyond the Doors of Perception: Vision Transformers Represent Relations Between Objectscited by 13
- 2024Looking Beyond The Top-1: Transformers Determine Top Tokens In Ordercited by 12
- 2024Position: An Inner Interpretability Framework for AI Inspired by Lessons from Cognitive Neurosciencecited by 11
- 2024LookHere: Vision Transformers with Directed Attention Generalize and Extrapolatecited by 10
- 2024Superpixel Tokenization for Vision Transformers: Preserving Semantic Integrity in Visual Tokenscited by 7
- 2025Signatures of human-like processing in Transformer forward passescited by 3
- 2024Convolutional Neural Networks and Vision Transformers for Fashion MNIST Classification: A Literature Reviewcited by 2
- 2025CoRLD: Contrastive Representation Learning Of Deformable Shapes In Imagescited by 2
- 2025Communication Efficient Split Learning of ViTs with Attention-based Double Compressioncited by 2
- 2024FovEx: Human-Inspired Explanations for Vision Transformers and Convolutional Neural Networkscited by 1
12 most cited of 16 All 16 (JSON)
- 2025Block-Recurrent Dynamics in Vision Transformers23 Dec 2025
- 2025Communication Efficient Split Learning of ViTs with Attention-based Double Compression18 Sep 2025
- 2025ECG-Soup: Harnessing Multi-Layer Synergy for ECG Foundation Models27 Aug 2025
- 2025CircuitProbe: Tracing Visual Temporal Evidence Flow in Video Language Models25 Jul 2025
- 2025How Can Multimodal Remote Sensing Datasets Transform Classification via SpatialNet-ViT?25 Jun 2025
- 2025Signatures of human-like processing in Transformer forward passes18 Apr 2025
- 2025CoRLD: Contrastive Representation Learning Of Deformable Shapes In Images21 Mar 2025
- 2024Superpixel Tokenization for Vision Transformers: Preserving Semantic Integrity in Visual Tokens6 Dec 2024
- 2024Looking Beyond The Top-1: Transformers Determine Top Tokens In Order26 Oct 2024
- 2024Unveiling Transformer Perception by Exploring Input Manifolds8 Oct 2024
- 2024FovEx: Human-Inspired Explanations for Vision Transformers and Convolutional Neural Networks4 Aug 2024
- 2024Beyond the Doors of Perception: Vision Transformers Represent Relations Between Objects22 Jun 2024
12 newest of 16 All 16 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2023A Simple Interpretable Transformer for Fine-Grained Image Classification and Analysis
- 2026Interpretable Vision Transformers in Image Classification via SVDA
- 2024Decompose the model: Mechanistic interpretability in image models with Generalized Integrated Gradients (GIG)
- 2025Analyzing Hierarchical Structure in Vision Models with Sparse Autoencoders
- 2024Understanding the Effect of using Semantically Meaningful Tokens for Visual Representation Learning
- 2025DEXTER: Diffusion-Guided EXplanations with TExtual Reasoning for Vision Models
- 2026Sparse but not Simpler: A Multi-Level Interpretability Analysis of Vision Transformers
- 2025PictSure: Pretraining Embeddings Matters for In-Context Learning Image Classifiers