Weight decay induces low-rank attention layers
Not on the map. Why?
Abstract (arXiv)
The effect of regularizers such as weight decay when training deep neural networks is not well understood. We study the influence of weight decay as well as L2-regularization when training neural network models in which parameter matrices interact multiplicatively. This combination is of particular interest as this parametrization is common in attention layers, the workhorse of transformers. Here, key-query, as well as value-projection parameter matrices, are multiplied directly with each other: WKTWQ and PWV. We extend previous results and show on one hand that any local minimum of a L2-regularized loss of the form L(AB^top) + λ (|A|2 + |B|2) coincides with a minimum of the nuclear norm-regularized loss L(AB^top) + λ|AB^top|_*, and on the other hand that the 2 losses become identical exponentially quickly during training. We thus complement existing works linking L2-regularization with low-rank regularization, and in particular, explain why such regularization on the matrix product affects early stages of training. Based on these theoretical insights, we verify empirically that the key-query and value-projection matrix products WKTWQ, PWV within attention layers, when optimized with weight decay, as usually done in vision tasks and language modelling, indeed induce a significant reduction in the rank of WKTWQ and PWV, even in fully online training. We find that, in accordance with existing work, inducing low rank in attention matrix products can damage language model performance, and observe advantages when decoupling weight decay in attention layers from the rest of the parameters.
Key facts. Cited by 27 papers in the map (data through 7 Oct 2026). Builds on 25 of its 43 references that are in the map. First posted on arXiv 31 Oct 2024.
Builds on
25 of 43 references.
References · 25
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2013Exact solutions to the nonlinear dynamics of learning in deep linear neural networkscited by 748
- 2019Implicit Regularization in Deep Matrix Factorizationcited by 402
- 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 333
- 2017Implicit Regularization in Matrix Factorizationcited by 318
- 2021A Geometric Analysis of Neural Collapse with Unconstrained Featurescited by 226
- 2020Towards Resolving the Implicit Bias of Gradient Descent for Matrix Factorization: Greedy Low-Rank Learningcited by 148
- 2017L2 Regularization versus Batch and Weight Normalizationcited by 121
13 more
- 2023The Truth is in There: Improving Reasoning in Language Models with Layer-Selective Rank Reductioncited by 120
- 2020Implicit Regularization in Deep Learning May Not Be Explainable by Normscited by 118
- 2018Three Mechanisms of Weight Decay Regularizationcited by 112
- 2020Low-Rank Bottleneck in Multi-head Attention Modelscited by 88
- 2014Guaranteed Matrix Completion via Non-convex Factorizationcited by 81
- 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 72
- 2022Implicit Bias of Large Depth Networks: a Notion of Rank for Nonlinear Functionscited by 38
- 2023Implicit bias of SGD in L2-regularized linear DNNs: One-way jumps from high to low rankcited by 28
- 2020On the Overlooked Pitfalls of Weight Decay and How to Mitigate Them: A Gradient-Norm Perspectivecited by 25
- 2022Exact Solutions of a Deep Linear Networkcited by 24
- 2022spred: Solving L1 Penalty with SGDcited by 16
- 2018Low Rank Regularization: A Reviewcited by 15
- 2022Training a Vision Transformer from scratch in less than 24 hours with 1 GPUcited by 6
Built on by
Citing papers per year: 2025: 15; 2026: 12.
27 papers.
Sort:
By area:
- 2025LoRA Training Provably Converges to a Low-Rank Global Minimum or It Fails Loudly (But it Probably Won't Fail)cited by 19
- 2025AlphaDecay: Module-wise Weight Decay for Heavy-Tailed Balancing in LLMscited by 12
- 2025Parameter Symmetry Potentially Unifies Deep Learning Theorycited by 11
- 2025Mirror, Mirror of the Flow: How Does Regularization Shape Implicit Bias?cited by 10
- 2025Hardware-Efficient Attention for Fast Decodingcited by 10
- 2025EigenTrack: Spectral Activation Feature Tracking for Hallucination and Out-of-Distribution Detection in LLMs and VLMscited by 10
- 2025Robust Layerwise Scaling Rules by Proper Weight Decay Tuningcited by 8
- 2025Mechanistic Insights into Grokking from the Embedding Layercited by 6
- 2025Single-Head Attention in High Dimensions: A Theory of Generalization, Weights Spectra, and Scaling Lawscited by 5
- 2026The Effect of Mini-Batch Noise on the Implicit Bias of Adamcited by 4
- 2026Weight Decay Improves Language Model Plasticitycited by 4
- 2025Unpacking Softmax: How Temperature Drives Representation Collapse, Compression, and Generalizationcited by 3
15 more
- 2025Differentiable Sparsity via D-Gating: Simple and Versatile Structured Penalizationcited by 3
- 2026Learnable Multipliers: Freeing the Scale of Language Model Matrix Layerscited by 2
- 2026Breaking the Reversal Curse in Autoregressive Language Models via Identity Bridgecited by 2
- 2026The Gradient Does Not See Rank: Rank-Indifference in Matrix-CODI on ProsQAcited by 2
- 2025On the Neural Feature Ansatz for Deep Neural Networkscited by 1
- 2025Correction of Decoupled Weight Decaycited by 1
- 2026QUEST: A robust attention formulation using query-modulated spherical attentioncited by 1
- 2026Weight-Decay Turns Transformer Loss Landscapes Villani: Functional-Analytic Foundations for Optimization and Generalizationcited by 1
- 2026Sink vs. diagonal patterns as mechanisms for attention switch and oversmoothing preventioncited by 1
- 2025Understanding Sensitivity of Differential Attention through the Lens of Adversarial Robustnesscited by 0
- 2025Post-Norm can Resharpen Attentioncited by 0
- 2026Reversible Foundations: Training a 120B Sparse MoE through State-Preserving Scalingcited by 0
- 2026Mahalanobis-Based Multi-Head Attention for Complex State Propagationcited by 0
- 2026Syntax vs. Semantics: How Transformers Learn Deep Dependenciescited by 0
- 2026A Mesoscopic View of Transformer Weights Through Row and Column Scale Fieldscited by 0
- 2026A Mesoscopic View of Transformer Weights Through Row and Column Scale Fields25 Sep 2026
- 2026The Gradient Does Not See Rank: Rank-Indifference in Matrix-CODI on ProsQA2 Sep 2026
- 2026Mahalanobis-Based Multi-Head Attention for Complex State Propagation25 Aug 2026
- 2026Syntax vs. Semantics: How Transformers Learn Deep Dependencies26 Jun 2026
- 2026Reversible Foundations: Training a 120B Sparse MoE through State-Preserving Scaling5 Jun 2026
- 2026Sink vs. diagonal patterns as mechanisms for attention switch and oversmoothing prevention8 May 2026
- 2026Weight-Decay Turns Transformer Loss Landscapes Villani: Functional-Analytic Foundations for Optimization and Generalization7 May 2026
- 2026QUEST: A robust attention formulation using query-modulated spherical attention31 Mar 2026
- 2026Weight Decay Improves Language Model Plasticity11 Feb 2026
- 2026Breaking the Reversal Curse in Autoregressive Language Models via Identity Bridge2 Feb 2026
- 2026The Effect of Mini-Batch Noise on the Implicit Bias of Adam2 Feb 2026
- 2026Learnable Multipliers: Freeing the Scale of Language Model Matrix Layers8 Jan 2026
15 more
- 2025Correction of Decoupled Weight Decay9 Dec 2025
- 2025On the Neural Feature Ansatz for Deep Neural Networks17 Oct 2025
- 2025Robust Layerwise Scaling Rules by Proper Weight Decay Tuning17 Oct 2025
- 2025Post-Norm can Resharpen Attention9 Oct 2025
- 2025Understanding Sensitivity of Differential Attention through the Lens of Adversarial Robustness1 Oct 2025
- 2025Single-Head Attention in High Dimensions: A Theory of Generalization, Weights Spectra, and Scaling Laws29 Sep 2025
- 2025Differentiable Sparsity via D-Gating: Simple and Versatile Structured Penalization28 Sep 2025
- 2025EigenTrack: Spectral Activation Feature Tracking for Hallucination and Out-of-Distribution Detection in LLMs and VLMs19 Sep 2025
- 2025AlphaDecay: Module-wise Weight Decay for Heavy-Tailed Balancing in LLMs17 Jun 2025
- 2025Unpacking Softmax: How Temperature Drives Representation Collapse, Compression, and Generalization2 Jun 2025
- 2025Hardware-Efficient Attention for Fast Decoding27 May 2025
- 2025Mechanistic Insights into Grokking from the Embedding Layer21 May 2025
- 2025Mirror, Mirror of the Flow: How Does Regularization Shape Implicit Bias?17 Apr 2025
- 2025LoRA Training Provably Converges to a Low-Rank Global Minimum or It Fails Loudly (But it Probably Won't Fail)13 Feb 2025
- 2025Parameter Symmetry Potentially Unifies Deep Learning Theory7 Feb 2025
- 2025Hardware-Efficient Attention for Fast Decodingcited by 10
- 2025Hardware-Efficient Attention for Fast Decoding27 May 2025
- 2025LoRA Training Provably Converges to a Low-Rank Global Minimum or It Fails Loudly (But it Probably Won't Fail)cited by 19
- 2025AlphaDecay: Module-wise Weight Decay for Heavy-Tailed Balancing in LLMscited by 12
- 2025Parameter Symmetry Potentially Unifies Deep Learning Theorycited by 11
- 2025Mirror, Mirror of the Flow: How Does Regularization Shape Implicit Bias?cited by 10
- 2025EigenTrack: Spectral Activation Feature Tracking for Hallucination and Out-of-Distribution Detection in LLMs and VLMscited by 10
- 2025Robust Layerwise Scaling Rules by Proper Weight Decay Tuningcited by 8
- 2025Mechanistic Insights into Grokking from the Embedding Layercited by 6
- 2025Single-Head Attention in High Dimensions: A Theory of Generalization, Weights Spectra, and Scaling Lawscited by 5
- 2026The Effect of Mini-Batch Noise on the Implicit Bias of Adamcited by 4
- 2026Weight Decay Improves Language Model Plasticitycited by 4
- 2025Unpacking Softmax: How Temperature Drives Representation Collapse, Compression, and Generalizationcited by 3
- 2025Differentiable Sparsity via D-Gating: Simple and Versatile Structured Penalizationcited by 3
12 most cited of 23 All 23 (JSON)
- 2026A Mesoscopic View of Transformer Weights Through Row and Column Scale Fields25 Sep 2026
- 2026Mahalanobis-Based Multi-Head Attention for Complex State Propagation25 Aug 2026
- 2026Syntax vs. Semantics: How Transformers Learn Deep Dependencies26 Jun 2026
- 2026Sink vs. diagonal patterns as mechanisms for attention switch and oversmoothing prevention8 May 2026
- 2026Weight-Decay Turns Transformer Loss Landscapes Villani: Functional-Analytic Foundations for Optimization and Generalization7 May 2026
- 2026QUEST: A robust attention formulation using query-modulated spherical attention31 Mar 2026
- 2026Weight Decay Improves Language Model Plasticity11 Feb 2026
- 2026The Effect of Mini-Batch Noise on the Implicit Bias of Adam2 Feb 2026
- 2026Learnable Multipliers: Freeing the Scale of Language Model Matrix Layers8 Jan 2026
- 2025Correction of Decoupled Weight Decay9 Dec 2025
- 2025On the Neural Feature Ansatz for Deep Neural Networks17 Oct 2025
- 2025Robust Layerwise Scaling Rules by Proper Weight Decay Tuning17 Oct 2025
12 newest of 23 All 23 (JSON)