Geometry and Dynamics of LayerNorm
Not on the map. Why?
Abstract (arXiv)
A technical note aiming to offer deeper intuition for the LayerNorm function common in deep neural networks. LayerNorm is defined relative to a distinguished 'neural' basis, but it does more than just normalize the corresponding vector elements. Rather, it implements a composition -- of linear projection, nonlinear scaling, and then affine transformation -- on input activation vectors. We develop both a new mathematical expression and geometric intuition, to make the net effect more transparent. We emphasize that, when LayerNorm acts on an N-dimensional vector space, all outcomes of LayerNorm lie within the intersection of an (N-1)-dimensional hyperplane and the interior of an N-dimensional hyperellipsoid. This intersection is the interior of an (N-1)-dimensional hyperellipsoid, and typical inputs are mapped near its surface. We find the direction and length of the principal axes of this (N-1)-dimensional hyperellipsoid via the eigen-decomposition of a simply constructed matrix.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 4 of its 6 references that are in the map. First posted on arXiv 7 May 2024.
Builds on
4 of 6 references.
References · 4
- 2016Layer Normalizationcited by 5,579
- 2020On Layer Normalization in the Transformer Architecturecited by 906
- 2023On the Expressivity Role of LayerNorm in Transformers' Attentioncited by 32
- 2023Traveling Words: A Geometric Interpretation of Transformerscited by 7
Built on by
Citing papers per year: 2024: 1; 2025: 0; 2026: 1.
2 papers.