DeepViT: Towards Deeper Vision Transformer

By Daquan Zhou, Bingyi Kang, Xiaojie Jin, Linjie Yang, Xiaochen Lian, Qibin Hou, Jiashi Feng. 2021

638 citations recorded by the source corpus.

Vision transformers (ViTs) have been successfully applied in image classification tasks recently. In this paper, we show that, unlike convolution neural networks (CNNs)that can be improved by stacking more convolutional layers, the performance of ViTs saturate fast when scaled to be deeper. More specifically, we empirically observe that such scaling difficulty is caused by the attention collapse issue: as the transformer goes deeper, the attention maps gradually become similar and even much the same after certain layers. In other words, the feature maps tend to be identical in the top layers of deep ViT models. This fact demonstrates that in deeper layers of ViTs, the self-attention mechanism fails to learn effective concepts for representation learning and hinders the model from getting expected performance gain. Based on above observation, we propose a simple yet effective method, named Re-attention, to re-generate the attention maps to increase their diversity at different layers with negligible computation and memory cost. The pro-posed method makes it feasible to train deeper ViT models with consistent performance improvements via minor modification to existing ViT models. Notably, when training a deep ViT model with 32 transformer blocks, the Top-1 classification accuracy can be improved by 1.6% on ImageNet. Code is publicly available at https://github.com/zhoudaquan/dvit_repo.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Neurology, Model Architectures

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Jianfeng Gao
  2. Dacheng Tao
  3. Jiashi Feng
  4. Quoc V. Le
  5. Luc Van Gool
  6. Alan L. Yuille
  7. Shuicheng Yan
  8. Mohit Bansal

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Ming-Hsuan Yang
  4. Xiaogang Wang
  5. Jiashi Feng
  6. Yi Yang
  7. Trevor Darrell
  8. Alan L. Yuille

In Neurology

  1. Lu Yuan
  2. Jianwei Yang
  3. Mingxing Tan
  4. Wuyang Chen
  5. Shuicheng Yan
  6. Heng Fan
  7. Gao Huang
  8. Sachin Mehta

In Model Architectures

  1. Jianfeng Gao
  2. Jianwei Yang
  3. Lu Yuan
  4. Jiashi Feng
  5. Shuicheng Yan
  6. Xinchao Wang
  7. Fahad Shahbaz Khan
  8. Bin Xiao

Citations in the corpus