Dynamic Token Normalization Improves Vision Transformers
Not on the map. Why?
Abstract (arXiv)
Vision Transformer (ViT) and its variants (e.g., Swin, PVT) have achieved great success in various computer vision tasks, owing to their capability to learn long-range contextual information. Layer Normalization (LN) is an essential ingredient in these models. However, we found that the ordinary LN makes tokens at different positions similar in magnitude because it normalizes embeddings within each token. It is difficult for Transformers to capture inductive bias such as the positional context in an image with LN. We tackle this problem by proposing a new normalizer, termed Dynamic Token Normalization (DTN), where normalization is performed both within each token (intra-token) and across different tokens (inter-token). DTN has several merits. Firstly, it is built on a unified formulation and thus can represent various existing normalization methods. Secondly, DTN learns to normalize tokens in both intra-token and inter-token manners, enabling Transformers to capture both the global contextual information and the local positional context. Thirdly, by simply replacing LN layers, DTN can be readily plugged into various vision transformers, such as ViT, Swin, PVT, LeViT, T2T-ViT, BigBird and Reformer. Extensive experiments show that the transformer equipped with DTN consistently outperforms baseline model with minimal extra parameters and computational overhead. For example, DTN outperforms LN by 0.5% - 1.2% top-1 accuracy on ImageNet, by 1.2 - 1.4 box AP in object detection on COCO benchmark, by 2.3% - 3.9% mCE in robustness experiments on ImageNet-C, and by 0.5% - 0.8% accuracy in Long ListOps on Long-Range Arena. Codes will be made public at urlhttps://github.com/wqshao126/DTN
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 36 of its 42 references that are in the map. First posted on arXiv 5 Dec 2021.
Builds on
36 of 42 references.
References · 36
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
- 2016Layer Normalizationcited by 5,669
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
24 more
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2020Reformer: The Efficient Transformercited by 1,668
- 2018Group Normalizationcited by 1,524
- 2016Instance Normalization: The Missing Ingredient for Fast Stylizationcited by 1,198
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,101
- 2020Designing Network Design Spacescited by 960
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 947
- 2017Revisiting Unreasonable Effectiveness of Data in Deep Learning Eracited by 919
- 2021Segmenter: Transformer for Semantic Segmentationcited by 855
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 751
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 700
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2019On the Relationship between Self-Attention and Convolutional Layerscited by 300
- 2013Learning Factored Representations in a Deep Mixture of Expertscited by 278
- 2019Understanding and Improving Layer Normalizationcited by 217
- 2019Transformers without Tears: Improving the Normalization of Self-Attentioncited by 153
- 2018ListOps: A Diagnostic Dataset for Latent Tree Learningcited by 129
- 2018Channel Gating Neural Networkscited by 80
- 2018Towards Understanding Regularization in Batch Normalizationcited by 56
- 2019Switchable Normalization for Learning-to-Normalize Deep Representationcited by 16
- 2019SSN: Learning Sparse Switchable Normalization via SparsestMaxcited by 14
- 2019Differentiable Learning-to-Group Channels via Groupable Convolutional Neural Networkscited by 6
Built on by
Citing papers per year: 2022: 5; 2023: 3; 2024: 1; 2025: 0; 2026: 1.
10 papers.
- 2022QuadTree Attention for Vision Transformerscited by 129
- 2022Masked Image Modeling with Denoising Contrastcited by 45
- 2022VSA: Learning Varied-Size Window Attention in Vision Transformerscited by 43
- 2023HRDFuse: Monocular 360degDepth Estimation by Collaboratively Learning Holistic-with-Regional Depth Distributionscited by 37
- 2022Not All Models Are Equal: Predicting Model Transferability in a Self-challenging Fisher Spacecited by 30
- 2023Real-time Controllable Denoising for Image and Videocited by 9
- 2022Unified Normalization for Accelerating and Stabilizing Transformerscited by 6
- 2024Data-independent Module-aware Pruning for Hierarchical Vision Transformerscited by 6
- 2026AdaCluster: Adaptive Query-Key Clustering for Sparse Attention in Video Generationcited by 6
- 2023Cached Transformers: Improving Transformers with Differentiable Memory Cachecited by 2
- 2026AdaCluster: Adaptive Query-Key Clustering for Sparse Attention in Video Generation20 Apr 2026
- 2024Data-independent Module-aware Pruning for Hierarchical Vision Transformers21 Apr 2024
- 2023Cached Transformers: Improving Transformers with Differentiable Memory Cache20 Dec 2023
- 2023Real-time Controllable Denoising for Image and Video29 Mar 2023
- 2023HRDFuse: Monocular 360degDepth Estimation by Collaboratively Learning Holistic-with-Regional Depth Distributions21 Mar 2023
- 2022Unified Normalization for Accelerating and Stabilizing Transformers2 Aug 2022
- 2022Not All Models Are Equal: Predicting Model Transferability in a Self-challenging Fisher Space7 Jul 2022
- 2022Masked Image Modeling with Denoising Contrast19 May 2022
- 2022VSA: Learning Varied-Size Window Attention in Vision Transformers18 Apr 2022
- 2022QuadTree Attention for Vision Transformers8 Jan 2022