面向混合专家模型的层级循环路由器
Layerwise Recurrent Router for Mixture-of-Experts
AI总结:
针对现有混合专家模型因各层路由独立决策导致的参数低效问题,提出利用GRU建立跨层路由依赖的层级循环路由器RMoE,性能优于基线且兼容其他MoE架构。
摘要:
大语言模型(LLM)的规模扩张彻底革新了其在各类任务中的能力,但这种增长必须搭配高效的计算策略。混合专家(Mixture-of-Experts, MoE)架构凭借能在不显著提升训练成本的前提下扩展模型规模的特性脱颖而出。尽管具备优势,当前的MoE模型常表现出参数低效问题。例如,一个拥有520亿参数的预训练MoE型大语言模型,性能可能仅与67亿参数的标准模型相当。作为MoE的核心组件,当前不同层的路由器独立分配token,未利用历史路由信息,可能导致token-专家组合次优,进而引发参数低效问题。为缓解这一问题,我们提出面向混合专家的层级循环路由器(RMoE)。RMoE利用门控循环单元(Gated Recurrent Unit, GRU)建立连续层之间路由决策的依赖关系。这种层级循环结构可对输入token进行高效并行计算,且带来的额外成本可控。我们开展的大量实证评估表明,基于RMoE的语言模型性能始终优于一系列基线模型。此外,RMoE引入了一个与现有方法正交的全新计算阶段,可与其他MoE架构无缝兼容。我们的分析显示,RMoE的性能提升源于其有效的跨层信息共享,这同时改善了专家选择的合理性与多样性。我们的代码可在https://github.com/qiuzh20/RMoE 获取。
英文摘要:
The scaling of large language models (LLMs) has revolutionized their capabilities in various tasks, yet this growth must be matched with efficient computational strategies. The Mixture-of-Experts (MoE) architecture stands out for its ability to scale model size without significantly increasing training costs. Despite their advantages, current MoE models often display parameter inefficiency. For instance, a pre-trained MoE-based LLM with 52 billion parameters might perform comparably to a standard model with 6.7 billion parameters. Being a crucial part of MoE, current routers in different layers independently assign tokens without leveraging historical routing information, potentially leading to suboptimal token-expert combinations and the parameter inefficiency problem. To alleviate this issue, we introduce the Layerwise Recurrent Router for Mixture-of-Experts (RMoE). RMoE leverages a Gated Recurrent Unit (GRU) to establish dependencies between routing decisions across consecutive layers. Such layerwise recurrence can be efficiently parallelly computed for input tokens and introduces negotiable costs. Our extensive empirical evaluations demonstrate that RMoE-based language models consistently outperform a spectrum of baseline models. Furthermore, RMoE integrates a novel computation stage orthogonal to existing methods, allowing seamless compatibility with other MoE architectures. Our analyses attribute RMoE's gains to its effective cross-layer information sharing, which also improves expert selection and diversity. Our code is at https://github.com/qiuzh20/RMoE .
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。