[Paper Review] DoRA: Weight-Decomposed Low-Rank Adaptation
DoRA decomposes pre-trained weights into magnitude and direction and uses LoRA for directional updates, achieving full-fine-tuning-like learning without extra inference cost and outperforming LoRA across NLP and vision-language tasks.
Among the widely used parameter-efficient fine-tuning (PEFT) methods, LoRA and its variants have gained considerable popularity because of avoiding additional inference costs. However, there still often exists an accuracy gap between these methods and full fine-tuning (FT). In this work, we first introduce a novel weight decomposition analysis to investigate the inherent differences between FT and LoRA. Aiming to resemble the learning capacity of FT from the findings, we propose Weight-Decomposed Low-Rank Adaptation (DoRA). DoRA decomposes the pre-trained weight into two components, magnitude and direction, for fine-tuning, specifically employing LoRA for directional updates to efficiently minimize the number of trainable parameters. By employing \ours, we enhance both the learning capacity and training stability of LoRA while avoiding any additional inference overhead. \ours~consistently outperforms LoRA on fine-tuning LLaMA, LLaVA, and VL-BART on various downstream tasks, such as commonsense reasoning, visual instruction tuning, and image/video-text understanding. Code is available at https://github.com/NVlabs/DoRA.
Motivation & Objective
- Motivate a deeper understanding of why LoRA underperforms FT in capacity despite PEFT benefits.
- Introduce a weight decomposition framework to separate magnitude and direction in weight updates.
- Propose DoRA, which applies LoRA to the directional component while fine-tuning magnitude, to close the FT-LoRA gap.
- Demonstrate DoRA's effectiveness across NLP and vision-language benchmarks without increasing inference cost.
Proposed method
- Reparameterize pre-trained weights into magnitude and direction components using a weight decomposition with norms across columns.
- Apply LoRA-style low-rank updates to the directional component while treating the magnitude component as trainable.
- Show that DoRA’s gradient dynamics resemble FT more than LoRA, including a negative correlation between magnitude and direction updates.
- Optionally detach the norm of the updated direction vector from the gradient to reduce memory during backpropagation.
- Demonstrate compatibility with other LoRA variants (e.g., VeRA) by forming DVoRA and comparing performance.
- Provide ablations on training memory, rank settings, and tuning granularity to validate stability and efficiency.
Experimental results
Research questions
- RQ1How do LoRA and full fine-tuning (FT) differ in their learning patterns when examined through weight magnitude and direction?
- RQ2Can a weight-decomposed approach (DoRA) bridge the capacity gap between LoRA and FT without adding inference cost?
- RQ3Does applying LoRA to the directional component while tuning magnitude improve learning capacity across NLP and vision-language tasks?
- RQ4Is DoRA compatible with other LoRA variants and robust across varying ranks and data regimes?
Key findings
- DoRA consistently outperforms LoRA across LLaMA-7B/13B on commonsense reasoning (e.g., +3.4 / +1.0) and other tasks.
- DoRA improves visual instruction tuning on LLaVA-1.5-7B by +0.6 over LoRA and +1.1 over FT on average.
- DoRA improves image/video-text understanding on VL-BART with gains of +0.9 / +1.9 over LoRA on VQA/GQA/NVLR2/COCO Cap tasks.
- DoRA achieves FT-like learning patterns (negative slope in magnitude-direction updates) and maintains no additional inference latency.
- Training memory for DoRA backprop can be reduced by ~24.4% (LLaMA-7B) and ~12.4% (VL-BART) with negligible accuracy loss when applying a gradient-detachment modification.
- DoRA combined with VeRA as DVoRA shows consistent improvements over VeRA/LoRA with similar or fewer trainable parameters across LLaMA-7B and LLaMA2-7B.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.