GLiT: Neural Architecture Search for Global and Local Image Transformer
arXiv:2107.02960
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. 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.
Accepted by ICCV 2021
References in corpus (10)
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks
- Longformer: The Long-Document Transformer
- Deformable DETR: Deformable Transformers for End-to-End Object Detection
- DARTS: Differentiable Architecture Search
- Recurrence is required to capture the representational dynamics of the human visual system
- Conformer: Convolution-augmented Transformer for Speech Recognition
- Pre-Trained Image Processing Transformer
- GradNet: Gradient-Guided Network for Visual Object Tracking
- AutoTrans: Automating Transformer Design via Reinforced Architecture Search