Unified Normalization for Accelerating and Stabilizing Transformers
Not on the map. Why?
Abstract (arXiv)
Solid results from Transformers have made them prevailing architectures in various natural language and vision tasks. As a default component in Transformers, Layer Normalization (LN) normalizes activations within each token to boost the robustness. However, LN requires on-the-fly statistics calculation in inference as well as division and square root operations, leading to inefficiency on hardware. What is more, replacing LN with other hardware-efficient normalization schemes (e.g., Batch Normalization) results in inferior performance, even collapse in training. We find that this dilemma is caused by abnormal behaviors of activation statistics, including large fluctuations over iterations and extreme outliers across layers. To tackle these issues, we propose Unified Normalization (UN), which can speed up the inference by being fused with other linear operations and achieve comparable performance on par with LN. UN strives to boost performance by calibrating the activation and gradient statistics with a tailored fluctuation smoothing strategy. Meanwhile, an adaptive outlier filtration strategy is applied to avoid collapse in training whose effectiveness is theoretically proved and experimentally verified in this paper. We demonstrate that UN can be an efficient drop-in alternative to LN by conducting extensive experiments on language and vision tasks. Besides, we evaluate the efficiency of our method on GPU. Transformers equipped with UN enjoy about 31% inference speedup and nearly 18% memory reduction. Code will be released at https://github.com/hikvision-research/Unified-Normalization.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 43 of its 52 references that are in the map. First posted on arXiv 2 Aug 2022.
Builds on
43 of 52 references.
References · 43
- 2017Attention Is All You Needcited by 60,361
- 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
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,639
- 2020End-to-End Object Detection with Transformerscited by 7,414
- 2017Mask R-CNNcited by 7,277
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
- 2016Layer Normalizationcited by 5,669
- 2016Feature Pyramid Networks for Object Detectioncited by 5,036
31 more
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
- 2020Conformer: Convolution-augmented Transformer for Speech Recognitioncited by 1,863
- 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,616
- 2018Group Normalizationcited by 1,524
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,488
- 2019Root Mean Square Layer Normalizationcited by 1,480
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,475
- 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,385
- 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,228
- 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
- 2020On Layer Normalization in the Transformer Architecturecited by 922
- 2021Going deeper with Image Transformerscited by 764
- 2018ESPnet: End-to-End Speech Processing Toolkitcited by 558
- 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 527
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2021A Survey of Transformerscited by 401
- 2020Do Wide and Deep Networks Learn the Same Things? Uncovering How Neural Network Representations Vary with Width and Depthcited by 245
- 2019Understanding and Improving Layer Normalizationcited by 217
- 2020Understanding the Difficulty of Training Transformerscited by 210
- 2022DaViT: Dual Attention Vision Transformerscited by 175
- 2021Visformer: The Vision-friendly Transformercited by 137
- 2021WeNet: Production oriented Streaming and Non-streaming End-to-End Speech Recognition Toolkitcited by 125
- 2021Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformercited by 115
- 2020Normalization Techniques in Training DNNs: Methodology, Analysis and Applicationcited by 90
- 2020Towards Fully 8-bit Integer Inference for the Transformer Modelcited by 35
- 2018Differentiable Learning-to-Normalize via Switchable Normalizationcited by 33
- 2020Towards Stabilizing Batch Statistics in Backward Propagation of Batch Normalizationcited by 19
- 2019SSN: Learning Sparse Switchable Normalization via SparsestMaxcited by 14
- 2021SOIT: Segmenting Objects with Instance-Aware Transformerscited by 14
- 2021Dynamic Token Normalization Improves Vision Transformerscited by 10
Built on by
Citing papers per year: 2023: 2; 2024: 2; 2025: 2.
6 papers.
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
- 2023Sparse MoE as the New Dropout: Scaling Dense and Self-Slimmable Transformerscited by 59
- 2024SLAB: Efficient Transformers with Simplified Linear Attention and Progressive Re-parameterized Batch Normalizationcited by 17
- 2025Stronger Normalization-Free Transformerscited by 13
- 2025iFormer: Integrating ConvNet and Transformer for Mobile Applicationcited by 9
- 2024Exploring the Benefit of Activation Sparsity in Pre-trainingcited by 5
- 2025Stronger Normalization-Free Transformers11 Dec 2025
- 2025iFormer: Integrating ConvNet and Transformer for Mobile Application26 Jan 2025
- 2024Exploring the Benefit of Activation Sparsity in Pre-training4 Oct 2024
- 2024SLAB: Efficient Transformers with Simplified Linear Attention and Progressive Re-parameterized Batch Normalization19 May 2024
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun 2023
- 2023Sparse MoE as the New Dropout: Scaling Dense and Self-Slimmable Transformers2 Mar 2023
Similar, not cited
Close in wording, no citation either way
- 2026Gated Normalization Removal and Scale Anchoring in Pre-Norm Transformers
- 2025TWEO: Transformers Without Extreme Outliers Enables FP8 Training And Quantization For Dummies
- 2021Mesa: A Memory-saving Training Framework for Transformers
- 2025SOLE: Hardware-Software Co-design of Softmax and LayerNorm for Efficient Transformer Inference
- 2024RepQuant: Towards Accurate Post-Training Quantization of Large Transformer Models via Scale Reparameterization
- 2026The Quantization Benefits of Residual-Free Transformers
- 2026Ghosted Layers: Unconstrained Activation Alignment for Recovering Layer-Pruned LLMs
- 2026Colinearity Decay: Training Quantization-Friendly ViTs with Outlier Decay