MoR: Mixture of Ranks for Low-Rank Adaptation Tuning

Chuanyu Tang, Yilong Chen, Zhenyu Zhang, Junyuan Shang, Wenyuan Zhang, Yong Huang, Tingwen LiuarXiv 2024

Abstract

Low-Rank Adaptation (LoRA) is a cornerstone of parameter-efficient fine-tuning (PEFT), yet it faces a performance bottleneck when attempting to capture high-rank information. While Mixture of Experts (MoE) variants of LoRA exist, they often introduce significant parameter redundancy and inference latency. We propose Mixture of Ranks (MoR), a framework that efficiently integrates multi-rank information by sharing a core set of low-rank matrices and employing lightweight, task-specific scaling vectors. MoR achieves a 1.31% performance improvement over MoE-style LoRA while utilizing only 93.93% of the parameters.

Introduction

Fine-tuning Large Language Models (LLMs) for diverse tasks is computationally demanding. LoRA mitigates this by training low-rank matrices $A$ and $B$. However, increasing the rank $r$ does not linearly improve performance, especially in complex multi-task environments. Existing MoE-LoRA approaches, which deploy multiple independent LoRA "experts," suffer from parameter bloat and increased latency because each expert redundantly learns similar intrinsic features. MoR addresses these inefficiencies by rethinking how rank-specific information is integrated.

The MoR Framework

The core of MoR is the decoupling of shared intrinsic knowledge from task-specific adaptations.

Shared Experts and Multi-Rank Adaptation

Unlike traditional MoE-LoRA, MoR utilizes a single set of shared matrices $A \in \mathbb{R}^{d_{in} \times r}$ and $B \in \mathbb{R}^{r \times d_{out}}$. To specialize for different tasks, MoR introduces learnable scaling vectors $\lambda_A$ and $\lambda_B$. These vectors are transformed into diagonal matrices $\Lambda$ that scale the shared matrices, effectively projecting them into task-specific subspaces. This allows the model to capture high-rank information through mathematical transformations of low-rank components.

The Mixture of Rank (MoR) architecture integrated within a Transformer block, highlighting shared frozen weights and trainable scaling components.

Dynamic Routing

A lightweight router analyzes the input $X$ to generate scores that weight the contributions of different scaled rank transformations. This dynamic integration allows the model to adaptively select the most relevant "rank angle" for a given input, enhancing multi-task performance without the overhead of independent experts.

Experimental Evaluation

We evaluated MoR on a subset of the Tulu-v2 dataset across 11 downstream metrics, including commonsense reasoning (e.g., SIQA, HellaSwag) and world knowledge (MMLU).

Performance and Efficiency

MoR demonstrates superior scalability and efficiency. It outperformed standard LoRA by 7.4% and DoRA by 7.21% at equivalent parameter counts. Notably, MoR maintains a much flatter parameter growth curve compared to MoELoRA as the number of experts increases, proving its high-level parameter efficiency.

Comparison of trainable parameters versus the number of experts, showing MoR's significant efficiency advantage over MoELoRA.

Conclusion

MoR provides a highly efficient alternative to MoE-style LoRA by leveraging shared matrices and dynamic scaling. By reducing parameter redundancy, it achieves state-of-the-art PEFT performance. Future work will explore scaling MoR to 70B+ parameter models and refining router logic with explicit task metadata to further minimize learning difficulty.

Summary updated

BibTeX
@misc{tang2024mor,
  author = {Chuanyu Tang and Yilong Chen and Zhenyu Zhang and Junyuan Shang and Wenyuan Zhang and Yong Huang and Tingwen Liu},
  title = {{MoR: Mixture of Ranks for Low-Rank Adaptation Tuning}},
  year = {2024},
  eprint = {2410.13408},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.13408},
}
Figure