All Tokens Matter: Token Labeling for Training Better Vision Transformers
Not on the map. Why?
Abstract (arXiv)
In this paper, we present token labeling -- a new training objective for training high-performance vision transformers (ViTs). Different from the standard training objective of ViTs that computes the classification loss on an additional trainable class token, our proposed one takes advantage of all the image patch tokens to compute the training loss in a dense manner. Specifically, token labeling reformulates the image classification problem into multiple token-level recognition problems and assigns each patch token with an individual location-specific supervision generated by a machine annotator. Experiments show that token labeling can clearly and consistently improve the performance of various ViT models across a wide spectrum. For a vision transformer with 26M learnable parameters serving as an example, with token labeling, the model can achieve 84.4% Top-1 accuracy on ImageNet. The result can be further increased to 86.4% by slightly scaling the model size up to 150M, delivering the minimal-sized model among previous models (250M+) reaching 86%. We also show that token labeling can clearly improve the generalization capability of the pre-trained models on downstream tasks with dense prediction, such as semantic segmentation. Our code and all the training details will be made publicly available at https://github.com/zihangJiang/TokenLabeling.
Key facts. Cited by 144 papers in the map (data through 14 Oct 2026). Builds on 54 of its 63 references that are in the map. First posted on arXiv 22 Apr 2021.
Builds on
54 of 63 references.
References · 54
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2020End-to-End Object Detection with Transformerscited by 7,414
- 2017Mask R-CNNcited by 7,277
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
38 more
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
- 2014Fully Convolutional Networks for Semantic Segmentationcited by 4,859
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,422
- 2018Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentationcited by 3,223
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,884
- 2016Pyramid Scene Parsing Networkcited by 2,479
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,269
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
- 2020Point Transformercited by 1,470
- 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,369
- 2018Unified Perceptual Parsing for Scene Understandingcited by 1,271
- 2017Random Erasing Data Augmentationcited by 1,239
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,101
- 2016Semantic Understanding of Scenes through the ADE20K Datasetcited by 1,069
- 2016Deep Networks with Stochastic Depthcited by 979
- 2020Designing Network Design Spacescited by 960
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 947
- 2020Pre-Trained Image Processing Transformercited by 893
- 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
- 2018Image Transformercited by 772
- 2021Going deeper with Image Transformerscited by 764
- 2021Transformer in Transformercited by 633
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 627
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2020ResNeSt: Split-Attention Networkscited by 445
- 2020End-to-End Video Instance Segmentation with Transformerscited by 443
- 2018Bag of Tricks for Image Classification with Convolutional Neural Networkscited by 431
- 2021Bottleneck Transformers for Visual Recognitioncited by 364
- 2021Rethinking Spatial Dimensions of Vision Transformerscited by 361
- 2021High-Performance Large-Scale Image Recognition Without Normalizationcited by 360
- 2020Learning Texture Transformer Network for Image Super-Resolutioncited by 347
- 2020Are we done with ImageNet?cited by 333
- 2021DeepViT: Towards Deeper Vision Transformercited by 289
- 2018End-to-End Dense Video Captioning with Masked Transformercited by 214
- 2019Fixing the train-test resolution discrepancycited by 209
- 2020Learning Joint Spatial-Temporal Transformations for Video Inpaintingcited by 163
- 2020Rethinking Transformer-based Set Prediction for Object Detectioncited by 156
50 most cited of 54 All 54 (JSON)
Built on by
Citing papers per year: 2021: 17; 2022: 47; 2023: 40; 2024: 27; 2025: 9; 2026: 4.
144 papers.
Sort:
By area:
- 2021Masked Feature Prediction for Self-Supervised Visual Pre-Trainingcited by 576
- 2022Not All Patches are What You Need: Expediting Vision Transformers via Token Reorganizationscited by 363
- 2022Neighborhood Attention Transformercited by 239
- 2022UniFormer: Unifying Convolution and Self-attention for Visual Recognitioncited by 206
- 2022Focal Modulation Networkscited by 186
- 2022UniFormer: Unified Transformer for Efficient Spatiotemporal Representation Learningcited by 184
- 2021Adaptive Token Sampling For Efficient Vision Transformerscited by 183
- 2022DaViT: Dual Attention Vision Transformerscited by 175
- 2021SPViT: Enabling Faster Vision Transformers via Soft Token Pruningcited by 167
- 2021VOLO: Vision Outlooker for Visual Recognitioncited by 165
- 2023BiFormer: Vision Transformer with Bi-Level Routing Attentioncited by 151
- 2022Anti-Oversmoothing in Deep Vision Transformers via the Fourier Domain Analysis: From Theory to Practicecited by 136
38 more
- 2021Patch Slimming for Efficient Vision Transformerscited by 133
- 2023RepViT: Revisiting Mobile CNN From ViT Perspectivecited by 123
- 2023MobileVLM : A Fast, Strong and Open Vision Language Assistant for Mobile Devicescited by 122
- 2021A Survey of Visual Transformerscited by 117
- 2022Inception Transformercited by 99
- 2022OpenEarthMap: A Benchmark Dataset for Global High-Resolution Land Cover Mappingcited by 82
- 2022Conv2Former: A Simple Transformer-Style ConvNet for Visual Recognitioncited by 81
- 2023Joint Token Pruning and Squeezing Towards More Aggressive Compression of Vision Transformerscited by 81
- 2022Wave-ViT: Unifying Wavelet and Transformers for Visual Representation Learningcited by 78
- 2023A Theoretical Understanding of Shallow Vision Transformers: Learning, Generalization, and Sample Complexitycited by 77
- 2023DiffRate : Differentiable Compression Rate for Efficient Vision Transformerscited by 77
- 2022Improving Vision Transformers by Revisiting High-frequency Componentscited by 76
- 2023RMT: Retentive Networks Meet Vision Transformerscited by 68
- 2021KVT: k-NN Attention for Boosting Vision Transformerscited by 65
- 2021Lite Vision Transformer with Enhanced Self-Attentioncited by 64
- 2022CF-ViT: A General Coarse-to-Fine Method for Vision Transformercited by 63
- 2023Zero-TPrune: Zero-Shot Token Pruning through Leveraging of the Attention Graph in Pre-Trained Transformerscited by 62
- 2022MogaNet: Multi-order Gated Aggregation Networkcited by 59
- 2022CamoFormer: Masked Separable Attention for Camouflaged Object Detectioncited by 58
- 2023Max-Margin Token Selection in Attention Mechanismcited by 58
- 2023Revisiting Token Pruning for Object Detection and Instance Segmentationcited by 50
- 2023SpectFormer: Frequency and Attention is what you need in a Vision Transformercited by 48
- 2022Beyond Attentive Tokens: Incorporating Token Importance and Diversity for Efficient Vision Transformerscited by 47
- 2022HeatViT: Hardware-Efficient Adaptive Token Pruning for Vision Transformerscited by 46
- 2023A survey on efficient vision transformers: algorithms, techniques, and performance benchmarkingcited by 41
- 2021A Unified Pruning Framework for Vision Transformerscited by 40
- 2022On the Importance of Asymmetry for Siamese Representation Learningcited by 39
- 2023PPT: Token Pruning and Pooling for Efficient Vision Transformerscited by 38
- 2022Automated Progressive Learning for Efficient Training of Vision Transformerscited by 37
- 2021Pale Transformer: A General Vision Transformer Backbone with Pale-Shaped Attentioncited by 36
- 2023Rethinking Mobile Block for Efficient Attention-based Modelscited by 36
- 2022The Principle of Diversity: Training Stronger Vision Transformers Calls for Reducing All Levels of Redundancycited by 35
- 2022Adaptive Sparse ViT: Towards Learnable Adaptive Token Pruning by Fully Exploiting Self-Attentioncited by 35
- 2022Vision Transformer with Attentive Pooling for Robust Facial Expression Recognitioncited by 35
- 2023DilateFormer: Multi-Scale Dilated Transformer for Visual Recognitioncited by 34
- 2021INTERN: A New Learning Paradigm Towards General Visioncited by 33
- 2021A Battle of Network Structures: An Empirical Study of CNN, Transformer, and MLPcited by 32
- 2022Dual Vision Transformercited by 29
50 most cited of 144 All 144 (JSON)
- 2026ASAP: Attention Sink Anchored Pruning21 May 2026
- 2026Provable Sparse Inversion and Token Relabel Enhanced One-shot Federated Learning with ViTs11 May 2026
- 2026Mixture-of-Modality-Experts with Holistic Token Learning for Fine-Grained Multimodal Visual Analytics in Driver Action Recognition7 Apr 2026
- 2026RAViT: Resolution-Adaptive Vision Transformer27 Feb 2026
- 2025HEART-VIT: Hessian-Guided Efficient Dynamic Attention and Token Pruning in Vision Transformer23 Dec 2025
- 2025MSRNet: A Multi-Scale Recursive Network for Camouflaged Object Detection16 Nov 2025
- 2025Block-based Symmetric Pruning and Fusion for Efficient Vision Transformers16 Jul 2025
- 2025Token Transforming: A Unified and Training-Free Token Compression Framework for Vision Transformer Acceleration6 Jun 2025
- 2025RePaViT: Scalable Vision Transformer Acceleration via Structural Reparameterization on Feedforward Network Layers28 May 2025
- 2025Lossless Token Merging Even Without Fine-Tuning in Vision Transformers21 May 2025
- 2025Dual-level Fuzzy Learning with Patch Guidance for Image Ordinal Regression9 May 2025
- 2025Dynamic Accumulated Attention Map for Interpreting Evolution of Decision-Making in Vision Transformer18 Mar 2025
38 more
- 2025Vision Transformer Neural Architecture Search for Out-of-Distribution Generalization: Benchmark and Insights7 Jan 2025
- 2024Unprejudiced Training Auxiliary Tasks Makes Primary Better: A Multi-Task Learning Perspective27 Dec 2024
- 2024The Impact of the Single-Label Assumption in Image Recognition Benchmarking24 Dec 2024
- 2024Learning to Merge Tokens via Decoupled Embedding for Efficient Vision Transformers13 Dec 2024
- 2024Locality Alignment Improves Vision-Language Models14 Oct 2024
- 2024Token Pruning using a Lightweight Background Aware Vision Transformer12 Oct 2024
- 2024DIAL: Dense Image-text ALignment for Weakly Supervised Semantic Segmentation24 Sep 2024
- 2024Efficient Training of Large Vision Models via Advanced Automated Progressive Learning6 Sep 2024
- 2024TReX- Reusing Vision Transformer's Attention for Efficient Xbar-based Computing22 Aug 2024
- 2024DeMansia: Mamba Never Forgets Any Tokens4 Aug 2024
- 2024Semantic Graph Consistency: Going Beyond Patches for Regularizing Self-Supervised Vision Transformers18 Jun 2024
- 2024Configuring Data Augmentations to Reduce Variance Shift in Positional Embedding of Vision Transformers23 May 2024
- 2024Semantic Equitable Clustering: A Simple and Effective Strategy for Clustering Vision Tokens22 May 2024
- 2024Vision Transformer with Sparse Scan Prior22 May 2024
- 2024Data-independent Module-aware Pruning for Hierarchical Vision Transformers21 Apr 2024
- 2024Learning Correlation Structures for Vision Transformers5 Apr 2024
- 2024A General and Efficient Training for Transformer via Token Expansion31 Mar 2024
- 2024Enhancing Efficiency in Vision Transformer Networks: Design Techniques and Insights28 Mar 2024
- 2024Efficient and Effective Weakly-Supervised Action Segmentation via Action-Transition-Aware Boundary Alignment28 Mar 2024
- 2024ViTAR: Vision Transformer with Any Resolution27 Mar 2024
- 2024Heracles: A Hybrid SSM-Transformer Model for High-Resolution Image and Time-Series Analysis26 Mar 2024
- 2024Multi-criteria Token Fusion with One-step-ahead Attention for Efficient Vision Transformers15 Mar 2024
- 2024ComFe: An Interpretable Head for Vision Transformers7 Mar 2024
- 2024HyenaPixel: Global Image Context with Convolutions29 Feb 2024
- 2024ClipFormer: Key-Value Clipping of Transformers on Memristive Crossbars for Write Noise Mitigation4 Feb 2024
- 2024LF-ViT: Reducing Spatial Redundancy in Vision Transformer for Efficient Image Recognition8 Jan 2024
- 2024Fully Attentional Networks with Self-emerging Token Labeling8 Jan 2024
- 2024TPC-ViT: Token Propagation Controller for Efficient Vision Transformer3 Jan 2024
- 2023MobileVLM : A Fast, Strong and Open Vision Language Assistant for Mobile Devices28 Dec 2023
- 2023Expediting Contrastive Language-Image Pretraining via Self-distilled Encoders19 Dec 2023
- 2023Auto-Prox: Training-Free Vision Transformer Architecture Search via Automatic Proxy Discovery14 Dec 2023
- 2023Factorization Vision Transformer: Modeling Long Range Dependency with Local Window Cost14 Dec 2023
- 2023Advancing Vision Transformers with Group-Mix Attention26 Nov 2023
- 2023SparseSpikformer: A Co-Design Framework for Token and Weight Pruning in Spiking Transformer15 Nov 2023
- 2023Explainability of Vision Transformers: A Comprehensive Review and New Perspectives12 Nov 2023
- 2023GTP-ViT: Efficient Vision Transformers via Graph-based Token Propagation6 Nov 2023
- 2023Scattering Vision Transformer: Spectral Mixing Matters2 Nov 2023
- 2023No Token Left Behind: Efficient Vision Transformer via Dynamic Token Idling9 Oct 2023
50 newest of 144 All 144 (JSON)
- 2021SPViT: Enabling Faster Vision Transformers via Soft Token Pruningcited by 167
- 2023Joint Token Pruning and Squeezing Towards More Aggressive Compression of Vision Transformerscited by 81
- 2023DiffRate : Differentiable Compression Rate for Efficient Vision Transformerscited by 77
- 2023Zero-TPrune: Zero-Shot Token Pruning through Leveraging of the Attention Graph in Pre-Trained Transformerscited by 62
- 2023Revisiting Token Pruning for Object Detection and Instance Segmentationcited by 50
- 2022HeatViT: Hardware-Efficient Adaptive Token Pruning for Vision Transformerscited by 46
- 2023PPT: Token Pruning and Pooling for Efficient Vision Transformerscited by 38
- 2022Adaptive Sparse ViT: Towards Learnable Adaptive Token Pruning by Fully Exploiting Self-Attentioncited by 35
- 2024Learning to Merge Tokens via Decoupled Embedding for Efficient Vision Transformerscited by 21
- 2023GTP-ViT: Efficient Vision Transformers via Graph-based Token Propagationcited by 19
- 2022SaiT: Sparse Vision Transformers through Adaptive Token Pruningcited by 15
- 2023CAIT: Triple-Win Compression towards High Accuracy, Fast Inference, and Favorable Transferability For ViTscited by 9
12 most cited of 17 All 17 (JSON)
- 2025HEART-VIT: Hessian-Guided Efficient Dynamic Attention and Token Pruning in Vision Transformer23 Dec 2025
- 2025Token Transforming: A Unified and Training-Free Token Compression Framework for Vision Transformer Acceleration6 Jun 2025
- 2025Lossless Token Merging Even Without Fine-Tuning in Vision Transformers21 May 2025
- 2024Learning to Merge Tokens via Decoupled Embedding for Efficient Vision Transformers13 Dec 2024
- 2024Token Pruning using a Lightweight Background Aware Vision Transformer12 Oct 2024
- 2023GTP-ViT: Efficient Vision Transformers via Graph-based Token Propagation6 Nov 2023
- 2023PPT: Token Pruning and Pooling for Efficient Vision Transformers3 Oct 2023
- 2023CAIT: Triple-Win Compression towards High Accuracy, Fast Inference, and Favorable Transferability For ViTs27 Sep 2023
- 2023Revisiting Token Pruning for Object Detection and Instance Segmentation12 Jun 2023
- 2023Multi-Scale And Token Mergence: Make Your ViT More Efficient8 Jun 2023
- 2023DiffRate : Differentiable Compression Rate for Efficient Vision Transformers29 May 2023
- 2023Zero-TPrune: Zero-Shot Token Pruning through Leveraging of the Attention Graph in Pre-Trained Transformers27 May 2023
12 newest of 17 All 17 (JSON)
- 2024Locality Alignment Improves Vision-Language Modelscited by 13
- 2024Locality Alignment Improves Vision-Language Models14 Oct 2024
- 2021Masked Feature Prediction for Self-Supervised Visual Pre-Trainingcited by 576
- 2022Not All Patches are What You Need: Expediting Vision Transformers via Token Reorganizationscited by 363
- 2022Neighborhood Attention Transformercited by 239
- 2022UniFormer: Unifying Convolution and Self-attention for Visual Recognitioncited by 206
- 2022Focal Modulation Networkscited by 186
- 2022UniFormer: Unified Transformer for Efficient Spatiotemporal Representation Learningcited by 184
- 2021Adaptive Token Sampling For Efficient Vision Transformerscited by 183
- 2022DaViT: Dual Attention Vision Transformerscited by 175
- 2021VOLO: Vision Outlooker for Visual Recognitioncited by 165
- 2023BiFormer: Vision Transformer with Bi-Level Routing Attentioncited by 151
- 2022Anti-Oversmoothing in Deep Vision Transformers via the Fourier Domain Analysis: From Theory to Practicecited by 136
- 2021Patch Slimming for Efficient Vision Transformerscited by 133
12 most cited of 120 All 120 (JSON)
- 2026ASAP: Attention Sink Anchored Pruning21 May 2026
- 2026Provable Sparse Inversion and Token Relabel Enhanced One-shot Federated Learning with ViTs11 May 2026
- 2026Mixture-of-Modality-Experts with Holistic Token Learning for Fine-Grained Multimodal Visual Analytics in Driver Action Recognition7 Apr 2026
- 2026RAViT: Resolution-Adaptive Vision Transformer27 Feb 2026
- 2025MSRNet: A Multi-Scale Recursive Network for Camouflaged Object Detection16 Nov 2025
- 2025Block-based Symmetric Pruning and Fusion for Efficient Vision Transformers16 Jul 2025
- 2025RePaViT: Scalable Vision Transformer Acceleration via Structural Reparameterization on Feedforward Network Layers28 May 2025
- 2025Dual-level Fuzzy Learning with Patch Guidance for Image Ordinal Regression9 May 2025
- 2025Dynamic Accumulated Attention Map for Interpreting Evolution of Decision-Making in Vision Transformer18 Mar 2025
- 2025Vision Transformer Neural Architecture Search for Out-of-Distribution Generalization: Benchmark and Insights7 Jan 2025
- 2024Unprejudiced Training Auxiliary Tasks Makes Primary Better: A Multi-Task Learning Perspective27 Dec 2024
- 2024The Impact of the Single-Label Assumption in Image Recognition Benchmarking24 Dec 2024
12 newest of 120 All 120 (JSON)