GuiLoMo: Allocating Expert Number and Rank for LoRA-MoE via Bilevel Optimization with GuidedSelection Vectors

Hengyuan Zhang, Xinrong Chen, Yingmin Qiu, Xiao Liang, Ziyue Li +5 more
6/17/2025
cs.CL

Official code: Liar406/Gui-LoMo (4 stars, last commit 2025-06-09).

Abstract

Parameter-efficient fine-tuning (PEFT) methods, particularly Low-Rank Adaptation (LoRA), offer an efficient way to adapt large language models with reduced computational costs. However, their performance is limited by the small number of trainable parameters. Recent work combines LoRA with the Mixture-of-Experts (MoE), i.e., LoRA-MoE, to enhance capacity, but two limitations remain in hindering the full exploitation of its potential: 1) the influence of downstream tasks when assigning expert numbers, and 2) the uniform rank assignment across all LoRA experts, which restricts representational diversity. To mitigate these gaps, we propose GuiLoMo, a fine-grained layer-wise expert numbers and ranks allocation strategy with GuidedSelection Vectors (GSVs). GSVs are learned via a prior bilevel optimization process to capture both model- and task-specific needs, and are then used to allocate optimal expert numbers and ranks. Experiments on three backbone models across diverse benchmarks show that GuiLoMo consistently achieves superior or comparable performance to all baselines. Further analysis offers key insights into how expert numbers and ranks vary across layers and tasks, highlighting the benefits of adaptive expert configuration. Our code is available at https://github.com/Liar406/Gui-LoMo.git.

View on arXivView PDF

Code Implementations(1)

Liar406/Gui-LoMoOfficial100%
40Shell, PythonJun 8, 20251 years ago

Similar Papers

Cite this paper

@article{zhang2025guilomo,
  title  = {GuiLoMo: Allocating Expert Number and Rank for LoRA-MoE via Bilevel Optimization with GuidedSelection Vectors},
  author = {Hengyuan Zhang and Xinrong Chen and Yingmin Qiu and Xiao Liang and Ziyue Li and Guanyu Wang and Weiping Li and Tong Mo and Hayden Kwok-Hay So and Ngai Wong},
  year   = {2025},
  eprint = {2506.14646},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.14646v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.14646.svg)](https://codeofpaper.com/paper/2506.14646)

Discussion