LGAICLCVNov 13, 2025

Impact of Layer Norm on Memorization and Generalization in Transformers

arXiv:2511.10566v12 citationsh-index: 4
Originality Incremental advance
AI Analysis

This work addresses the unclear impact of LayerNorm on learning in transformers, which is important for AI researchers, but it is incremental as it builds on existing architectures.

The study investigated how LayerNorm affects memorization and generalization in Pre- and Post-LayerNorm transformers, finding that it stabilizes learning in Pre-LayerNorm models but impacts memorization in Post-LayerNorm models, with early layers being most critical.

Layer Normalization (LayerNorm) is one of the fundamental components in transformers that stabilizes training and improves optimization. In recent times, Pre-LayerNorm transformers have become the preferred choice over Post-LayerNorm transformers due to their stable gradient flow. However, the impact of LayerNorm on learning and memorization across these architectures remains unclear. In this work, we investigate how LayerNorm influences memorization and learning for Pre- and Post-LayerNorm transformers. We identify that LayerNorm serves as a key factor for stable learning in Pre-LayerNorm transformers, while in Post-LayerNorm transformers, it impacts memorization. Our analysis reveals that eliminating LayerNorm parameters in Pre-LayerNorm models exacerbates memorization and destabilizes learning, while in Post-LayerNorm models, it effectively mitigates memorization by restoring genuine labels. We further precisely identify that early layers LayerNorm are the most critical over middle/later layers and their influence varies across Pre and Post LayerNorm models. We have validated it through 13 models across 6 Vision and Language datasets. These insights shed new light on the role of LayerNorm in shaping memorization and learning in transformers.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes