Lune

NeurIPS2023Top-tier venue

On the impact of activation and normalization in obtaining isometric embeddings at initialization

Amir Joudaki, Hadi Daneshmand, Francis R. Bach

Abstract

In this paper, we explore the structure of the penultimate Gram matrix in deep neural networks, which contains the pairwise inner products of outputs corresponding to a batch of inputs. In several architectures it has been observed that this Gram matrix becomes degenerate with depth at initialization, which dramatically slows training. Normalization layers, such as batch or layer normalization, play a pivotal role in preventing the rank collapse issue. Despite promising advances, the existing theoretical results do not extend to layer normalization, which is widely used in transformers, and can not quantitatively characterize the role of non-linear activations. To bridge this gap, we prove that layer normalization, in conjunction with activation layers, biases the Gram matrix of a multilayer perceptron towards the identity matrix at an exponential rate with depth at initialization. We quantify this rate using the Hermite expansion of the activation function. Code is available at: https://github.com/ajoudaki/deepnet-isometry

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Attention is not all you need: pure attention loses rank doubly exponentially with depth cites Batch normalization provably avoids ranks collapse for randomly initialised deep networks
  • Understanding the Generalization Benefit of Normalization Layers: Sharpness Reduction cites Batch normalization provably avoids ranks collapse for randomly initialised deep networks
  • Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamics cites Attention is not all you need: pure attention loses rank doubly exponentially with depth
  • Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamics cites Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapse
  • Towards Training Without Depth Limits: Batch Normalization Without Gradient Explosion cites Attention is not all you need: pure attention loses rank doubly exponentially with depth
  • Towards Training Without Depth Limits: Batch Normalization Without Gradient Explosion cites Batch normalization provably avoids ranks collapse for randomly initialised deep networks
  • Towards Training Without Depth Limits: Batch Normalization Without Gradient Explosion cites Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapse
  • Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapse cites Attention is not all you need: pure attention loses rank doubly exponentially with depth
  • Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapse cites Batch normalization provably avoids ranks collapse for randomly initialised deep networks
  • Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapse cites On Layer Normalization in the Transformer Architecture
  • On the Role of Attention Masks and LayerNorm in Transformers cites Attention is not all you need: pure attention loses rank doubly exponentially with depth
  • On the Role of Attention Masks and LayerNorm in Transformers cites Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapse
  • On the Role of Attention Masks and LayerNorm in Transformers cites On Layer Normalization in the Transformer Architecture
  • Understanding and Minimising Outlier Features in Transformer Training cites Attention is not all you need: pure attention loses rank doubly exponentially with depth
  • Understanding and Minimising Outlier Features in Transformer Training cites Towards Training Without Depth Limits: Batch Normalization Without Gradient Explosion
  • Understanding and Minimising Outlier Features in Transformer Training cites On Layer Normalization in the Transformer Architecture
  • Understanding and Minimising Outlier Features in Transformer Training cites Depthwise Hyperparameter Transfer in Residual Networks: Dynamics and Scaling Limit
  • Depthwise Hyperparameter Transfer in Residual Networks: Dynamics and Scaling Limit cites Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapse
  • Depthwise Hyperparameter Transfer in Residual Networks: Dynamics and Scaling Limit cites On Layer Normalization in the Transformer Architecture
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. On the Role of Attention Masks and LayerNorm in TransformersXinyi Wu, Amir Ajorlou, Yifei Wang, Stefanie Jegelka et al.NeurIPS 2024 · 54 citations
  2. Depthwise Hyperparameter Transfer in Residual Networks: Dynamics and Scaling LimitBlake Bordelon, Lorenzo Noci, Mufan Bill Li, Boris Hanin et al.ICLR 2024 · 54 citations
  3. Understanding and Minimising Outlier Features in Transformer TrainingBobby He, Lorenzo Noci, Daniele Paliotta, Imanol Schlag et al.NeurIPS 2024 · 27 citations
  4. Towards Training Without Depth Limits: Batch Normalization Without Gradient ExplosionAlexandru Meterez, Amir Joudaki, Francesco Orabona, Alexander Immer et al.ICLR 2024 · 11 citations
  5. Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention DynamicsHugo Koubbi, Louis Hernandez, Matthieu BoussardICML 2026 · 7 citations

Builds on12

  1. On Layer Normalization in the Transformer ArchitectureRuibin Xiong, Yunchang Yang, Di He, Kai Zheng et al.ICML 2020 · 1,388 citations
  2. Attention is not all you need: pure attention loses rank doubly exponentially with depthYihe Dong, Jean-Baptiste Cordonnier, Andreas LoukasICML 2021 · 522 citations
  3. Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank CollapseLorenzo Noci, Sotiris Anagnostidis, Luca Biggio, Antonio Orvieto et al.NeurIPS 2022 · 161 citations
  4. Understanding the Generalization Benefit of Normalization Layers: Sharpness ReductionKaifeng Lyu, Zhiyuan Li, Sanjeev AroraNeurIPS 2022 · 111 citations
  5. Batch normalization provably avoids ranks collapse for randomly initialised deep networksHadi Daneshmand, Jonas Moritz Kohler, Francis R. Bach, Thomas Hofmann et al.NeurIPS 2020 · 73 citations

Related papers

  1. On Bridging the Gap between Mean Field and Finite Width Deep Random Multilayer Perceptron with Batch NormalizationAmir Joudaki, Hadi Daneshmand, Francis R. BachICML 2023 · 4 citations
  2. Beyond BatchNorm: Towards a Unified Understanding of Normalization in Deep LearningEkdeep Singh Lubana, Robert P. Dick, Hidenori TanakaNeurIPS 2021 · 50 citations
  3. Neural Collapse is Globally Optimal in Deep Regularized ResNets and TransformersPeter Súkeník, Christoph H. Lampert, Marco MondelliNeurIPS 2025 · 12 citations
  4. Training invariances and the low-rank phenomenon: beyond linear networksThien Le, Stefanie JegelkaICLR 2022 · 39 citations
  5. Batch Normalization Orthogonalizes Representations in Deep Random NetworksHadi Daneshmand, Amir Joudaki, Francis R. BachNeurIPS 2021 · 47 citations
Dusk over the sea between two cliffs drawn in fine vertical lines