Abstract
DenseLoRA is a novel adaptation method for Large Language Models (LLMs) that addresses the inherent redundancy in standard Low-Rank Adaptation (LoRA). By introducing a shared Encoder-Decoder bottleneck across all model layers and a layer-specific dense adaptation matrix, DenseLoRA significantly improves parameter efficiency. On LLaMA3-8B, DenseLoRA achieves 83.8% accuracy on commonsense reasoning benchmarks using only 0.01% of trainable parameters—a 70x reduction compared to standard LoRA. The method demonstrates superior performance and resilience in low-resource settings compared to existing variants like DoRA and VeRA.
The Redundancy Trap in LoRA
Fine-tuning Large Language Models (LLMs) is computationally prohibitive for most users. Low-Rank Adaptation (LoRA) mitigated this by freezing the base model and training two small matrices ($A$ and $B$) to represent weight updates. However, empirical analysis reveals a "redundancy trap": many weights in LoRA's matrices remain near zero or change minimally during training, effectively becoming idle parameters.
DenseLoRA asks whether adaptation can be structured more densely to ensure every trainable parameter contributes meaningfully to the model's performance. The goal is to move from sparse, redundant updates toward a compact and expressive "dense" low-rank structure.
The DenseLoRA Architecture
DenseLoRA shifts the focus from modifying weight matrices directly to refining hidden representations through a three-stage process:
- Compression (Shared Encoder): A single
Encodermodule is shared across all adaptation layers. It compresses the high-dimensional hidden state into a lower-dimensional representation. - Adaptation (Layer-Specific Dense Matrix): Instead of the traditional $A \times B$ structure, DenseLoRA uses a small, dense matrix $M$ unique to each layer. Because the input is already compressed, $M$ can be extremely small (e.g., $16 \times 16$) while remaining highly expressive.
- Reconstruction (Shared Decoder): A single
Decoder, also shared across all layers, projects the adapted representation back to the original dimension.
By sharing the Encoder and Decoder across the entire model, the parameter count is drastically reduced, leaving only the tiny $M$ matrices to handle layer-specific nuances. This "Shared Knowledge" hypothesis forces the layer-specific matrices to focus purely on the task-specific logic required at different depths of the network.
Experimental Evaluation
The authors evaluated DenseLoRA using LLaMA2-7B and LLaMA3-8B across two primary domains:
- Commonsense Reasoning: Eight benchmarks including BoolQ, PIQA, SIQA, HellaSwag, WinoGrande, ARC-e, ARC-c, and OBQA.
- Arithmetic Reasoning: Four benchmarks including GSM8K, AQUA, AddSub, and SVAMP.
Key Results and Efficiency
DenseLoRA consistently outperforms standard LoRA and its variants while using a fraction of the parameters. On LLaMA3-8B, it achieved 83.8% average accuracy on commonsense tasks using only 0.01% of parameters. In contrast, standard LoRA achieved 80.8% while requiring 0.70% of parameters.
Beyond raw accuracy, DenseLoRA exhibits remarkable low-resource resilience. When trained on only 10% of available data, DenseLoRA still outperformed LoRA trained on the full dataset. This suggests the dense structure is less prone to overfitting and better at capturing essential patterns with limited signal.
Conclusion and Future Work
DenseLoRA demonstrates that density, rather than just low rank, is a key driver for efficient LLM adaptation. By leveraging shared components, it achieves state-of-the-art performance with unprecedented parameter economy. While currently focused on text-based reasoning, future work will explore DenseLoRA's application in multimodal tasks, such as image generation and visual instruction tuning, as well as its scalability to even larger model families.
Summary updated