Normalization in Attention Dynamics

Nikita Karagodin, Shu Ge, Yury Polyanskiy, Philippe Rigollet
10/24/2025
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

We study the effect of normalization schemes on token representations in deep transformers. Modeling their evolution as interacting particles on the sphere, we show that normalization acts as a form of speed regulation. This perspective enables a unified analysis of several schemes -- including Post-LN, Pre-LN, Mix-LN, Peri-LN, nGPT -- revealing how they influence clustering dynamics and representation collapse. Our framework clarifies how different schemes shape token representations across layers and provides a principled basis for comparing them, identifying Peri-LN as a particularly effective choice.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{karagodin2025normalization,
  title  = {Normalization in Attention Dynamics},
  author = {Nikita Karagodin and Shu Ge and Yury Polyanskiy and Philippe Rigollet},
  year   = {2025},
  eprint = {2510.22026},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.22026v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.22026.svg)](https://codeofpaper.com/paper/2510.22026)

Discussion