Understanding Transformer-based Vision Models through Inversion
Not on the map. Why?
Abstract (arXiv)
Understanding the internal mechanisms of deep neural networks remains a central challenge in machine learning. In computer vision, one promising yet only preliminarily explored approach is feature inversion via inverse networks, which reconstructs images from intermediate representations using trained inverse networks. In this study, we revisit feature inversion via inverse networks, introducing a novel, modular variant that enables a computationally more efficient application of the technique while, in some cases, producing semantically more coherent image reconstructions. We apply our method to large-scale transformer-based vision models, specifically Detection Transformer, Vision Transformer, Swin Transformer, and Data-Efficient Image Transformer, analyzing the resulting reconstructions across network depth. Our main analysis compares Detection Transformer and Vision Transformer, which exhibit the most informative differences among the evaluated architectures. At the same time, results for Swin Transformer and Data-Efficient Image Transformer support the broader applicability of our framework. Our findings reveal gradual representational changes across transformer layers as a shared characteristic of Detection Transformer and Vision Transformer, as well as systematic differences in how they preserve contextual shape and fine-grained image details, and in their robustness to color perturbations. These findings deepen understanding of transformer-based vision models and demonstrate the utility of modular feature inversion as an interpretability tool.
Key facts. No citing papers in the map yet (data through 13 Oct 2026). Builds on 37 of its 48 references that are in the map. First posted on arXiv 9 Dec 2024.
Builds on
37 of 48 references.
References · 37
- 2015Deep Residual Learning for Image Recognitioncited by 51,950
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,043
- 2014Microsoft COCO: Common Objects in Contextcited by 17,550
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,857
- 2020End-to-End Object Detection with Transformerscited by 7,396
- 2014Explaining and Harnessing Adversarial Examplescited by 7,336
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,713
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,417
- 2024SAM 2: Segment Anything in Images and Videoscited by 2,820
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,360
- 2013Visualizing and Understanding Convolutional Networkscited by 2,282
- 2019Similarity of Neural Network Representations Revisitedcited by 1,719
25 more
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,344
- 2022DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detectioncited by 1,312
- 2017Visualizing the Loss Landscape of Neural Netscited by 1,129
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,094
- 2014Striving for Simplicity: The All Convolutional Netcited by 989
- 2017Revisiting Unreasonable Effectiveness of Data in Deep Learning Eracited by 916
- 2020Quantifying Attention Flow in Transformerscited by 767
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 623
- 2018Loss Surfaces, Mode Connectivity, and Fast Ensembling of DNNscited by 586
- 2021Intriguing Properties of Vision Transformerscited by 446
- 2014Understanding Deep Image Representations by Inverting Themcited by 400
- 2022Mask DINO: Towards A Unified Transformer-based Framework for Object Detection and Segmentationcited by 343
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 250
- 2021Vision Transformers are Robust Learnerscited by 207
- 2016Synthesizing the preferred inputs for neurons in neural networks via deep generator networkscited by 181
- 2015Inverting Visual Representations with Convolutional Networkscited by 168
- 2018Visual Interpretability for Deep Learning: a Surveycited by 155
- 2020On Interpretability of Artificial Neural Networks: A Surveycited by 88
- 2022What do Vision Transformers Learn? A Visual Explorationcited by 76
- 2023How Does Attention Work in Vision Transformers? A Visual Analytics Attemptcited by 29
- 2023A Simple Interpretable Transformer for Fine-Grained Image Classification and Analysiscited by 15
- 2023Block-local learning with probabilistic latent representationscited by 6
- 2021A model of semantic completion in generative episodic memorycited by 5
- 2024Classification and Reconstruction Processes in Deep Predictive Coding Networks: Antagonists or Allies?cited by 2
- 2024ProtoP-OD: Explainable Object Detection with Prototypical Partscited by 1
Built on by
Not cited yet.