The Impact of Initialization on LoRA Finetuning Dynamics

AI-generated keywords: LoRA Initialization Finetuning Dynamics Pretrained Model Large Language Models

AI-generated Key Points

  • Study on the impact of initialization in Low Rank Adaptation (LoRA)
  • Significance of starting from a pretrained model for finetuning
  • Two initialization schemes: setting B to zero and A to random values
  • Initializing B to zero and A to random consistently outperforms alternative scheme
  • Ability to accommodate larger learning rates without causing output instability
  • Critical role of initialization strategies in optimizing model performance
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Soufiane Hayou, Nikhil Ghosh, Bin Yu

TDLR: Different Initializations lead to completely different finetuning dynamics. One initialization (set A random and B zero) is generally better than the natural opposite initialization. arXiv admin note: text overlap with arXiv:2402.12354
License: CC BY 4.0

Abstract: In this paper, we study the role of initialization in Low Rank Adaptation (LoRA) as originally introduced in Hu et al. (2021). Essentially, to start from the pretrained model as initialization for finetuning, one can either initialize B to zero and A to random (default initialization in PEFT package), or vice-versa. In both cases, the product BA is equal to zero at initialization, which makes finetuning starts from the pretrained model. These two initialization schemes are seemingly similar. They should in-principle yield the same performance and share the same optimal learning rate. We demonstrate that this is an incorrect intuition and that the first scheme (initializing B to zero and A to random) on average yields better performance compared to the other scheme. Our theoretical analysis shows that the reason behind this might be that the first initialization allows the use of larger learning rates (without causing output instability) compared to the second initialization, resulting in more efficient learning of the first scheme. We validate our results with extensive experiments on LLMs.

Submitted to arXiv on 12 Jun. 2024

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2406.08447v1

In their paper titled "The Impact of Initialization on LoRA Finetuning Dynamics," Soufiane Hayou, Nikhil Ghosh, and Bin Yu delve into the role of initialization in Low Rank Adaptation (LoRA). The study focuses on the significance of starting from a pretrained model for finetuning and explores two initialization schemes. These schemes involve setting either B or A to zero and random values respectively. Through theoretical analysis and extensive experiments on Large Language Models (LLMs), the authors demonstrate that initializing B to zero and A to random consistently outperforms the alternative scheme. This is due to its ability to accommodate larger learning rates without causing output instability. The research highlights the critical role of initialization strategies in optimizing model performance and provides valuable insights for practitioners seeking to enhance finetuning processes for LLMs.
Created on 17 Jun. 2024

Assess the quality of the AI-generated content by voting

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

Look for similar papers (in beta version)

By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.