mlsanityData to 7 Oct 2026

Beyond the Doors of Perception: Vision Transformers Represent Relations Between Objects

arXiv 2406.15955 ↗First posted 22 Jun 2024cs.CV cs.AIcited by 12

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
  5. 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
  6. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
  7. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
  8. 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
  9. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  10. 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,348
  11. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
  12. 2018Challenging Common Assumptions in the Unsupervised Learning of Disentangled Representationscited by 929
34 more
  1. 2023Vision Transformers Need Registerscited by 844
  2. 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
  3. 2022A-OKVQA: A Benchmark for Visual Question Answering using World Knowledgecited by 702
  4. 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
  5. 2022When and why vision-language models behave like bags-of-words, and what to do about it?cited by 603
  6. 2022Winoground: Probing Vision and Language Models for Visio-Linguistic Compositionalitycited by 523
  7. 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
  8. 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 417
  9. 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 313
  10. 2018Towards a Definition of Disentangled Representationscited by 294
  11. 2022Visual Spatial Reasoningcited by 288
  12. 2021Multi-Grained Vision Language Pre-Training: Aligning Texts with Visual Conceptscited by 255
  13. 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 199
  14. 2023Finding Alignments Between Interpretable Causal Variables and Distributed Neural Representationscited by 197
  15. 2022CRAFT: Concept Recursive Activation FacTorization for Explainabilitycited by 177
  16. 2021How much do language models copy from their training data? Evaluating linguistic novelty in text generation using RAVENcited by 124
  17. 2023Circuit Component Reuse Across Tasks in Transformer Language Modelscited by 105
  18. 2023Interpretability at Scale: Identifying Causal Mechanisms in Alpacacited by 102
  19. 2023How do Language Models Bind Entities in Context?cited by 102
  20. 2019Winning the Lottery with Continuous Sparsificationcited by 99
  21. 2023Is This the Subspace You Are Looking for? An Interpretability Illusion for Subspace Activation Patchingcited by 75
  22. 2023Towards Vision-Language Mechanistic Interpretability: A Causal Tracing Tool for BLIPcited by 62
  23. 2024pyvene: A Library for Understanding and Improving PyTorch Models via Interventionscited by 53
  24. 2023Break It Down: Evidence for Structural Compositionality in Neural Networkscited by 44
  25. 2022A Benchmark for Compositional Visual Reasoningcited by 43
  26. 2024Mission: Impossible Language Modelscited by 31
  27. 2023Analyzing Vision Transformers for Image Classification in Class Embedding Spacecited by 26
  28. 2024A Philosophical Introduction to Language Models - Part II: The Way Forwardcited by 17
  29. 2020Relational reasoning and generalization using non-symbolic neural networkscited by 15
  30. 2024A Reply to Makelov et al. (2023)'s "Interpretability Illusion" Argumentscited by 15
  31. 2023NeuroSurgeon: A Toolkit for Subnetwork Analysiscited by 9
  32. 2023Weakly-Supervised Learning of Visual Relations in Multimodal Pretrainingcited by 6
  33. 2023Deep Neural Networks Can Learn Generalizable Same-Different Visual Relationscited by 4
  34. 2024Transformer Mechanisms Mimic Frontostriatal Gating Operations When Trained on Human Working Memory Taskscited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 7; 2026: 5.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023The role of object-centric representations, guided attention, and external memory on generalizing visual relations
  2. 2022RelViT: Concept-guided Vision Transformer for Visual Relational Reasoning
  3. 2023Systematic Visual Reasoning through Object-Centric Relational Abstraction
  4. 2026Matching Object or Relation? Tracing Abstract Reasoning Inside VLMs
  5. 2026Investigating Relational Reasoning in VLMs
  6. 2024Tackling the Abstraction and Reasoning Corpus with Vision Transformers: the Importance of 2D Representation, Positions, and Objects
  7. 2025Unraveling the geometry of visual relational reasoning
  8. 2024Visual Reasoning in Object-Centric Deep Neural Networks: A Comparative Cognition Approach