Mixture-of-Subspaces in Low-Rank Adaptation

Taiqiang Wu, Jiahao Wang, Zhe Zhao, Ngai Wong · DOI

Abstract

MoSLoRA (Mixture-of-Subspaces Low-Rank Adaptation) is a novel parameter-efficient fine-tuning method that enhances standard LoRA by introducing a learnable "mixer" matrix between the down-projection and up-projection layers. This architectural modification allows the model to flexibly combine $r^2$ rank-1 subspaces rather than just $r$ independent components. MoSLoRA achieves significant performance gains across large language models (LLMs), vision-language models (VLMs), and diffusion models with negligible parameter overhead and zero additional inference latency.

Introduction

As Large Language Models (LLMs) continue to scale, full fine-tuning becomes computationally prohibitive. Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA have emerged as the standard, updating only a tiny fraction of weights by representing updates as the product of two low-rank matrices, $A$ and $B$.

However, standard LoRA is limited by its rigid structure. From a subspace perspective, LoRA sums $r$ independent rank-1 components using a fixed identity matrix. MoSLoRA addresses this limitation by asking: what if these components could interact and "mix" in a learnable way? By allowing these subspaces to communicate, the model can capture more complex patterns without increasing the rank or inference cost.

Methods

The core innovation of MoSLoRA is the insertion of a learnable square matrix $W \in \mathbb{R}^{r \times r}$ (the "mixer") between the LoRA matrices. While vanilla LoRA performs the operation $xAB$, MoSLoRA performs $xAWB$.

Comparison between LoRA and MoSLoRA architectures, illustrating the decomposition and mixture of subspaces.

Subspace Mixing and Re-parameterization

By inserting $W$, the model can fuse information across all possible combinations of the columns in $A$ and rows in $B$. This increases the number of effective "mixed subspaces" from $r$ to $r^2$. Crucially, because the system remains linear, $A$, $W$, and $B$ can be merged into a single weight update during inference. This ensures that MoSLoRA maintains the same zero-latency profile as standard LoRA.

Initialization Strategy

The mixer $W$ is sensitive to initialization. The authors found that initializing $W$ as a zero matrix prevents convergence due to zero gradients. Instead, they recommend using Kaiming Uniform or Orthogonal initialization to ensure stable and effective learning from the start of training.

Key Insights and Ideas

LoRA as a Special Case

Mathematically, vanilla LoRA is a subset of MoSLoRA where the mixer $W$ is fixed as an identity matrix. By making $W$ learnable, MoSLoRA unlocks higher expressivity by allowing low-rank subspaces to "talk" to each other.

Comparison of vanilla LoRA and two-subspaces-mixing LoRA, highlighting the additional interaction terms.

Data and Parameter Efficiency

MoSLoRA is remarkably efficient. In benchmarks like HellaSwag, MoSLoRA trained on only 50% of the data outperformed vanilla LoRA trained on 100%. Furthermore, it adds fewer than 0.1M parameters compared to standard LoRA and is significantly faster to train than other high-performing variants like LoKr or LoHa. It also maintains robustness when used with 4-bit quantization (QLoRA).

Experimental Results

The authors evaluated MoSLoRA across three distinct modalities:

  • Commonsense Reasoning: On LLaMA-3 8B, MoSLoRA achieved an average score of 85.6, outperforming vanilla LoRA (82.8) and more complex variants like DoRA (85.0).
  • Visual Instruction Tuning: Using an InternLM2+ViT backbone, MoSLoRA reached an average score of 59.5, a 1.7-point lead over the LoRA baseline, with strong gains in reasoning and fine-grained perception.
  • Image Generation: In subject-driven text-to-image generation (DreamBooth), MoSLoRA showed superior subject consistency and prompt adherence compared to standard LoRA, better capturing specific textures and details.

Conclusion

MoSLoRA demonstrates that a simple architectural tweak—adding a learnable mixer between low-rank matrices—can significantly boost the performance of PEFT. By expanding the subspace interaction space from $r$ to $r^2$, MoSLoRA provides a more expressive and data-efficient alternative to LoRA without sacrificing inference speed. Future work may explore task-specific initialization strategies and broader applications like style mixing in diffusion models.

Summary updated

BibTeX
@inproceedings{wu2024mixture,
  author = {Taiqiang Wu and Jiahao Wang and Zhe Zhao and Ngai Wong},
  title = {{Mixture-of-Subspaces in Low-Rank Adaptation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.450},
}
Figure