Introduction
Low-Rank Adaptation (LoRA) has emerged as a cornerstone of Parameter-Efficient Fine-Tuning (PEFT), enabling the adaptation of large-scale models by training only a small fraction of parameters. Despite its success, standard LoRA implementations often suffer from two primary inefficiencies: a uniform allocation of rank across all layers and a rigid adherence to the original model architecture. This "one-size-fits-all" approach neglects the varying importance of different layers for specific tasks and fails to explore potential global synergies through architectural modifications.
To address these limitations, we introduce HeteroLoRA, a framework that dynamically allocates trainable parameters to the most critical layers and introduces LoRA-adapted shortcut connections to enhance inter-layer communication.
Methodology: Dynamic Allocation and Architectural Search
HeteroLoRA moves beyond uniform rank assignment by treating the selection of LoRA modules as a search problem. The framework evaluates the importance of individual modules and shortcuts, enabling only those that contribute most significantly to the task at hand.
Zero-Cost Proxies
To make the search process computationally feasible, HeteroLoRA utilizes "zero-cost proxies" derived from Neural Architecture Search (NAS). Among various candidates—including SNIP and SYNFLOW—GRAD-NORM (the Euclidean norm of loss gradients) was found to be the most effective metric for identifying critical modules.
Dynamic vs. Static Search
The framework supports two modes of allocation:
- Static Allocation: Importance is determined once at the beginning of training.
- Dynamic Allocation: Module importance is re-evaluated periodically (e.g., every 1/5th of an epoch). This allows the model to adapt its parameter distribution as the training objective evolves.
LoRA-Adapted Shortcuts
HeteroLoRA expands the search space by introducing trainable matrices into residual connections and novel "cross-layer" shortcuts that skip entire Transformer blocks. These shortcuts are carefully initialized to ensure the model retains its pre-trained behavior at the start of fine-tuning.
Results and Key Insights
Evaluations across benchmarks such as GLUE, SuperGLUE, and Alpaca instruction tuning demonstrate that HeteroLoRA consistently outperforms standard LoRA within the same parameter budget. For instance, on the MRPC task, HeteroLoRA achieved a 1.6% accuracy improvement.
The Dominance of Value Projections
A key finding from the search process is the disproportionate importance of Value ($W^V$) projections compared to Query ($W^Q$) projections. This suggests that for downstream adaptation, modifying how information is transformed within a layer is more vital than altering the attention mechanism itself.
Synergy through Shortcuts
The inclusion of LoRA-adapted shortcuts proved particularly beneficial when parameter budgets were constrained. These connections foster global synergies, allowing the model to coordinate information across distant layers more effectively than the standard sequential architecture.
Conclusion
HeteroLoRA demonstrates that parameter efficiency is not just about the number of parameters, but where they are placed. By combining dynamic gradient-based allocation with architectural shortcuts, HeteroLoRA unlocks significant performance gains without increasing the total trainable parameter count. Future work will explore the scalability of these global synergies in models exceeding 70 billion parameters and refine the optimal frequency for dynamic search.
Summary updated