Abstract
With the rapid scaling of large language models (LLMs), serving numerous low-rank adaptations (LoRAs) concurrently has become increasingly impractical, leading to unaffordable costs and necessitating more parameter-efficient finetuning methods. In this work, we introduce Partially Rotation-enhanced Low-Rank Adaptation (PRoLoRA), an intra-layer sharing mechanism comprising four essential components: broadcast reduction, rotation enhancement, partially-sharing refinement, and rectified initialization strategy. As a superset of LoRA, PRoLoRA retains its advantages, and effectively circumvent the drawbacks of peer parameter-sharing methods with superior model capacity, practical feasibility, and broad applicability. Empirical experiments demonstrate the remarkably higher parameter efficiency of PRoLoRA in both specific parameter budget and performance target scenarios, and its scalability to larger LLMs. Notably, with one time less trainable parameters, PRoLoRA still outperforms LoRA on multiple instruction tuning datasets. Subsequently, an ablation study is conducted to validate the necessity of individual components and highlight the superiority of PRoLoRA over three potential variants. Hopefully, the conspicuously higher parameter efficiency can establish PRoLoRA as a resource-friendly alternative to LoRA.
Introduction
Large Language Models (LLMs) have revolutionized natural language processing, but their immense scale makes full fine-tuning for specific tasks prohibitively expensive. Low-Rank Adaptation (LoRA) addressed this by training two small low-rank matrices ($A$ and $B$) while keeping the base model frozen. However, the emergence of "multi-LoRA" scenarios—where a single base model serves thousands of personalized adapters—has revealed new bottlenecks in storage and memory.
Existing attempts to further compress LoRA often suffer from limited capacity (e.g., VeRA) or architectural rigidity (e.g., Tied LoRA), which requires layers to have identical shapes. PRoLoRA aims to overcome these limitations by providing a method that is more efficient than LoRA while remaining flexible and powerful.
Methodology: The PRoLoRA Framework
PRoLoRA introduces an intra-layer sharing mechanism that constructs the adaptation matrices through four key innovations:
- Broadcast Reduction: Matrices are divided into small "chunks." A single chunk is learned and then "broadcast" (copied) to fill the rest of the matrix, drastically reducing the parameter count.
- Rotation Enhancement: To prevent the repetitive patterns of simple broadcasting from limiting expressiveness, PRoLoRA applies a "rotation" (bit-shifting
rolloperation) to each copied chunk. This "cost-free" operation differentiates the chunks without adding new parameters. - Partially-Sharing Refinement: To capture fine-grained task-specific details, a small subset of the ranks (the "unshared rank") remains unique and is excluded from the sharing and rotation process.
- Rectified Initialization Strategy: Standard initialization methods do not account for parameter reuse. PRoLoRA employs a modified initialization formula to ensure shared weights maintain correct variance, ensuring training stability.
By shifting parameter sharing from between layers to within a single layer, PRoLoRA becomes "shape-agnostic," allowing it to be applied to any linear layer regardless of dimensions. Furthermore, PRoLoRA is a generalized framework; it becomes standard LoRA if the "unshared rank" is set to the total rank.
Experimental Evaluation
The researchers evaluated PRoLoRA using the LLaMA2 family (7B, 13B, and 70B) across a diverse set of benchmarks:
- Factual Knowledge & Multilinguality: MMLU (Massive Multitask Language Understanding) and TyDi QA.
- Reasoning: BBH (Big-Bench Hard) and GSM (Grade School Math).
- Coding: HumanEval (fine-tuned on CodeAlpaca).
- Instruction Tuning: Super-NaturalInstructions (SuperNI) and Flan V2.
Key Results
PRoLoRA demonstrates significant improvements in parameter efficiency:
- Efficiency Gains: On LLaMA2-7B, PRoLoRA achieved better average performance than LoRA while using only half the trainable parameters.
- Performance Wins: In "specified performance target" tests, PRoLoRA outperformed LoRA on 4 out of 6 benchmarks while maintaining a significantly smaller footprint.
- Scalability: The benefits scale with model size. For LLaMA2-70B, PRoLoRA achieves similar or better results than LoRA (which requires ~1.4GB for rank 64) with a fraction of the parameters.
- Multi-Adapter Serving: In a 20GB GPU memory scenario, PRoLoRA could potentially double the number of concurrent users from 512 (with LoRA) to 1024 without performance degradation.
Conclusion and Future Work
PRoLoRA establishes a new frontier for parameter-efficient fine-tuning by combining intra-layer sharing with rotation-based symmetry breaking. While highly effective, future improvements could include independent learning rates for shared and unshared parameters or combining intra-layer sharing with inter-layer techniques. Additionally, specialized kernels (e.g., CUTLASS) can ensure that the "broadcast and rotate" steps add no latency during inference. PRoLoRA stands as a resource-friendly, high-performance alternative to standard LoRA for the next generation of LLM applications.
Summary updated