Abstract
Parameter-Efficient Fine-Tuning (PEFT) methods have become essential for adapting large language models (LLMs) to downstream tasks. Among these, Low-Rank Adaptation (LoRA) is widely used due to its streamlined design. However, standard LoRA typically allocates identical low-rank matrices to every module, ignoring the varying contributions of different components. We propose DiffoRA, a theoretically grounded PEFT scheme that enables module-wise adaptation. DiffoRA utilizes a Differential Adaptation Matrix (DAM) to identify essential modules for fine-tuning through continuous relaxation and discretization. Experimental results demonstrate that DiffoRA achieves state-of-the-art accuracy across various benchmarks, including GLUE and SQuAD, while significantly reducing trainable parameters.
Introduction
Fine-tuning LLMs with billions of parameters is computationally prohibitive. While LoRA addresses this by training small, low-rank matrices, it often applies a uniform strategy across all layers (Query, Key, Value, and Dense). This "one-size-fits-all" approach is inefficient and can even degrade performance. Preliminary experiments suggest that tuning every module can lead to overfitting or the inclusion of noisy updates. DiffoRA addresses this by automatically identifying and prioritizing the most essential modules for a specific downstream task.
Methodology
DiffoRA introduces a Differential Adaptation Matrix (DAM) to automate module selection through a two-stage process:
- Stage I: Continuous Relaxation: The selection matrix ($\Gamma$) is treated as a set of continuous values between 0 and 1, acting as "gates" for LoRA updates. A bi-level optimization strategy updates model weights based on training loss while simultaneously updating $\Gamma$ based on validation loss, allowing the model to learn which modules enhance generalization.
- Stage II: Discretization and Fine-Tuning: The continuous values are binarized, and the "Top-K" modules with the highest scores are selected for dedicated LoRA matrices.
- Weight Sharing: To maintain global flexibility, unselected modules share a single set of low-rank weights, providing minimal overhead while ensuring no part of the model is entirely ignored.
Mathematically, this selective approach increases the minimum eigenvalue of the model's Gram matrix, which translates to faster convergence and superior generalization capability.
Experimental Evaluation
DiffoRA was evaluated on standard NLP benchmarks including GLUE (MNLI, SST-2, CoLA, MRPC) and Question Answering (SQuAD v1.1/v2.0). Testing spanned multiple backbones, from DeBERTaV3-base to large-scale models like LLaMA-3.2-1B and LLaMA-7B.
Key Results
- State-of-the-Art Performance: DiffoRA outperformed standard LoRA and advanced variants like AdaLoRA. On the CoLA dataset, it achieved a 1.51% accuracy gain over previous best results.
- Efficiency and Scalability: On SQuAD v1.1, DiffoRA surpassed full fine-tuning while updating only 0.08% of total parameters. When applied to LLaMA-3.2-1B, it improved MNLI accuracy by 2.25% over standard LoRA.
Discussion and Insights
The core insight of DiffoRA is that "less is more." Over-parameterizing the fine-tuning process can lead models to memorize noise. Visualization of the DAM reveals that different tasks exhibit unique sensitivities; for instance, linguistic acceptability tasks (CoLA) rely heavily on early-layer Query projections, whereas sentiment analysis (SST-2) requires more uniform updates.
While highly effective, the current "Top-K" selection rate is determined empirically. Future work will focus on developing principled strategies to automatically determine the optimal sampling rate, making DiffoRA a fully plug-and-play solution for any architecture or task.
Summary updated