Lune

NeurIPS2024顶会

Weight decay induces low-rank attention layers

Seijin Kobayashi, Yassir Akram, Johannes von Oswald

摘要

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 L2L2-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: WKTWQW_K^TW_Q and PWVPW_V. We extend previous results and show on one hand that any local minimum of a L2L2-regularized loss of the form L(AB⊤)+λ(∥A∥2+∥B∥2)L(AB^\top) + \lambda (\|A\|^2 + \|B\|^2) coincides with a minimum of the nuclear norm-regularized loss L(AB⊤)+λ∥AB⊤∥∗L(AB^\top) + \lambda\|AB^\top\|_*, and on the other hand that the 2 losses become identical exponentially quickly during training. We thus complement existing works linking L2L2-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,PWVW_K^TW_Q, PW_V 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 WKTWQW_K^TW_Q and PWVPW_V, 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.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 14 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • LoRA: Low-Rank Adaptation of Large Language Models 引用了 Language Models are Few-Shot Learners
  • Weight Decay Improves Language Model Plasticity 引用了 LoRA: Low-Rank Adaptation of Large Language Models
  • Weight Decay Improves Language Model Plasticity 引用了 Language Models are Few-Shot Learners
  • Hyena Hierarchy: Towards Larger Convolutional Language Models 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Hyena Hierarchy: Towards Larger Convolutional Language Models 引用了 Language Models are Few-Shot Learners
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale 引用了 Language Models are Few-Shot Learners
  • Single-Head Attention in High Dimensions: A Theory of Generalization, Weights Spectra, and Scaling Laws 引用了 LoRA: Low-Rank Adaptation of Large Language Models
  • Single-Head Attention in High Dimensions: A Theory of Generalization, Weights Spectra, and Scaling Laws 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Single-Head Attention in High Dimensions: A Theory of Generalization, Weights Spectra, and Scaling Laws 引用了 Language Models are Few-Shot Learners
  • AlphaDecay: Module-wise Weight Decay for Heavy-Tailed Balancing in LLMs 引用了 Language Models are Few-Shot Learners
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper14

  1. AlphaDecay: Module-wise Weight Decay for Heavy-Tailed Balancing in LLMsDi He, Songjun Tu, Ajay Jaiswal, Li Shen 等NeurIPS 2025 · 14 次引用
  2. Single-Head Attention in High Dimensions: A Theory of Generalization, Weights Spectra, and Scaling LawsFabrizio Boncoraglio, Vittorio Erba, Emanuele Troiani, Yizhou Xu 等ICML 2026 · 5 次引用
  3. Generalization Bounds for Rank-sparse Neural NetworksAntoine Ledent, Rodrigo Alves, Yunwen LeiNeurIPS 2025 · 4 次引用
  4. Differentiable Sparsity via DD-Gating: Simple and Versatile Structured PenalizationChris Kolb, Laetitia Frost, Bernd Bischl, David RügamerNeurIPS 2025 · 4 次引用
  5. Weight Decay Improves Language Model PlasticityTessa Han, Sebastian Bordt, Hanlin Zhang, Sham KakadeICML 2026 · 3 次引用

它引用的 Paper18

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
  3. LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu 等ICLR 2022 · 18,833 次引用
  4. Hyena Hierarchy: Towards Larger Convolutional Language ModelsMichael Poli, Stefano Massaroli, Eric Nguyen, Daniel Y. Fu 等ICML 2023 · 481 次引用
  5. A Geometric Analysis of Neural Collapse with Unconstrained FeaturesZhihui Zhu, Tianyu Ding, Jinxin Zhou, Xiao Li 等NeurIPS 2021 · 303 次引用

相关 Paper

  1. Initialization and Regularization of Factorized Neural LayersMikhail Khodak, Neil A. Tenenholtz, Lester Mackey, Nicolò FusiICLR 2021 · 74 次引用
  2. Understanding Decoupled and Early Weight DecayJohan Bjorck, Kilian Q. Weinberger, Carla P. GomesAAAI 2021 · 37 次引用
  3. Why Do We Need Weight Decay in Modern Deep Learning?Francesco D'Angelo, Maksym Andriushchenko, Aditya Vardhan Varre, Nicolas FlammarionNeurIPS 2024 · 101 次引用
  4. Understanding the Disharmony between Weight Normalization Family and Weight DecayXiang Li, Shuo Chen, Jian YangAAAI 2020 · 18 次引用
  5. On the Role of Attention Masks and LayerNorm in TransformersXinyi Wu, Amir Ajorlou, Yifei Wang, Stefanie Jegelka 等NeurIPS 2024 · 54 次引用
黄昏的海面,两侧是细线勾勒的悬崖