GMoE:通过MoE图协作增强LLM微调
GMoE: Empowering LLMs Fine-Tuning via MoE Graph Collaboration
AI总结:
GMoE通过图协作策略提升LLM微调的稳定性与效率
摘要:
大语言模型(LLM)的稀疏混合专家(MoE)架构面临一个固有的负载不平衡问题,这源于简单的线性路由器策略,最终导致LLM的不稳定和低效学习。为了解决这一挑战,我们引入了一个新的基于图的MoE框架GMoE,旨在增强多个专家之间的协作。在GMoE中,设计了一个图路由器函数,以捕捉专家之间的协作信号。这使所有专家能够通过与邻近专家共享信息,动态地分配来自输入数据的信息。此外,我们提出了两种协调策略:基于泊松分布的区分策略和基于正态分布的平衡策略,以进一步释放每个专家的容量,并在LLM微调中提高模型的稳定性。具体来说,我们利用一种参数高效微调技术,即低秩适应(LoRA),来实现图MoE架构。在四个真实世界基准数据集上的广泛实验表明了GMoE的有效性,展示了在LLM微调中促进多个专家协作的好处。实验实现的代码可在https://github.com/BAI-LAB/GMoE上获得。
英文摘要:
The sparse Mixture-of-Experts (MoE) architecture of large language models (LLMs) confronts an inherent issue of load imbalance arising from the simplistic linear router strategy, which ultimately causes the instability and inefficient learning of LLMs. To address this challenge, we introduce a novel MoE graph-based framework $\textbf{GMoE}$, aimed at enhancing the collaboration among multiple experts. In GMoE, a graph router function is designed to capture the collaboration signals among experts. This enables all experts to dynamically allocate information derived from input data by sharing information with their neighboring experts. Moreover, we put forward two coordination strategies in GMoE: the $\textit{Poisson distribution-based distinction strategy}$ and the $\textit{Normal distribution-based balance strategy}$, to further release the capacity of each expert and increase the model stability in the fine-tuning of LLMs. Specifically, we leverage a parameter-efficient fine-tuning technique, i.e., Low-Rank Adaptation (LoRA), to implement the graph MoE architecture. Extensive experiments on four real-world benchmark datasets demonstrate the effectiveness of GMoE, showing the benefits of facilitating collaborations of multiple experts in LLM fine-tuning. The code of experimental implementation is available at https://github.com/BAI-LAB/GMoE
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。