A-ViT: Adaptive Tokens for Efficient Vision Transformer

By Hongxu Yin, Arash Vahdat, José Manuel Álvarez, Arun Mallya, Jan Kautz, Pavlo Molchanov. 2021

538 citations recorded by the source corpus.

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 refor-mulate Adaptive Computation Time (ACT [17]) 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.

Subfields: Computer Vision and Pattern Recognition, Electrical and Electronic Engineering, Efficiency & Compression

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Xiaogang Wang
  3. Dacheng Tao
  4. Trevor Darrell
  5. Ming-Hsuan Yang
  6. Cordelia Schmid
  7. Jitendra Malik
  8. Andrew Zisserman

In Electrical and Electronic Engineering

  1. Jianwei Yang
  2. Allan Jabri
  3. Ting-Li Chen
  4. Shiguang Shan
  5. David J. Fleet
  6. Jianfeng Gao
  7. Christoph Feichtenhofer
  8. Lichao Sun

In Efficiency & Compression

  1. Jianwei Yang
  2. Allan Jabri
  3. Ting-Li Chen
  4. Shiguang Shan
  5. David J. Fleet
  6. Jianfeng Gao
  7. Alexey A. Gritsenko
  8. Christoph Feichtenhofer

Citations in the corpus