Abstract
Layer normalization (LN) is a ubiquitous technique in deep learning, yet its theoretical role has been primarily understood through the lens of optimization and training stability. This paper investigates a new theoretical direction for LN, focusing on its inherent nonlinearity and representation capacity. We analyze the representation capacity of a network composed solely of layerwise linear and LN transformations, referred to as an LN-Net. We theoretically demonstrate that an LN-Net with a width of only 3 neurons per layer and $O(m)$ depth can correctly classify $m$ samples with arbitrary label assignments. Furthermore, we show that the nonlinearity of LN can be amplified through group partitioning (LN-G). Our empirical results support these findings, showing that LN-Nets can achieve significant accuracy on complex tasks even in the absence of traditional activation functions like ReLU.
Introduction
In modern deep learning architectures, particularly Transformers and Large Language Models, Layer Normalization (LN) is considered standard equipment. Traditionally, its utility has been attributed to its ability to smooth the loss landscape, provide scale invariance, and prevent gradient explosions. However, the contribution of LN to the nonlinearity of a network has remained largely overlooked. Most practitioners assume that the "heavy lifting" of nonlinear representation is performed by activation functions (e.g., ReLU, GELU), while LN serves as a passive helper.
This research challenges that assumption by asking: Is LN itself a nonlinear transformation, and how much representation power does it contribute to a model? By isolating LN from traditional activations, we reveal that LN is a powerful spatial warper capable of complex classification.
The LN-Net Framework
To isolate the effects of Layer Normalization, the authors introduce the LN-Net, a neural network architecture that alternates exclusively between linear transformations and LN operations. By intentionally omitting standard activation functions, the LN-Net serves as a laboratory to measure the raw representation capacity of normalization.
Measuring Nonlinearity
The study employs two primary metrics to quantify LN's nonlinearity:
- Sum of Squares Ratio (SSR): The authors define a Linear SSR (LSSR) as a lower bound for class separability using only linear transformations. They mathematically prove that LN can exceed this bound, performing operations that are impossible for a purely linear layer.
- Hessian-based Measurement: By calculating the Frobenius norm of the Hessian matrix of the LN transformation, the authors provide a gradient-based measure of curvature. A higher Hessian norm indicates a more "nonlinear" function.
Theoretical Insights: The Width-3 Theorem
One of the most striking theoretical contributions of this work is the proof regarding the universal representation capacity of deep LN-Nets. The authors demonstrate that an LN-Net with a width of only 3 neurons per layer can correctly classify $m$ samples with any label assignment, provided the network has sufficient depth ($O(m)$ layers).
This is achieved through the Projection Merge Algorithm (PMA) and the Parallelization Breaking Algorithm (PBA). These algorithms provide a constructive proof that LN acts as a spatial warper; unlike linear layers that only rotate or scale space, LN projects data onto a hypersphere and centers it, fundamentally altering the geometric relationship between data points in a way that enables classification.
Amplifying Nonlinearity via Grouping (LN-G)
The authors further hypothesize that the nonlinearity of LN is not fixed. By dividing neurons into groups and performing normalization within each group—a variant termed Group-based LN (LN-G)—the model gains additional degrees of freedom to warp the representation space. The paper theoretically proves and empirically validates that as the number of groups increases, the nonlinearity (measured via the Hessian) also increases. This suggests that Group Normalization is not just a variation for small batch sizes, but a method to increase the expressive power of the network.
Empirical Validation
Breaking the Linear Bound
On the CIFAR-10-RL task (where labels are randomly assigned to test memorization), a standard linear classifier is mathematically capped at approximately 18.5% accuracy. In contrast, an LN-Net reached 55.85% accuracy. This empirical gap proves that LN provides significant nonlinear representation power that linear layers lack.
The "ReLU-less" ResNet
In a provocative experiment, the authors trained a ResNet on CIFAR-10 after removing all ReLU activations. By replacing standard LN with a specific variant called LN-G-Position, the network achieved a test accuracy of 86.66%. This result suggests that in sufficiently deep models, normalization layers can perform the functional role typically attributed to activation functions.
Practical Applications
Beyond theoretical models, the authors integrated LN-G into standard architectures:
- Transformers: In German-to-English translation (IWSLT14), LN-G yielded a +0.22 BLEU score improvement.
- Vision Transformers: In Tiny-ViT on CIFAR-10, replacing standard LN with LN-G resulted in a +0.45% accuracy gain.
Conclusion and Future Work
This research shifts the understanding of Layer Normalization from a mere optimization stabilizer to a core component of a network's representation capacity. While the theoretical depth required for width-3 networks ($O(m)$) is currently impractical for massive datasets, the existence of such a bound opens new doors for neural architecture design.
Future work remains in addressing the optimization challenges of LN-Nets, which possess a more complex, non-convex landscape than ReLU-based networks. However, the discovery that normalization can act as an activation function suggests a future where the boundaries between "normalization" and "activation" are increasingly blurred.
Summary updated