Beyond the Doors of Perception: Vision Transformers Represent Relations Between Objects
Not on the map. Why?
Abstract (arXiv)
Though vision transformers (ViTs) have achieved state-of-the-art performance in a variety of settings, they exhibit surprising failures when performing tasks involving visual relations. This begs the question: how do ViTs attempt to perform tasks that require computing visual relations between objects? Prior efforts to interpret ViTs tend to focus on characterizing relevant low-level visual features. In contrast, we adopt methods from mechanistic interpretability to study the higher-level visual algorithms that ViTs use to perform abstract visual reasoning. We present a case study of a fundamental, yet surprisingly difficult, relational reasoning task: judging whether two visual entities are the same or different. We find that pretrained ViTs fine-tuned on this task often exhibit two qualitatively different stages of processing despite having no obvious inductive biases to do so: 1) a perceptual stage wherein local object features are extracted and stored in a disentangled representation, and 2) a relational stage wherein object representations are compared. In the second stage, we find evidence that ViTs can learn to represent somewhat abstract visual relations, a capability that has long been considered out of reach for artificial neural networks. Finally, we demonstrate that failures at either stage can prevent a model from learning a generalizable solution to our fairly simple tasks. By understanding ViTs in terms of discrete processing stages, one can more precisely diagnose and rectify shortcomings of existing and future models.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 46 of its 76 references that are in the map. First posted on arXiv 22 Jun 2024.
Builds on
46 of 76 references.
References · 46
- 2017Attention Is All You Needcited by 59,932
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,348
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2018Challenging Common Assumptions in the Unsupervised Learning of Disentangled Representationscited by 929
34 more
- 2023Vision Transformers Need Registerscited by 844
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
- 2022A-OKVQA: A Benchmark for Visual Question Answering using World Knowledgecited by 702
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
- 2022When and why vision-language models behave like bags-of-words, and what to do about it?cited by 603
- 2022Winoground: Probing Vision and Language Models for Visio-Linguistic Compositionalitycited by 523
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
- 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 417
- 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 313
- 2018Towards a Definition of Disentangled Representationscited by 294
- 2022Visual Spatial Reasoningcited by 288
- 2021Multi-Grained Vision Language Pre-Training: Aligning Texts with Visual Conceptscited by 255
- 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 199
- 2023Finding Alignments Between Interpretable Causal Variables and Distributed Neural Representationscited by 197
- 2022CRAFT: Concept Recursive Activation FacTorization for Explainabilitycited by 177
- 2021How much do language models copy from their training data? Evaluating linguistic novelty in text generation using RAVENcited by 124
- 2023Circuit Component Reuse Across Tasks in Transformer Language Modelscited by 105
- 2023Interpretability at Scale: Identifying Causal Mechanisms in Alpacacited by 102
- 2023How do Language Models Bind Entities in Context?cited by 102
- 2019Winning the Lottery with Continuous Sparsificationcited by 99
- 2023Is This the Subspace You Are Looking for? An Interpretability Illusion for Subspace Activation Patchingcited by 75
- 2023Towards Vision-Language Mechanistic Interpretability: A Causal Tracing Tool for BLIPcited by 62
- 2024pyvene: A Library for Understanding and Improving PyTorch Models via Interventionscited by 53
- 2023Break It Down: Evidence for Structural Compositionality in Neural Networkscited by 44
- 2022A Benchmark for Compositional Visual Reasoningcited by 43
- 2024Mission: Impossible Language Modelscited by 31
- 2023Analyzing Vision Transformers for Image Classification in Class Embedding Spacecited by 26
- 2024A Philosophical Introduction to Language Models - Part II: The Way Forwardcited by 17
- 2020Relational reasoning and generalization using non-symbolic neural networkscited by 15
- 2024A Reply to Makelov et al. (2023)'s "Interpretability Illusion" Argumentscited by 15
- 2023NeuroSurgeon: A Toolkit for Subnetwork Analysiscited by 9
- 2023Weakly-Supervised Learning of Visual Relations in Multimodal Pretrainingcited by 6
- 2023Deep Neural Networks Can Learn Generalizable Same-Different Visual Relationscited by 4
- 2024Transformer Mechanisms Mimic Frontostriatal Gating Operations When Trained on Human Working Memory Taskscited by 3
Built on by
Citing papers per year: 2025: 7; 2026: 5.
12 papers.
- 2026When Models Manipulate Manifolds: The Geometry of a Counting Taskcited by 43
- 2025How Do Vision-Language Models Process Conflicting Information Across Modalities?cited by 22
- 2025Visual symbolic mechanisms: Emergent symbol processing in vision language modelscited by 12
- 2025Whither symbols in the era of advanced neural networks?cited by 6
- 2025LinkedOut: Linking World Knowledge Representation Out of Video LLM for Next-Generation Video Recommendationcited by 5
- 2026Self-Distillation of Hidden Layers for Self-Supervised Representation Learningcited by 3
- 2025Signatures of human-like processing in Transformer forward passescited by 2
- 2025Causality neq Decodability, and Vice Versa: Lessons from Interpreting Counting ViTscited by 2
- 2026I Walk the Line: Examining the Role of Gestalt Continuity in Object Binding for Vision Transformerscited by 1
- 2025BlueGlass: A Framework for Composite AI Safetycited by 0
- 2026Linguistic Context Recodes Visual Representations in Vision-Language Modelscited by 0
- 2026Intuition vectorscited by 0
- 2026Intuition vectors26 Sep 2026
- 2026Linguistic Context Recodes Visual Representations in Vision-Language Models21 Jul 2026
- 2026I Walk the Line: Examining the Role of Gestalt Continuity in Object Binding for Vision Transformers10 Apr 2026
- 2026Self-Distillation of Hidden Layers for Self-Supervised Representation Learning16 Mar 2026
- 2026When Models Manipulate Manifolds: The Geometry of a Counting Task8 Jan 2026
- 2025LinkedOut: Linking World Knowledge Representation Out of Video LLM for Next-Generation Video Recommendation18 Dec 2025
- 2025Causality neq Decodability, and Vice Versa: Lessons from Interpreting Counting ViTs10 Oct 2025
- 2025Whither symbols in the era of advanced neural networks?7 Aug 2025
- 2025BlueGlass: A Framework for Composite AI Safety14 Jul 2025
- 2025How Do Vision-Language Models Process Conflicting Information Across Modalities?2 Jul 2025
- 2025Visual symbolic mechanisms: Emergent symbol processing in vision language models18 Jun 2025
- 2025Signatures of human-like processing in Transformer forward passes18 Apr 2025
Similar, not cited
Close in wording, no citation either way
- 2023The role of object-centric representations, guided attention, and external memory on generalizing visual relations
- 2022RelViT: Concept-guided Vision Transformer for Visual Relational Reasoning
- 2023Systematic Visual Reasoning through Object-Centric Relational Abstraction
- 2026Matching Object or Relation? Tracing Abstract Reasoning Inside VLMs
- 2026Investigating Relational Reasoning in VLMs
- 2024Tackling the Abstraction and Reasoning Corpus with Vision Transformers: the Importance of 2D Representation, Positions, and Objects
- 2025Unraveling the geometry of visual relational reasoning
- 2024Visual Reasoning in Object-Centric Deep Neural Networks: A Comparative Cognition Approach