[Paper Review] AdaViT: Adaptive Tokens for Efficient Vision Transformer
A-ViT introduces an adaptive token computation mechanism for Vision Transformers that dynamically reduces the number of processed tokens during inference based on input image complexity. By reusing existing network parameters to learn halting probabilities per token and applying distributional prior regularization, A-ViT achieves 62% higher throughput for DeiT-Tiny and 38% for DeiT-Small with only a 0.3% accuracy drop, enabling efficient, hardware-native inference without architectural changes.
We introduce A-ViT, a method that adaptively adjusts the inference cost of vision transformer (ViT) for images of different complexity. A-ViT achieves this by automatically reducing the number of tokens in vision transformers that are processed in the network as inference proceeds. We reformulate Adaptive Computation Time (ACT) for this task, extending halting to discard redundant spatial tokens. The appealing architectural properties of vision transformers enables our adaptive token reduction mechanism to speed up inference without modifying the network architecture or inference hardware. We demonstrate that A-ViT requires no extra parameters or sub-network for halting, as we base the learning of adaptive halting on the original network parameters. We further introduce distributional prior regularization that stabilizes training compared to prior ACT approaches. On the image classification task (ImageNet1K), we show that our proposed A-ViT yields high efficacy in filtering informative spatial features and cutting down on the overall compute. The proposed method improves the throughput of DeiT-Tiny by 62% and DeiT-Small by 38% with only 0.3% accuracy drop, outperforming prior art by a large margin. Project page at https://a-vit.github.io/
Motivation & Objective
- To enable input-dependent inference in Vision Transformers that reduces computational cost based on image complexity.
- To design a mechanism that adaptively halts processing of less informative spatial tokens during inference without adding parameters or modifying the network architecture.
- To stabilize training and guide halting depth toward target computational budgets using a novel distributional prior.
- To achieve significant throughput improvements on standard hardware while preserving model accuracy.
Proposed method
- A-ViT extends Adaptive Computation Time (ACT) to operate at the token level, allowing individual tokens to be discarded once their halting condition is met.
- The halting probability for each token is computed using a single neuron derived from the last dense layer of each transformer block, reusing existing parameters with no additional parameters or computation.
- A distributional prior regularization is introduced to guide the expected halting depth toward a target, improving training stability and convergence.
- The method enables dynamic, spatially adaptive computation where only informative tokens are processed deeply, reducing FLOPs and inference time.
- The halting mechanism is trained end-to-end using a ponder loss and distributional prior, with no need for auxiliary networks or fine-tuning.
Experimental results
Research questions
- RQ1Can adaptive computation at the token level improve inference efficiency in Vision Transformers without architectural modifications?
- RQ2How can halting decisions be learned efficiently using only existing network parameters?
- RQ3Can a distributional prior stabilize training and improve convergence toward target computational budgets?
- RQ4To what extent does adaptive token halting correlate with semantic image content and human perception?
Key findings
- A-ViT improves the throughput of DeiT-Tiny by 62% and DeiT-Small by 38% with only a 0.3% drop in top-1 accuracy on ImageNet1K.
- The method reduces FLOPs by 25% compared to conventional ACT due to fine-grained, spatially adaptive token pruning.
- The distributional prior regularization enables faster convergence to target halting depth and yields a 6.4% accuracy gain compared to using the ponder loss alone.
- Using a single vector element for halting computation causes only a 0.08% accuracy drop in DeiT-Tiny and 0.04% in DeiT-Small, validating the minimal parameter overhead.
- Adding auxiliary networks for halting learning results in only a 0.06% accuracy gain but incurs a 12.6% throughput penalty, making it impractical.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.