Papers › NASViT: Neural Architecture Search for Efficient Vision Transformers with Gradient...

NASViT: Neural Architecture Search for Efficient Vision Transformers with Gradient Conflict aware Supernet Training

29 Sep 2021ICLR 2022 4archive 2025-07-28

Chengyue Gong, Dilin Wang, Meng Li, Xinlei Chen, Zhicheng Yan, Yuandong Tian, Qiang Liu, Vikas Chandra

Designing accurate and efficient vision transformers (ViTs) is a highly important but challenging task. Supernet-based one-shot neural architecture search (NAS) enables fast architecture optimization and has achieved state-of-the-art (SOTA) results on convolutional neural networks (CNNs). However, directly applying the supernet-based NAS to optimize ViTs leads to poor performance - even worse compared to training single ViTs. In this work, we observe that the poor performance is due to a gradient conflict issue: the gradients of different sub-networks conflict with that of the supernet more severely in ViTs than CNNs, which leads to early saturation in training and inferior convergence. To alleviate this issue, we propose a series of techniques, including a gradient projection algorithm, a switchable layer scaling design, and a simplified data augmentation and regularization training recipe. The proposed techniques significantly improve the convergence and the performance of all sub-networks. Our discovered hybrid ViT model family, dubbed NASViT, achieves top-1 accuracy from 78.2% to 81.8% on ImageNet from 200M to 800M FLOPs, and outperforms all the prior art CNNs and ViTs, including AlphaNet and LeViT, etc. When transferred to semantic segmentation tasks, NASViTs also outperform previous backbones on both Cityscape and ADE20K datasets, achieving 73.2% and 37.9% mIoU with only 5G FLOPs, respectively.

PaperPDFCode

Code

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Data AugmentationImage ClassificationNeural Architecture SearchSemantic Segmentation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Classification ImageNet NASViT (supernet) GFLOPs 1.881 #483 of 1060 Archive leaderboard report
Image Classification ImageNet NASViT (supernet) Top 1 Accuracy 82.9% #483 of 1060 Archive leaderboard report
Image Classification ImageNet NASViT-A5 GFLOPs 0.757 #604 of 1060 Archive leaderboard report
Image Classification ImageNet NASViT-A5 Top 1 Accuracy 81.8% #604 of 1060 Archive leaderboard report
Image Classification ImageNet NASViT-A4 GFLOPs 0.591 #640 of 1060 Archive leaderboard report
Image Classification ImageNet NASViT-A4 Top 1 Accuracy 81.4% #640 of 1060 Archive leaderboard report
Image Classification ImageNet NASViT-A3 GFLOPs 0.528 #669 of 1060 Archive leaderboard report
Image Classification ImageNet NASViT-A3 Top 1 Accuracy 81.0% #669 of 1060 Archive leaderboard report
Image Classification ImageNet NASViT-A2 GFLOPs 0.421 #695 of 1060 Archive leaderboard report
Image Classification ImageNet NASViT-A2 Top 1 Accuracy 80.5% #695 of 1060 Archive leaderboard report
Image Classification ImageNet NASViT-A1 GFLOPs 0.309 #744 of 1060 Archive leaderboard report
Image Classification ImageNet NASViT-A1 Top 1 Accuracy 79.7% #744 of 1060 Archive leaderboard report
Image Classification ImageNet NASViT-A0 GFLOPs 0.208 #844 of 1060 Archive leaderboard report
Image Classification ImageNet NASViT-A0 Top 1 Accuracy 78.2% #844 of 1060 Archive leaderboard report
Neural Architecture Search ImageNet NASViT-A5 Accuracy 81.8 #7 of 135 Archive leaderboard report
Neural Architecture Search ImageNet NASViT-A5 FLOPs 757M #7 of 135 Archive leaderboard report
Neural Architecture Search ImageNet NASViT-A5 Top-1 Error Rate 18.2 #7 of 135 Archive leaderboard report
Neural Architecture Search ImageNet NASViT-A4 Accuracy 81.4 #10 of 135 Archive leaderboard report
Neural Architecture Search ImageNet NASViT-A4 FLOPs 591M #10 of 135 Archive leaderboard report
Neural Architecture Search ImageNet NASViT-A4 Top-1 Error Rate 18.6 #10 of 135 Archive leaderboard report
Neural Architecture Search ImageNet NASViT-A3 Accuracy 81.0 #11 of 135 Archive leaderboard report
Neural Architecture Search ImageNet NASViT-A3 FLOPs 528M #11 of 135 Archive leaderboard report
Neural Architecture Search ImageNet NASViT-A3 Top-1 Error Rate 19.0 #11 of 135 Archive leaderboard report
Neural Architecture Search ImageNet NASViT-A2 Accuracy 80.5 #16 of 135 Archive leaderboard report
Neural Architecture Search ImageNet NASViT-A2 FLOPs 421M #16 of 135 Archive leaderboard report
Neural Architecture Search ImageNet NASViT-A2 Top-1 Error Rate 19.5 #16 of 135 Archive leaderboard report
Neural Architecture Search ImageNet NASViT-A1 Accuracy 79.7 #27 of 135 Archive leaderboard report
Neural Architecture Search ImageNet NASViT-A1 FLOPs 309M #27 of 135 Archive leaderboard report
Neural Architecture Search ImageNet NASViT-A1 Top-1 Error Rate 20.3 #27 of 135 Archive leaderboard report
Neural Architecture Search ImageNet NASViT-A0 Accuracy 78.2 #51 of 135 Archive leaderboard report
Neural Architecture Search ImageNet NASViT-A0 FLOPs 208M #51 of 135 Archive leaderboard report
Neural Architecture Search ImageNet NASViT-A0 Top-1 Error Rate 21.8 #51 of 135 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections