专家再利用:移动专家架构的计算高效前沿转移
Expert Upcycling: Shifting the Compute-Efficient Frontier of Mixture-of-Experts
AI总结:
本文提出专家再利用方法,通过持续预训练逐步扩展MoE模型容量,降低训练成本,实验显示在7B-13B参数规模下,模型验证损失与基线相当,节省32%的GPU小时。
摘要:
混合专家(MoE)已成为扩展大语言模型的主要架构:前沿模型通常通过稀疏专家路由将总参数数与每token计算分离。规模定律表明,在固定活跃计算下,模型质量随总参数数可预测性增加,而MoE通过增加专家数量实现此目标。然而,训练大型MoE模型成本高昂,因为内存需求和跨设备通信均随总参数数增加。我们提出专家再利用,一种通过持续预训练(CPT)逐步扩展MoE容量的方法。给定训练好的E专家模型,再利用操作符通过专家复制和路由扩展构建mE专家模型,同时保持top-K路由固定,保持每token推理成本。复制提供温暖初始化:扩展模型继承源检查点的学得表示,起始损失显著低于随机初始化。后续CPT则打破复制专家间的对称性以驱动专业化。我们正式化再利用操作符并开发理论框架,将质量差距分解为容量项和初始化项。我们进一步引入基于效用的专家选择,利用梯度重要性分数指导非均匀复制,当CPT受限时,三倍于差距闭合。在7B-13B总参数实验中,再利用模型在验证损失上与固定大小基线相当,节省32%的GPU小时。全面的消融实验在不同模型规模、激活比率、MoE架构和训练预算下产生实用配方,确立其作为训练大型MoE模型的原理性、计算高效替代方案。
英文摘要:
Mixture-of-Experts (MoE) has become the dominant architecture for scaling large language models: frontier models routinely decouple total parameters from per-token computation through sparse expert routing. Scaling laws show that under fixed active computation, model quality scales predictably with total parameters, and MoEs realize this by increasing expert count. However, training large MoEs is expensive, as memory requirements and inter-device communication both scale with total parameter count. We propose expert upcycling, a method for progressively expanding MoE capacity by increasing the number of experts during continued pre-training (CPT). Given a trained E-expert model, the upcycling operator constructs an mE-expert model through expert duplication and router extension while holding top-K routing fixed, preserving per-token inference cost. Duplication provides a warm initialization: the expanded model inherits the source checkpoint's learned representations, starting from a substantially lower loss than random initialization. Subsequent CPT then breaks the symmetry among duplicated experts to drive specialization. We formalize the upcycling operator and develop a theoretical framework decomposing the quality gap into a capacity term and an initialization term. We further introduce utility-based expert selection, which uses gradient-based importance scores to guide non-uniform duplication, more than tripling gap closure when CPT is limited. In our 7B-13B total parameter experiments, the upcycled model matches the fixed-size baseline on validation loss while saving 32% of GPU hours. Comprehensive ablations across model scales, activation ratios, MoE architectures, and training budgets yield a practical recipe for deploying expert upcycling, establishing it as a principled, compute-efficient alternative to training large MoE models from scratch.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。