arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.23362cs.CLcs.AI
收藏

混合路由器

Mixture of Routers

School of Electronic and Electrical Engineering, Shanghai University of Engineering Science(电子电气工程学院,上海工程技术大学);Key Laboratory of Computational Neuroscience and Brain-Inspired Intelligence, Fudan University(计算神经科学与脑启发智能重点实验室,复旦大学)

Jia-Chen Zhang, Yu-Jie Xiong, Xi-He Qiu, Chun-Ming Xia, Fei Dai, Zheng Zhou

摘要:

监督微调(SFT)是将大语言模型与人类指令对齐并使其适应下游任务的里程碑。特别是低秩适应(LoRA)由于其参数效率而受到广泛关注。然而,它对提高大型模型性能的影响仍然有限。最近的研究表明,将LoRA与专家混合(MoE)相结合可以显着提高微调性能。MoE通过动态选择最合适的专家来适应数据集的多样性和复杂性,从而提高任务的准确性和效率。尽管令人印象深刻的结果,最近的研究揭示了问题,在MoE路由机制,如不正确的分配和不平衡的专家分配。受Reddit和容错理论的启发。我们创新性地将混合专家模型的概念融入到路由机制中,提出了一种高效的路由器混合模型(MoR)的微调方法。它采用多个子路由器进行联合选择,并使用一个可学习的主路由器来确定子路由器的权重。结果表明,MoR在大多数任务上的性能优于基线模型,平均性能提高了1%。MoR可以作为一种即插即用的、参数高效微调方法,适用于广泛的应用。我们的代码可以在这里找到:https://anonymous.4open.science/r/MoR-DFC6。

英文摘要:

Supervised fine-tuning (SFT) is a milestone in aligning large language models with human instructions and adapting them to downstream tasks. In particular, Low-Rank Adaptation (LoRA) has gained widespread attention due to its parameter efficiency. However, its impact on improving the performance of large models remains limited. Recent studies suggest that combining LoRA with Mixture-of-Experts (MoE) can significantly enhance fine-tuning performance. MoE adapts to the diversity and complexity of datasets by dynamically selecting the most suitable experts, thereby improving task accuracy and efficiency. Despite impressive results, recent studies reveal issues in the MoE routing mechanism, such as incorrect assignments and imbalanced expert allocation. Inspired by the principles of Redundancy and Fault Tolerance Theory. We innovatively integrate the concept of Mixture of Experts into the routing mechanism and propose an efficient fine-tuning method called Mixture of Routers (MoR). It employs multiple sub-routers for joint selection and uses a learnable main router to determine the weights of the sub-routers. The results show that MoR outperforms baseline models on most tasks, achieving an average performance improvement of 1%. MoR can serve as a plug-and-play, parameter-efficient fine-tuning method suitable for a wide range of applications. Our code is available here: https://anonymous.4open.science/r/MoR-DFC6.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑