mlsanityData to 7 Oct 2026

Weight decay induces low-rank attention layers

arXiv 2410.23819 ↗First posted 31 Oct 2024cs.LGcited by 27

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  5. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  6. 2013Exact solutions to the nonlinear dynamics of learning in deep linear neural networkscited by 748
  7. 2019Implicit Regularization in Deep Matrix Factorizationcited by 402
  8. 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 333
  9. 2017Implicit Regularization in Matrix Factorizationcited by 318
  10. 2021A Geometric Analysis of Neural Collapse with Unconstrained Featurescited by 226
  11. 2020Towards Resolving the Implicit Bias of Gradient Descent for Matrix Factorization: Greedy Low-Rank Learningcited by 148
  12. 2017L2 Regularization versus Batch and Weight Normalizationcited by 121
13 more
  1. 2023The Truth is in There: Improving Reasoning in Language Models with Layer-Selective Rank Reductioncited by 120
  2. 2020Implicit Regularization in Deep Learning May Not Be Explainable by Normscited by 118
  3. 2018Three Mechanisms of Weight Decay Regularizationcited by 112
  4. 2020Low-Rank Bottleneck in Multi-head Attention Modelscited by 88
  5. 2014Guaranteed Matrix Completion via Non-convex Factorizationcited by 81
  6. 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 72
  7. 2022Implicit Bias of Large Depth Networks: a Notion of Rank for Nonlinear Functionscited by 38
  8. 2023Implicit bias of SGD in L2-regularized linear DNNs: One-way jumps from high to low rankcited by 28
  9. 2020On the Overlooked Pitfalls of Weight Decay and How to Mitigate Them: A Gradient-Norm Perspectivecited by 25
  10. 2022Exact Solutions of a Deep Linear Networkcited by 24
  11. 2022spred: Solving L1 Penalty with SGDcited by 16
  12. 2018Low Rank Regularization: A Reviewcited by 15
  13. 2022Training a Vision Transformer from scratch in less than 24 hours with 1 GPUcited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 15; 2026: 12.

27 papers.

Sort:

By area:

  1. 2025LoRA Training Provably Converges to a Low-Rank Global Minimum or It Fails Loudly (But it Probably Won't Fail)cited by 19
  2. 2025AlphaDecay: Module-wise Weight Decay for Heavy-Tailed Balancing in LLMscited by 12
  3. 2025Parameter Symmetry Potentially Unifies Deep Learning Theorycited by 11
  4. 2025Mirror, Mirror of the Flow: How Does Regularization Shape Implicit Bias?cited by 10
  5. 2025Hardware-Efficient Attention for Fast Decodingcited by 10
  6. 2025EigenTrack: Spectral Activation Feature Tracking for Hallucination and Out-of-Distribution Detection in LLMs and VLMscited by 10
  7. 2025Robust Layerwise Scaling Rules by Proper Weight Decay Tuningcited by 8
  8. 2025Mechanistic Insights into Grokking from the Embedding Layercited by 6
  9. 2025Single-Head Attention in High Dimensions: A Theory of Generalization, Weights Spectra, and Scaling Lawscited by 5
  10. 2026The Effect of Mini-Batch Noise on the Implicit Bias of Adamcited by 4
  11. 2026Weight Decay Improves Language Model Plasticitycited by 4
  12. 2025Unpacking Softmax: How Temperature Drives Representation Collapse, Compression, and Generalizationcited by 3
15 more
  1. 2025Differentiable Sparsity via D-Gating: Simple and Versatile Structured Penalizationcited by 3
  2. 2026Learnable Multipliers: Freeing the Scale of Language Model Matrix Layerscited by 2
  3. 2026Breaking the Reversal Curse in Autoregressive Language Models via Identity Bridgecited by 2
  4. 2026The Gradient Does Not See Rank: Rank-Indifference in Matrix-CODI on ProsQAcited by 2
  5. 2025On the Neural Feature Ansatz for Deep Neural Networkscited by 1
  6. 2025Correction of Decoupled Weight Decaycited by 1
  7. 2026QUEST: A robust attention formulation using query-modulated spherical attentioncited by 1
  8. 2026Weight-Decay Turns Transformer Loss Landscapes Villani: Functional-Analytic Foundations for Optimization and Generalizationcited by 1
  9. 2026Sink vs. diagonal patterns as mechanisms for attention switch and oversmoothing preventioncited by 1
  10. 2025Understanding Sensitivity of Differential Attention through the Lens of Adversarial Robustnesscited by 0
  11. 2025Post-Norm can Resharpen Attentioncited by 0
  12. 2026Reversible Foundations: Training a 120B Sparse MoE through State-Preserving Scalingcited by 0
  13. 2026Mahalanobis-Based Multi-Head Attention for Complex State Propagationcited by 0
  14. 2026Syntax vs. Semantics: How Transformers Learn Deep Dependenciescited by 0
  15. 2026A Mesoscopic View of Transformer Weights Through Row and Column Scale Fieldscited by 0