Auto-scaling Vision Transformers without Training

Wuyang Chen, Wei Huang, Xianzhi Du, Xiaodan Song, Zhangyang Wang +1 more
2/24/2022
cs.LGcs.CV
transformer-attention

Official code: VITA-Group/AsViT (76 stars, Python, MIT, last commit 2022-02-21).

Abstract

This work targets automated designing and scaling of Vision Transformers (ViTs). The motivation comes from two pain spots: 1) the lack of efficient and principled methods for designing and scaling ViTs; 2) the tremendous computational cost of training ViT that is much heavier than its convolution counterpart.

Show full abstract

To tackle these issues, we propose As-ViT, an auto-scaling framework for ViTs without training, which automatically discovers and scales up ViTs in an efficient and principled manner. Specifically, we first design a "seed" ViT topology by leveraging a training-free search process. This extremely fast search is fulfilled by a comprehensive study of ViT's network complexity, yielding a strong Kendall-tau correlation with ground-truth accuracies. Second, starting from the "seed" topology, we automate the scaling rule for ViTs by growing widths/depths to different ViT layers. This results in a series of architectures with different numbers of parameters in a single run. Finally, based on the observation that ViTs can tolerate coarse tokenization in early training stages, we propose a progressive tokenization strategy to train ViTs faster and cheaper. As a unified framework, As-ViT achieves strong performance on classification (83.5% top1 on ImageNet-1k) and detection (52.7% mAP on COCO) without any manual crafting nor scaling of ViT architectures: the end-to-end model design and scaling process cost only 12 hours on one V100 GPU. Our code is available at https://github.com/VITA-Group/AsViT.

View on arXivView PDF

Code Implementations(1)

VITA-Group/AsViTOfficial100%
MIT

[ICLR 2022] "As-ViT: Auto-scaling Vision Transformers without Training" by Wuyang Chen, Wei Huang, Xianzhi Du, Xiaodan Song, Zhangyang Wang, Denny Zhou

764PythonJan 21, 20224 years agoMIT
network-complexityneural-architecture-searchvision-transformer

Similar Papers

Cite this paper

@article{chen2022autoscaling,
  title  = {Auto-scaling Vision Transformers without Training},
  author = {Wuyang Chen and Wei Huang and Xianzhi Du and Xiaodan Song and Zhangyang Wang and Denny Zhou},
  year   = {2022},
  eprint = {2202.11921},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.11921}
}

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/2202.11921.svg)](https://codeofpaper.com/paper/2202.11921)

Discussion