CVLGDec 6, 2024

Slicing Vision Transformer for Flexible Inference

arXiv:2412.04786v13 citationsh-index: 4NIPS
Originality Incremental advance
AI Analysis

This addresses the need for efficient ViT deployment in environments with varying computational resources, though it is incremental as it builds on existing ViT scalability.

The paper tackles the problem of scaling down Vision Transformers (ViT) for dynamic resource constraints by proposing Scala, a framework that enables a single network to represent multiple smaller ViTs with flexible inference, achieving an average improvement of 1.6% on ImageNet-1K with fewer parameters compared to prior methods.

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 representation without modifying the original ViT structure and matches the performance of Separate Training. Compared with the prior art, Scala achieves an average improvement of 1.6% on ImageNet-1K with fewer parameters.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes