GLiT: Neural Architecture Search for Global and Local Image Transformer

Boyu Chen, Peixia Li, Chuming Li, Baopu Li, Lei Bai +4 more
7/7/2021
108 citations
cs.CV
transformer-attention

Official code: bychen515/GLiT (24 stars, Python, last commit 2021-12-21).

Abstract

We introduce the first Neural Architecture Search (NAS) method to find a better transformer architecture for image recognition. Recently, transformers without CNN-based backbones are found to achieve impressive performance for image recognition.

Show full abstract

However, the transformer is designed for NLP tasks and thus could be sub-optimal when directly used for image recognition. In order to improve the visual representation ability for transformers, we propose a new search space and searching algorithm. Specifically, we introduce a locality module that models the local correlations in images explicitly with fewer computational cost. With the locality module, our search space is defined to let the search algorithm freely trade off between global and local information as well as optimizing the low-level design choice in each module. To tackle the problem caused by huge search space, a hierarchical neural architecture search method is proposed to search the optimal vision transformer from two levels separately with the evolutionary algorithm. Extensive experiments on the ImageNet dataset demonstrate that our method can find more discriminative and efficient transformer variants than the ResNet family (e.g., ResNet101) and the baseline ViT for image classification.

View on arXivView PDF

Code Implementations(1)

bychen515/GLiTOfficial100%
244PythonJul 29, 20214 years ago

Similar Papers

Cite this paper

@article{chen2021glit,
  title  = {GLiT: Neural Architecture Search for Global and Local Image Transformer},
  author = {Boyu Chen and Peixia Li and Chuming Li and Baopu Li and Lei Bai and Chen Lin and Ming Sun and Junjie yan and Wanli Ouyang},
  year   = {2021},
  eprint = {2107.02960},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.02960}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2107.02960.svg)](https://codeofpaper.com/paper/2107.02960)

Discussion