Abstract
Low-Rank Adaptation (LoRA) is currently the most commonly used Parameter-efficient fine-tuning (PEFT) method. However, it still faces high computational and storage costs to models with billions of parameters. Most previous studies have tackled this issue by using pruning techniques. Nonetheless, these efforts only analyze LoRA parameter features to evaluate their importance, such as parameter count, size, and gradient. In fact, the output of LoRA directly impacts the fine-tuned model. Preliminary experiments indicate that a fraction of LoRA possesses significantly high output values, substantially influencing the layer output. Motivated by the observation, we propose LoRA-drop. Concretely, LoRA-drop evaluates the importance of LoRA based on the LoRA output. Then we retain LoRA for important layers and the other layers share the same LoRA. We conduct abundant experiments with models of different scales on NLU and NLG tasks. Results demonstrate that LoRA-drop can achieve performance comparable to full fine-tuning and LoRA while retaining 50% of the LoRA parameters on average.
Introduction
While Large Language Models (LLMs) have revolutionized natural language processing, fine-tuning them remains computationally prohibitive. Low-Rank Adaptation (LoRA) has emerged as the industry standard for Parameter-Efficient Fine-Tuning (PEFT) by training only a small subset of parameters. However, as models scale and the number of task-specific adapters grows, storage and memory bottlenecks persist.
Existing pruning techniques often attempt to reduce LoRA's footprint by analyzing weight matrices ($\Delta W$) in isolation. We argue that this approach is insufficient because it ignores the dynamic interaction between weights and the hidden states ($x$) flowing through the network. A weight matrix might appear significant based on its magnitude or gradient, but if its input signal is weak, its actual impact on the model's output is negligible.
Methodology: The LoRA-drop Framework
We propose LoRA-drop, a two-stage framework designed to prune LoRA parameters by evaluating their actual output impact.
1. Importance Evaluation
In the first stage, the model is trained for a limited number of steps on a small subset (approximately 10%) of the target data. We then calculate an "importance score" for each layer $i$ by measuring the squared norm of the LoRA module's output: $$g_i = \sum ||\Delta W_i x_i||^2$$ These scores are normalized across all layers to identify which modules are contributing most significantly to the task adaptation.
2. Task Adaptation and the "Drop-and-Share" Mechanism
Layers are ranked by their importance scores. We retain unique LoRA parameters for the most critical layers until a cumulative importance threshold ($T$, typically 0.9) is met.
Crucially, rather than simply discarding the "unimportant" LoRA modules—which can lead to performance degradation—LoRA-drop replaces them with a single shared LoRA module. This "Drop and Share" strategy drastically reduces the total parameter count while ensuring that every layer still receives a baseline level of adaptation.
Experimental Setup and Results
We evaluated LoRA-drop across diverse architectures (RoBERTa-base, RoBERTa-large, Llama2-7b) and tasks including the GLUE benchmark for NLU and datasets like E2E, DialogSum, and GSM8K for NLG.
Key Findings
- Efficiency and Performance: LoRA-drop achieves a 50% reduction in trainable parameters on average. On the GLUE benchmark with RoBERTa-base, it achieved an average score of 86.2, slightly surpassing standard LoRA (86.1) and significantly outperforming other pruning baselines like Sparse Adapter (85.0).
- Scalability to LLMs: When applied to Llama2-7b, LoRA-drop maintained performance parity on NLG tasks (e.g., 34.50 on GSM8K vs. LoRA's 34.04) while using far fewer parameters.
- Robustness: The importance distribution remains stable even with very small data samples (10%), making the evaluation stage highly efficient.
Discussion and Conclusion
Our analysis reveals that layer importance is highly data-dependent; layers critical for reasoning may be redundant for sentiment analysis. By considering the output impact ($\Delta W x$), LoRA-drop captures these dynamics more effectively than weight-only methods. Furthermore, the success of the "shared LoRA" approach suggests that even less critical layers benefit from some adaptation, provided it is parameter-efficient.
Future work will explore finer-grained pruning (e.g., at the attention head level) and methods to reduce inference latency, as shared modules currently still require computation during the forward pass.
Summary updated