Transformers in Vision: A Survey
Open accessThe DOI matches its Crossref record; 306 of the 306 references it cites were found in a registry or an index.
Abstract
Astounding results from Transformer models on natural language tasks have intrigued the vision community to study their application to computer vision problems. Among their salient benefits, Transformers enable modeling long dependencies between input sequence elements and support parallel processing of sequence as compared to recurrent networks, e.g., Long short-term memory. Different from convolutional networks, Transformers require minimal inductive biases for their design and are naturally suited as set-functions. Furthermore, the straightforward design of Transformers allows processing multiple modalities (e.g., images, videos, text, and speech) using similar processing blocks and demonstrates excellent scalability to very large capacity networks and huge datasets. These strengths have led to exciting progress on a number of vision tasks using Transformer networks. This survey aims to provide a comprehensive overview of the Transformer models in the computer vision discipline. We start with an introduction to fundamental concepts behind the success of Transformers, i.e., self-attention, large-scale pre-training, and bidirectional feature encoding. We then cover extensive applications of transformers in vision including popular recognition tasks (e.g., image classification, object detection, action recognition, and segmentation), generative modeling, multi-modal tasks (e.g., visual-question answering, visual reasoning, and visual grounding), video processing (e.g., activity recognition, video forecasting), low-level vision (e.g., image super-resolution, image enhancement, and colorization), and three-dimensional analysis (e.g., point cloud classification and segmentation). We compare the respective advantages and limitations of popular techniques both in terms of architectural design and their experimental value. Finally, we provide an analysis on open research directions and possible future works. We hope this effort will ignite further interest in the community to solve current challenges toward the application of transformer models in computer vision.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
The source backs part of the claim, not all of it — or backs it for a different population, condition or comparison.
In the citing paper
“They further report that reducing the texture bias leads to improved robustness to previously unseen image distortions.”
From Understanding Robustness of Transformers for Image Classification (2021) · cites this paper as [12]
Experimental — accuracy not yet measuredThe check wasn’t confident either way, so it gives no verdict — never disputed.
In the citing paper
“Geirhos et al. [12] observe that (unlike humans) ImageNet-trained CNNs tend to rely on texture more than on shape for image classification.”
From Understanding Robustness of Transformers for Image Classification (2021) · cites this paper as [12]
Experimental — accuracy not yet measuredThe check wasn’t confident either way, so it gives no verdict — never disputed.
In the citing paper
“Conflict Stimuli [12] is designed to evaluate the degree to which a model is biased towards relying on texture over shape for image classification.”
From Understanding Robustness of Transformers for Image Classification (2021) · cites this paper as [12]
Experimental — accuracy not yet measured
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Deep Residual Learning for Image Recognition
He, K., Zhang, X., Ren, S., & Sun, J. (2016) · 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr.2016.90 · Cited by 235,474 · cited 6×
“The authors consider ResNet-50 [59] and Vision Transformer (ViT) [82] for encoding images.”
BackgroundMethodInfluentialVaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017) · arXiv · doi:10.48550/arxiv.1706.03762 · Cited by 120,404 · cited 10×
“Being an auto-regressive model, the decoder of the Transformer [202] uses previous predictions to output the next word in the sequence.”
BackgroundMethodInfluentialHochreiter, S., & Schmidhuber, J. (1997) · Neural Computation · doi:10.1162/neco.1997.9.8.1735 · Cited by 102,318 · cited 4×
“representations on short-length videos (up to a few seconds long), that allow them to encode only short-range dependencies [1], [26].”
BackgroundInfluentialLeCun, Y., Bengio, Y., & Hinton, G. (2015) · Nature · doi:10.1038/nature14539 · Cited by 84,126
Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks
Ren, S., He, K., Girshick, R., & Sun, J. (2017) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2016.2577031 · Cited by 73,472
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2018) · arXiv · doi:10.48550/arxiv.1810.04805 · Cited by 73,173 · cited 10×
“Similar to BERT [3], Oscar uses a Masked Token Loss for VLP.”
BackgroundMethodInfluentialFaster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks
Ren, S., He, K., Girshick, R., & Sun, J. (2015) · arXiv · doi:10.48550/arxiv.1506.01497 · Cited by 70,812
ImageNet: A large-scale hierarchical image database
Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., & Fei-Fei, L. (2009) · 2009 IEEE Conference on Computer Vision and Pattern Recognition · doi:10.1109/cvpr.2009.5206848 · Cited by 65,333
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019) · Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers) · doi:10.18653/v1/n19-1423 · Cited by 54,325 · cited 10×
“Similar to BERT [3], Oscar uses a Masked Token Loss for VLP.”
BackgroundMethodInfluentialYou Only Look Once: Unified, Real-Time Object Detection
Redmon, J., Divvala, S., Girshick, R., & Farhadi, A. (2016) · 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr.2016.91 · Cited by 53,803
Research works printed but not linked: 30
- Anonymous. 2022. Patches are all you need? In ICLR.
- [225] M. Zaheer, S. Kottur, S. Ravanbakhsh, B. Poczos, R. R. Salakhutdinov, and A. J. Smola, 'Deep sets,' in NeurIPS , 2017. -
- Gedas Bertasius, Heng Wang, and Lorenzo Torresani. 2021. Is space-time attention all you need for video understanding? In ICML.
- [18] R. Girdhar, J. Carreira, C. Doersch, and A. Zisserman, 'Video action transformer network,' in CVPR , 2019. -
- [126] R. Girshick, 'Fast R-CNN,' in ICCV , 2015. -
- [54] I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. WardeFarley, S. Ozair, A. Courville, and Y. Bengio, 'Generative adversarial nets,' in NeurIPS , 2014. -
- [127] K. He, G. Gkioxari, P. Doll´ ar, and R. Girshick, 'Mask R-CNN,' in ICCV , 2017. -
- Olivier J. Hénaff, Aravind Srinivas, Jeffrey De Fauw, Ali Razavi, Carl Doersch, S. M. Eslami, and Aaron van den Oord. 2019. Data-efficient image recognition with contrastive predictive coding. arXiv:1905.09272. Retrieved from https://arxiv.org/abs/1905.09272. · arXiv
- 10.1145/10.1109/wacv.2018.00092 · doi:10.1145/10.1109/wacv.2018.00092
- [177] C. Ledig, L. Theis, F. Husz´ ar, J. Caballero, A. Cunningham, A. Acosta, A. Aitken, A. Tejani, J. Totz, Z. Wang, et al. , 'Photorealistic single image super-resolution using a generative adversarial network,' in CVPR , 2017. -
- [44] X. Li, X. Yin, C. Li, P. Zhang, X. Hu, L. Zhang, L. Wang, H. Hu, L. Dong, F. Wei, et al. , 'Oscar: Object-semantics aligned pretraining for vision-language tasks,' in ECCV , 2020. -
- 10.1145/10.1109/tpami.2019.2916873 · doi:10.1145/10.1109/tpami.2019.2916873
- [202] P. Zhang, X. Li, X. Hu, J. Yang, L. Zhang, L. Wang, Y. Choi, and J. Gao, 'Vinvl: Revisiting visual representations in visionlanguage models,' in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition , pp. 5579-5588, 2021. -
- [142] N. Parmar, A. Vaswani, J. Uszkoreit, Ł. Kaiser, N. Shazeer, A. Ku, and D. Tran, 'Image transformer,' in ICML , 2018. -
- [4] A. Radford, K. Narasimhan, T. Salimans, and I. Sutskever, 'Improving language understanding by generative pre-training,' tech. rep., OpenAI, 2018. -
- [5] A. Radford, J. Wu, R. Child, D. Luan, D. Amodei, and I. Sutskever, 'Language models are unsupervised multitask learners,' tech. rep., OpenAI, 2019. -
- [20] A. Ramesh, M. Pavlov, G. Goh, and S. Gray, 'DALL·E: Creating images from text,' tech. rep., OpenAI, 2021. -
- Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. 2016. Rethinking the inception architecture for computer vision. In CVPR. 2818–2826.
- Ilya Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Thomas Unterthiner, Jessica Yung, Andreas Peter Steiner, Daniel Keysers, Jakob Uszkoreit, et al. 2021. Mlp-mixer: An all-mlp architecture for vision. In NIPS.
- [39] H. Zhang, I. Goodfellow, D. Metaxas, and A. Odena, 'Selfattention generative adversarial networks,' in International conference on machine learning , pp. 7354-7363, PMLR, 2019. -
- [40] J. P´ erez, J. Marinkovi´ c, and P. Barcel´ o, 'On the turing completeness of modern neural network architectures,' in International Conference on Learning Representations , 2018. -
- [41] J.-B. Cordonnier, A. Loukas, and M. Jaggi, 'On the relationship between self-attention and convolutional layers,' in International Conference on Learning Representations , 2019. -
- [42] J. Dai, H. Qi, Y. Xiong, Y. Li, G. Zhang, H. Hu, and Y. Wei, 'Deformable convolutional networks,' in Proceedings of the IEEE international conference on computer vision , pp. 764-773, 2017. -
- Xiaolei Wu, Zhihao Hu, Lu Sheng, and Dong Xu. 2021. StyleFormer: Real-time arbitrary style transfer via parametric style composition. In ICCV. 14618–14627.
- [252] Y. Xiong, Z. Zeng, R. Chakraborty, M. Tan, G. Fung, Y. Li, and V. Singh, 'Nystr \ ' omformer: A nystr \ ' om-based algorithm for approximating self-attention,' in AAAI , 2021. -
- [139] L. Yu, P. Poirson, S. Yang, A. C. Berg, and T. L. Berg, 'Modeling context in referring expressions,' in ECCV , 2016. -
- [36] Z. Liu, Y. Lin, Y. Cao, H. Hu, Y. Wei, Z. Zhang, S. Lin, and B. Guo, 'Swin transformer: Hierarchical vision transformer using shifted windows,' arXiv preprint arXiv:2103.14030 , 2021. - · arXiv
- [241] B. A. Plummer, L. Wang, C. M. Cervantes, J. C. Caicedo, J. Hockenmaier, and S. Lazebnik, 'Flickr30k entities: Collecting regionto-phrase correspondences for richer image-to-sentence models,' in ICCV , 2015. -
- [52] C. Ledig, L. Theis, F. Husz´ ar, J. Caballero, A. Cunningham, A. Acosta, A. Aitken, A. Tejani, J. Totz, Z. Wang, et al. , 'Photorealistic single image super-resolution using a generative adversarial network,' in CVPR , 2017. -
- [15] L. Ye, M. Rochan, Z. Liu, and Y. Wang, 'Cross-modal selfattention network for referring image segmentation,' in CVPR , 2019. -
Cited by
Restormer: Efficient Transformer for High-Resolution Image Restoration
Zamir, S. W., Arora, A., Khan, S., Hayat, M., Khan, F. S., & Yang, M.-H. (2022) · 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr52688.2022.00564 · Cited by 4,143
“Self-attention is a core component in Transformer models [34, 77] but with a unique implementation, i.e ., multi-head SA that is optimized for parallelization and effective representation learning.”
Self-citationAttention mechanisms in computer vision: A survey
Guo, M.-H., Xu, T.-X., Liu, J.-J., Liu, Z.-N., Jiang, P.-T., Mu, T.-J., Zhang, S.-H., Martin, R. R., Cheng, M.-M., & Hu, S.-M. (2022) · Computational Visual Media · doi:10.1007/s41095-022-0271-y · Cited by 2,566
“Three more specific surveys [141], [142], [143] summarize the development of visual transformers while our paper reviews attention mechanisms in vision more generally, not just selfattention mechanisms.”
BackgroundMulti-Stage Progressive Image Restoration
Zamir, S. W., Arora, A., Khan, S., Hayat, M., Khan, F. S., Yang, M.-H., & Shao, L. (2021) · 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr46437.2021.01458 · Cited by 2,095
Self-citationLin, T., Wang, Y., Liu, X., & Qiu, X. (2022) · AI Open · doi:10.1016/j.aiopen.2022.10.001 · Cited by 1,422
Lin, T., Wang, Y., Liu, X., & Qiu, X. (2021) · arXiv · doi:10.48550/arxiv.2106.04554 · Cited by 1,420
“Finally, we wish this survey to be a hands-on reference for better understanding the current research progress on Transformers and help readers to further improve Transformers for various applications.”
BackgroundInfluential
Metadata
- Authors
- Khan, S., Naseer, M., Hayat, M., Zamir, S. W., Khan, F. S., & Shah, M.
- Affiliations
- Australian National University (AU)
- Monash University (AU)
- Inception Institute of Artificial Intelligence (AE)
- Linköping University (SE)
- University of Central Florida (US)
- Venue
- ACM Computing Surveys
- Published
- 2022-01-31
- Volume
- 54
- Issue
- 10s
- Pages
- 1-41
- ISSN
- 0360-0300 (ISSN-L)
- 1557-7341
- OpenAlex
- W3119997354
- Semantic Scholar
- 3a906b77fa218adc171fecb28bb81c24c14dcc7b
- Cited by
- 3,595
- References
- 286
- Citations by year
- 2026: 670 · 2025: 1005 · 2024: 825 · 2023: 637 · 2022: 328
- FWCI
- 228.62
- Type
- journal article
- Language
- en
- Open access
- green
- arxiv.org
- Locations
- ACM Computing Surveys (publishedVersion)
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Topics
- Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Neural Network Applications
- Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Multimodal Machine Learning Applications
- Physical Sciences › Computer Science › Artificial Intelligence › Domain Adaptation and Few-Shot Learning
- Keywords
- vision transformer, self-attention, pre-training, image classification, object detection, human action recognition, semantic segmentation, generative models, visual question answering, visual reasoning, visual grounding, activity recognition, image super-resolution, image enhancement, image colorization, point cloud classification, point cloud segmentation, multimodal processing, long-range dependencies
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.