Skip to main content
QUICK REVIEW

[Paper Review] Auto-scaling Vision Transformers without Training

Wuyang Chen, Wei Huang|arXiv (Cornell University)|Feb 24, 2022
Advanced Neural Network ApplicationsComputer Science7 citations
TL;DR

As-ViT proposes a training-free, automated framework for designing and scaling Vision Transformers (ViTs) by first discovering an optimal 'seed' architecture via complexity-driven search, then systematically growing it into larger variants with balanced depth and width. The method achieves state-of-the-art performance—83.5% top-1 accuracy on ImageNet-1k and 52.7% mAP on COCO detection—using only 12 hours of V100 GPU time, with a novel progressive re-tokenization strategy reducing training FLOPs by up to 56.2%.

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. 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.

Motivation & Objective

  • To address the lack of principled, efficient methods for designing and scaling Vision Transformers (ViTs) without costly training.
  • To reduce the high computational cost of ViT training, which is significantly heavier than for CNNs.
  • To automate both architecture discovery and scaling in a unified, end-to-end framework.
  • To enable high-performance ViTs without manual hyperparameter tuning or extensive hyperparameter search.
  • To develop a scalable, training-free search method that correlates strongly with actual model accuracy.

Proposed method

  • A training-free architecture search uses network complexity metrics—particularly expected length distortion—as a surrogate for model accuracy, enabling fast evaluation of ViT topologies.
  • The 'seed' ViT topology is discovered from a relaxed search space based on prior manual ViT designs, with complexity-driven ranking replacing costly training.
  • A principled scaling rule grows the seed network by incrementally increasing depth and width across layers, maintaining balanced network complexity at each step.
  • Progressive re-tokenization dynamically adjusts tokenization (via dilation and stride) during training, reducing the number of tokens and accelerating training.
  • The framework generates a series of ViT variants with varying parameter counts in a single run, starting from a single seed architecture.
  • The method leverages the observation that ViTs tolerate coarse tokenization early in training, enabling efficient progressive refinement.

Experimental results

Research questions

  • RQ1Can a training-free search based on network complexity metrics reliably predict ViT performance without actual training?
  • RQ2What is the optimal scaling strategy for ViTs that balances depth and width while maintaining performance?
  • RQ3How can ViT training be accelerated without sacrificing accuracy, especially for large models?
  • RQ4Can a single seed architecture be systematically scaled into multiple variants with minimal additional cost?
  • RQ5Does progressive re-tokenization improve training efficiency while preserving model accuracy?

Key findings

  • The expected length distortion metric achieves the best trade-off between computation cost and Kendall-tau correlation with actual ViT accuracy, making it ideal for training-free search.
  • The As-ViT framework discovers a 'seed' ViT topology in just seven V100 GPU-hours, followed by scaling in five more GPU-hours, totaling 12 hours for full design and scaling.
  • As-ViT achieves 83.5% top-1 accuracy on ImageNet-1k and 52.7% mAP on COCO object detection, outperforming existing hand-crafted ViTs.
  • The progressive re-tokenization strategy reduces training FLOPs by up to 56.2% compared to fixed coarse tokenization, significantly accelerating training.
  • The framework generates a full family of ViT variants with different parameter counts from a single seed, enabling efficient deployment across hardware constraints.
  • The method demonstrates that ViTs can be effectively scaled using complexity-based metrics, bypassing expensive training loops during search and design.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.