Make A Long Image Short: Adaptive Token Length for Vision Transformers
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
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,422
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,375
- 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,329
- 2017Non-local Neural Networkscited by 2,293
38 more
- 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,262
- 2017The Kinetics Human Action Video Datasetcited by 1,909
- 2018SlowFast Networks for Video Recognitioncited by 1,867
- 2018DARTS: Differentiable Architecture Searchcited by 1,798
- 2021Is Space-Time Attention All You Need for Video Understanding?cited by 1,620
- 2021ViViT: A Video Vision Transformercited by 1,620
- 2020Rethinking Attention with Performerscited by 1,601
- 2016Neural Architecture Search with Reinforcement Learningcited by 1,499
- 2017The "something something" video database for learning and evaluating visual common sensecited by 1,103
- 2021Video Swin Transformercited by 1,091
- 2022Token Merging: Your ViT But Fastercited by 1,021
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 947
- 2021Multiscale Vision Transformerscited by 897
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
- 2019Once-for-All: Train One Network and Specialize it for Efficient Deploymentcited by 787
- 2021Going deeper with Image Transformerscited by 764
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 675
- 2021Transformer in Transformercited by 633
- 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
- 2021Intriguing Properties of Vision Transformerscited by 446
- 2019Single Path One-Shot Neural Architecture Search with Uniform Samplingcited by 414
- 2021Early Convolutions Help Transformers See Bettercited by 396
- 2022Decoupled Knowledge Distillationcited by 388
- 2022Scaling Language-Image Pre-training via Maskingcited by 317
- 2017Relation Networks for Object Detectioncited by 305
- 2018Slimmable Neural Networkscited by 305
- 2021Post-Training Quantization for Vision Transformercited by 278
- 20213D Human Pose Estimation with Spatial and Temporal Transformerscited by 272
- 2019Depth-Adaptive Transformercited by 236
- 2021Co-Scale Conv-Attentional Image Transformerscited by 224
- 2021Keeping Your Eye on the Ball: Trajectory Attention in Video Transformerscited by 224
- 2019Universally Slimmable Networks and Improved Training Techniquescited by 221
- 20203D Object Detection with Pointformercited by 194
- 2020BigNAS: Scaling Up Neural Architecture Search with Big Single-Stage Modelscited by 188
- 2020TDN: Temporal Difference Networks for Efficient Action Recognitioncited by 183
- 2021On the Robustness of Vision Transformers to Adversarial Examplescited by 167
- 2020TAM: Temporal Adaptive Module for Video Recognitioncited by 139
- 2021Visformer: The Vision-friendly Transformercited by 137
50 most cited of 61 All 61 (JSON)
Built on by
Citing papers per year: 2023: 1; 2024: 4; 2025: 3; 2026: 2.
10 papers.
- 2023Which Tokens to Use? Investigating Token Reduction in Vision Transformerscited by 60
- 2024Object-Centric Instruction Augmentation for Robotic Manipulationcited by 16
- 2024Agglomerative Token Clusteringcited by 13
- 2025Accelerating Vision Transformers with Adaptive Patch Sizescited by 13
- 2024Tackling the Abstraction and Reasoning Corpus with Vision Transformers: the Importance of 2D Representation, Positions, and Objectscited by 10
- 2026DDiT: Dynamic Patch Scheduling for Efficient Diffusion Transformerscited by 4
- 2024When Training-Free NAS Meets Vision Transformer: A Neural Tangent Kernel Perspectivecited by 2
- 2025When Less is Enough: Adaptive Token Reduction for Efficient Image Representationcited by 2
- 2025Embodiment Transfer Learning for Vision-Language-Action Modelscited by 1
- 2026Adaptive Volumetric Mechanical Property Fields Invariant to Resolutioncited by 1
- 2026Adaptive Volumetric Mechanical Property Fields Invariant to Resolution16 Jun 2026
- 2026DDiT: Dynamic Patch Scheduling for Efficient Diffusion Transformers19 Feb 2026
- 2025Embodiment Transfer Learning for Vision-Language-Action Models3 Nov 2025
- 2025Accelerating Vision Transformers with Adaptive Patch Sizes20 Oct 2025
- 2025When Less is Enough: Adaptive Token Reduction for Efficient Image Representation20 Mar 2025
- 2024Tackling the Abstraction and Reasoning Corpus with Vision Transformers: the Importance of 2D Representation, Positions, and Objects8 Oct 2024
- 2024Agglomerative Token Clustering18 Sep 2024
- 2024When Training-Free NAS Meets Vision Transformer: A Neural Tangent Kernel Perspective15 Mar 2024
- 2024Object-Centric Instruction Augmentation for Robotic Manipulation5 Jan 2024
- 2023Which Tokens to Use? Investigating Token Reduction in Vision Transformers9 Aug 2023