NASformer: Neural Architecture Search for Vision Transformer

Bolin Ni, Gaofeng Meng, Shiming Xiang, Chunhong Pan

Abstract

Vision transformer has shown strong representation power by modeling the long-range dependencies. However, the self-attention mechanism in transformer has a quadratic complexity to the sequence length, limiting the generalization to dense prediction downstream tasks. Besides, it is challenging to design the architecture for vision transformer manually. To alleviate these two issues, we propose an efficient and parameter-free self-attention mechanism, named dilated window, which limits the self-attention to non-overlapping windows but still retains the ability to refer to global features. The dilated window scheme relies only on changes to data layout (reshapes and transpositions), which can be implemented with one line code. Furthermore, based on that, we proposed an efficient and effective hierarchical vision transformer architecture called NASformer by using one-shot neural architecture search. The searched architectures are superior to achieve better performances than recent state-of-the-arts, such as ViT, DeiT, and Swin on many vision tasks, including image classification, object detection, and semantic segmentation.
BibTeX
@inproceedings{ni2021nasformer,
  author = {Bolin Ni and Gaofeng Meng and Shiming Xiang and Chunhong Pan},
  title = {{NASformer: Neural Architecture Search for Vision Transformer}},
  booktitle = {ACPR},
  year = {2021},
  doi = {10.1007/978-3-031-02375-0\_4},
}

Loading related content...

Figure