Enjoy Your Layer Normalization with the Computational Efficiency of RMSNorm
Not on the map. Why?
Abstract (arXiv)
Layer normalization (LN) is a fundamental component in modern deep learning, but its per-sample centering and scaling introduce non-negligible inference overhead. RMSNorm improves efficiency by removing the centering operation, yet this may discard benefits associated with centering. This paper propose a framework to determine whether an LN in an arbitrary DNN can be replaced by RMSNorm without changing the model function. The key idea is to fold LN's centering operation into upstream general linear layers by enforcing zero-mean outputs through the column-centered constraint (CCC) and column-based weight centering (CBWC). We extend the analysis to arbitrary DNNs, define such LNs as foldable LNs, and develop a graph-based detection algorithm. Our analysis shows that many LNs in widely used architectures are foldable, enabling exact inference-time conversion and end-to-end acceleration of 2% to 12% without changing model predictions. Experiments across multiple task families further show that, when exact equivalence is partially broken in practical training settings, our method remains competitive with vanilla LN while improving efficiency.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 29 of its 47 references that are in the map. First posted on arXiv 14 May 2026.
Builds on
29 of 47 references.
References · 29
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2023Segment Anythingcited by 8,158
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2016Pointer Sentinel Mixture Modelscited by 2,992
17 more
- 2021Masked-attention Mask Transformer for Universal Image Segmentationcited by 2,338
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,548
- 2018Group Normalizationcited by 1,514
- 2019Root Mean Square Layer Normalizationcited by 1,425
- 2019Contrastive Multiview Codingcited by 1,297
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
- 2016Instance Normalization: The Missing Ingredient for Fast Stylizationcited by 1,187
- 2024VMamba: Visual State Space Modelcited by 955
- 2020On Layer Normalization in the Transformer Architecturecited by 906
- 2024TinyLlama: An Open-Source Small Language Modelcited by 604
- 2016Multi30K: Multilingual English-German Image Descriptionscited by 250
- 2020Normalization Techniques in Training DNNs: Methodology, Analysis and Applicationcited by 90
- 2023Pre-RMSNorm and Pre-CRMSNorm Transformers: Equivalent and Efficient Pre-LN Transformerscited by 30
Built on by
Not cited yet.