Slicing Vision Transformer for Flexible Inference
Yitian Zhang, Huseyin Coskun, Xu Ma, Huan Wang, Ke Ma, Xi (Stephen), Chen, Derek Hao Hu, Yun Fu

TL;DR
This paper introduces Scala, a framework that enables a single Vision Transformer to efficiently represent multiple sub-networks of varying widths, allowing flexible inference under resource constraints without retraining.
Contribution
Scala is a novel method that trains a ViT to support multiple sub-networks simultaneously, improving efficiency and performance over traditional separate training methods.
Findings
Scala matches the performance of separately trained ViTs.
Achieves 1.6% higher accuracy on ImageNet-1K.
Reduces parameters compared to prior methods.
Abstract
Vision Transformers (ViT) is known for its scalability. In this work, we target to scale down a ViT to fit in an environment with dynamic-changing resource constraints. We observe that smaller ViTs are intrinsically the sub-networks of a larger ViT with different widths. Thus, we propose a general framework, named Scala, to enable a single network to represent multiple smaller ViTs with flexible inference capability, which aligns with the inherent design of ViT to vary from widths. Concretely, Scala activates several subnets during training, introduces Isolated Activation to disentangle the smallest sub-network from other subnets, and leverages Scale Coordination to ensure each sub-network receives simplified, steady, and accurate learning objectives. Comprehensive empirical validations on different tasks demonstrate that with only one-shot training, Scala learns slimmable…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsImage Processing Techniques and Applications · CCD and CMOS Imaging Sensors · Cell Image Analysis Techniques
