mlsanityData to 14 Oct 2026

Make A Long Image Short: Adaptive Token Length for Vision Transformers

arXiv 2307.02092 ↗First posted 5 Jul 2023cs.LG cs.CVcited by 10

Not on the map. Why?

Abstract (arXiv)

The vision transformer is a model that breaks down each image into a sequence of tokens with a fixed length and processes them similarly to words in natural language processing. Although increasing the number of tokens typically results in better performance, it also leads to a considerable increase in computational cost. Motivated by the saying "A picture is worth a thousand words," we propose an innovative approach to accelerate the ViT model by shortening long images. Specifically, we introduce a method for adaptively assigning token length for each image at test time to accelerate inference speed. First, we train a Resizable-ViT (ReViT) model capable of processing input with diverse token lengths. Next, we extract token-length labels from ReViT that indicate the minimum number of tokens required to achieve accurate predictions. We then use these labels to train a lightweight Token-Length Assigner (TLA) that allocates the optimal token length for each image during inference. The TLA enables ReViT to process images with the minimum sufficient number of tokens, reducing token numbers in the ViT model and improving inference speed. Our approach is general and compatible with modern vision transformer architectures, significantly reducing computational costs. We verified the effectiveness of our methods on multiple representative ViT models on image classification and action recognition.

Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 61 of its 71 references that are in the map. First posted on arXiv 5 Jul 2023.

Builds on

61 of 71 references.

References · 61

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  4. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  5. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
  6. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
  7. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  8. 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,422
  9. 2020Longformer: The Long-Document Transformercited by 3,413
  10. 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,375
  11. 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,329
  12. 2017Non-local Neural Networkscited by 2,293
38 more
  1. 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,262
  2. 2017The Kinetics Human Action Video Datasetcited by 1,909
  3. 2018SlowFast Networks for Video Recognitioncited by 1,867
  4. 2018DARTS: Differentiable Architecture Searchcited by 1,798
  5. 2021Is Space-Time Attention All You Need for Video Understanding?cited by 1,620
  6. 2021ViViT: A Video Vision Transformercited by 1,620
  7. 2020Rethinking Attention with Performerscited by 1,601
  8. 2016Neural Architecture Search with Reinforcement Learningcited by 1,499
  9. 2017The "something something" video database for learning and evaluating visual common sensecited by 1,103
  10. 2021Video Swin Transformercited by 1,091
  11. 2022Token Merging: Your ViT But Fastercited by 1,021
  12. 2021CvT: Introducing Convolutions to Vision Transformerscited by 947
  13. 2021Multiscale Vision Transformerscited by 897
  14. 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
  15. 2019Once-for-All: Train One Network and Specialize it for Efficient Deploymentcited by 787
  16. 2021Going deeper with Image Transformerscited by 764
  17. 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 675
  18. 2021Transformer in Transformercited by 633
  19. 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
  20. 2021Intriguing Properties of Vision Transformerscited by 446
  21. 2019Single Path One-Shot Neural Architecture Search with Uniform Samplingcited by 414
  22. 2021Early Convolutions Help Transformers See Bettercited by 396
  23. 2022Decoupled Knowledge Distillationcited by 388
  24. 2022Scaling Language-Image Pre-training via Maskingcited by 317
  25. 2017Relation Networks for Object Detectioncited by 305
  26. 2018Slimmable Neural Networkscited by 305
  27. 2021Post-Training Quantization for Vision Transformercited by 278
  28. 20213D Human Pose Estimation with Spatial and Temporal Transformerscited by 272
  29. 2019Depth-Adaptive Transformercited by 236
  30. 2021Co-Scale Conv-Attentional Image Transformerscited by 224
  31. 2021Keeping Your Eye on the Ball: Trajectory Attention in Video Transformerscited by 224
  32. 2019Universally Slimmable Networks and Improved Training Techniquescited by 221
  33. 20203D Object Detection with Pointformercited by 194
  34. 2020BigNAS: Scaling Up Neural Architecture Search with Big Single-Stage Modelscited by 188
  35. 2020TDN: Temporal Difference Networks for Efficient Action Recognitioncited by 183
  36. 2021On the Robustness of Vision Transformers to Adversarial Examplescited by 167
  37. 2020TAM: Temporal Adaptive Module for Video Recognitioncited by 139
  38. 2021Visformer: The Vision-friendly Transformercited by 137

50 most cited of 61 All 61 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 1; 2024: 4; 2025: 3; 2026: 2.

10 papers.