mlsanityData to 7 Oct 2026

Theoretical Insights into Fine-Tuning Attention Mechanism: Generalization and Optimization

arXiv 2410.02247 ↗First posted 3 Oct 2024cs.LGcited by 9

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs), built on Transformer architectures, exhibit remarkable generalization across a wide range of tasks. However, fine-tuning these models for specific tasks remains resource-intensive due to their extensive parameterization. In this paper, we explore two remarkable phenomena related to the attention mechanism during the fine-tuning of LLMs (where Wq, Wk, and Wv denote the weights of the query, key, and value layers, respectively). The first phenomenon, termed "Unequal Importance of Attention Matrices", highlights the impact of fine-tuning different weight matrices. It shows that optimizing the Wv matrix yields significantly better performance than optimizing the Wk matrix. Fine-tuning only the Wq and Wv matrices is computationally efficient while delivering results comparable to, or even better than fine-tuning all three matrices (Wq, Wk, and Wv). The second phenomenon,"Attention Matrices with Customized Learning Rate Lead to Better Convergence", emphasizes the importance of assigning distinct learning rates to these matrices. Specifically, a higher learning rate for the Wv matrix compared to Wq and Wk accelerates convergence and improves performance. Building on these insights, we propose a new strategy that improves fine-tuning efficiency in terms of both storage and time. Experimental results on benchmark datasets validate the effectiveness of this approach, supporting our theoretical findings. Our analysis lays the theoretical groundwork for configuring and improving algorithms in LLMs fine-tuning.

Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 46 of its 52 references that are in the map. First posted on arXiv 3 Oct 2024.

Builds on

46 of 52 references.

References · 46

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  6. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  7. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  8. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  9. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  10. 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
  11. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  12. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
34 more
  1. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  2. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  3. 2021Towards a Unified View of Parameter-Efficient Transfer Learningcited by 863
  4. 2024DoRA: Weight-Decomposed Low-Rank Adaptationcited by 740
  5. 2023MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Modelscited by 724
  6. 2013Generating Sequences With Recurrent Neural Networkscited by 549
  7. 2024LoRA+: Efficient Low Rank Adaptation of Large Modelscited by 365
  8. 2017Information-theoretic analysis of generalization capability of learning algorithmscited by 299
  9. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 274
  10. 2022Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfercited by 272
  11. 2016Deep Information Propagationcited by 194
  12. 2023Scaling Down to Scale Up: A Guide to Parameter-Efficient Fine-Tuningcited by 171
  13. 2021Noisy Channel Language Model Prompting for Few-Shot Text Classificationcited by 163
  14. 2019Scaling Limits of Wide Neural Networks with Weight Sharing: Gaussian Process Behavior, Gradient Independence, and Neural Tangent Kernel Derivationcited by 146
  15. 2020Reasoning About Generalization via Conditional Mutual Informationcited by 145
  16. 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 136
  17. 2019On the Impact of the Activation Function on Deep Neural Networks Trainingcited by 101
  18. 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 101
  19. 2015How much does your data exploration overfit? Controlling bias via information usagecited by 95
  20. 2023Tensor Programs VI: Feature Learning in Infinite-Depth Neural Networkscited by 94
  21. 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 85
  22. 2024Asymmetry in Low-Rank Adapters of Foundation Modelscited by 81
  23. 2023Max-Margin Token Selection in Attention Mechanismcited by 57
  24. 2020SlimIPL: Language-Model-Free Iterative Pseudo-Labelingcited by 54
  25. 2023Grokking of Hierarchical Structure in Vanilla Transformerscited by 53
  26. 2024The Impact of Initialization on LoRA Finetuning Dynamicscited by 53
  27. 2023Deep Transformers without Shortcuts: Modifying Self-attention for Faithful Signal Propagationcited by 44
  28. 2024Accurate LoRA-Finetuning Quantization of LLMs via Information Retentioncited by 40
  29. 2022On the infinite-depth limit of finite-width neural networkscited by 22
  30. 2020What they do when in doubt: a study of inductive biases in seq2seq learnerscited by 20
  31. 2024Self-attention Networks Localize When QK-eigenspectrum Concentratescited by 19
  32. 2022Two Facets of SDE Under an Information-Theoretic Lens: Generalization of SGD via Training Trajectories and via Terminal Statescited by 11
  33. 2024Sparse Matrix in Large Language Model Fine-tuningcited by 8
  34. 2024Enhancing In-Context Learning Performance with just SVD-Based Weight Pruning: A Theoretical Perspectivecited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 7; 2026: 1.

9 papers.