Abstract
Parameter-efficient fine-tuning (PEFT) has become essential for adapting large pre-trained models to downstream tasks. However, existing methods like LoRA often employ a static rank allocation across all layers, which fails to account for the varying importance of different weight matrices. We present Dynamic Low-Rank Adaptation (DoRA), a novel approach that decomposes low-rank updates into single-rank components and dynamically prunes them during training. By strategically allocating its parameter budget, DoRA consistently outperforms standard LoRA and full-model fine-tuning across diverse NLP benchmarks while utilizing less than 0.3% of the original parameters.
Introduction
The computational cost of fine-tuning massive Pre-trained Language Models (PLMs) has led to the widespread adoption of PEFT techniques. LoRA (Low-Rank Adaptation) is currently the industry standard, injecting trainable low-rank matrices into frozen model layers. Despite its success, LoRA's uniform rank assignment is inherently inefficient. Not all layers or weight matrices (e.g., Query, Key, Value, Feed-Forward) contribute equally to task adaptation. Some require high-capacity updates, while others may remain nearly static.
Previous attempts to address this, such as AdaLoRA, utilized Singular Value Decomposition (SVD) to adjust ranks. However, SVD-based methods are computationally intensive and can discard valuable information. DoRA addresses these limitations by introducing a flexible, importance-aware allocation strategy that maximizes performance within a strict parameter budget.
Methodology
DoRA's architecture is built upon three primary technical innovations designed to move beyond the "one-size-fits-all" rank distribution.
Component-wise Decomposition
Unlike standard LoRA, which represents an update as a single product of two low-rank matrices, DoRA decomposes the update into a sum of $r'$ single-rank components. Each component $i$ consists of a triplet: two vectors ($A_i$ and $B_i$) and a scalar magnitude $c_i$. This formulation allows for granular control over individual rank contributions.
Importance Scoring and Pruning
During the training process, DoRA calculates an importance score for each component based on its Frobenius norm. Components that demonstrate minimal contribution to the overall model update are systematically pruned by setting their corresponding scalar $c_i$ to zero. This dynamic pruning ensures that the parameter budget is concentrated on the most critical dimensions.
Dimensional Equilibrium Modulator (DEM)
To prevent training instability—such as gradient explosions—that can occur when weights suddenly compensate for pruned dimensions, DoRA incorporates the Dimensional Equilibrium Modulator (DEM). This regularization term encourages a uniform distribution of elements within the components, ensuring that the pruning process does not destabilize the model's internal representations.
Cubic Pruning Scheduler
DoRA employs a cubic decay pattern for pruning. The model begins with a higher initial rank ($r'$) to broadly explore the parameter space. As training progresses, it gradually prunes down to a target rank ($r$), allowing the model to refine its focus on the most effective update directions.
Experimental Evaluation
The effectiveness of DoRA was validated across several standard NLP benchmarks using RoBERTa-base for NLU and QA tasks, and Bart-base for summarization.
Datasets
- GLUE: A suite of 8 tasks including SST-2 (sentiment), CoLA (linguistic acceptability), and MNLI (inference).
- SQuAD v1.1 & v2.0: Benchmarks for extractive question answering.
- Xsum: A dataset for extreme single-sentence summarization.
Key Results and Insights
DoRA demonstrated superior performance across all evaluated tasks, often surpassing both LoRA and full-model fine-tuning.
Performance Gains
On the GLUE benchmark, DoRA outperformed LoRA by an average of 0.84% to 0.88% across different parameter budgets. Notably, on the CoLA dataset, DoRA achieved a 1.73% improvement over the best baseline. In question answering (SQuAD v2.0), DoRA reached an F1 score of 83.53, exceeding LoRA (82.34) and full fine-tuning (83.09). These results were achieved with only 0.34M trainable parameters (~0.3% of total model size).
Strategic Layer Preference
Visualization of the final rank distribution reveals that DoRA identifies specific "hotspots" in the model. Intermediate layers, particularly Query ($W_q$) and Key ($W_k$) matrices, typically retain a higher parameter budget. Conversely, Value ($W_v$) matrices and the final layers of the Feed-Forward Network ($W_{f2}$) are often pruned more aggressively.
The Exploration Advantage
A critical finding is that starting with a higher rank and pruning down is more effective than starting at the target rank. This "exploration-then-refinement" strategy allows the model to discover optimal update directions that are missed by static methods. Furthermore, by focusing updates on essential dimensions, DoRA acts as a regularizer, reducing noise and preventing overfitting compared to full fine-tuning.
Conclusion and Future Work
DoRA represents a significant step forward in parameter-efficient fine-tuning by enabling dynamic, importance-aware rank allocation. While highly effective on base-sized models, future research should investigate its scalability to Large Language Models (LLMs) and its performance on more diverse tasks such as machine translation and multimodal learning. Although the importance scoring adds slight computational overhead, the performance gains and parameter efficiency make DoRA a compelling alternative to standard LoRA.
Summary updated