Enjoy Your Layer Normalization with the Computational Efficiency of RMSNorm

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Guo, Yuxin, Yue, Yihao, Ni, Yunhao, Ruan, Yizhou, Luo, Jie, Wu, Wenjun, Huang, Lei
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917494515564544
author Guo, Yuxin
Yue, Yihao
Ni, Yunhao
Ruan, Yizhou
Luo, Jie
Wu, Wenjun
Huang, Lei
author_facet Guo, Yuxin
Yue, Yihao
Ni, Yunhao
Ruan, Yizhou
Luo, Jie
Wu, Wenjun
Huang, Lei
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2605_14521
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Enjoy Your Layer Normalization with the Computational Efficiency of RMSNorm
Guo, Yuxin
Yue, Yihao
Ni, Yunhao
Ruan, Yizhou
Luo, Jie
Wu, Wenjun
Huang, Lei
Machine Learning
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.
title Enjoy Your Layer Normalization with the Computational Efficiency of RMSNorm
topic Machine Learning
url https://arxiv.org/abs/2605.14521