[论文解读] Skywork-MoE: A Deep Dive into Training Techniques for Mixture-of-Experts Language Models
本文提出 Skywork-MoE,一个基于预训练稠密模型 Skywork-13B 权重微调得到的 1460亿参数专家混合(MoE)语言模型。该模型引入门控逻辑归一化以提升专家多样性,并采用分层自适应辅助损失系数实现逐层损失调整,从而在多个基准测试中取得优异性能,包括在 CEVAL 上达到 82.2,在 GSM8K 上达到 76.1,优于多个同规模的稠密模型与 MoE 模型。
In this technical report, we introduce the training methodologies implemented in the development of Skywork-MoE, a high-performance mixture-of-experts (MoE) large language model (LLM) with 146 billion parameters and 16 experts. It is initialized from the pre-existing dense checkpoints of our Skywork-13B model. We explore the comparative effectiveness of upcycling versus training from scratch initializations. Our findings suggest that the choice between these two approaches should consider both the performance of the existing dense checkpoints and the MoE training budget. We highlight two innovative techniques: gating logit normalization, which improves expert diversification, and adaptive auxiliary loss coefficients, allowing for layer-specific adjustment of auxiliary loss coefficients. Our experimental results validate the effectiveness of these methods. Leveraging these techniques and insights, we trained our upcycled Skywork-MoE on a condensed subset of our SkyPile corpus. The evaluation results demonstrate that our model delivers strong performance across a wide range of benchmarks.
研究动机与目标
- 探究从现有稠密模型检查点进行微调与从零训练 MoE 模型在最终性能与训练效率方面的对比效果。
- 通过新型训练技术提升 MoE 架构中的专家负载均衡与多样性。
- 评估 Skywork-MoE 在多样化 NLP 基准测试中的表现,涵盖推理、知识与代码生成等任务。
- 为大规模 MoE 模型开发提供初始化与训练预算分配的实用指导。
提出的方法
- 采用门控逻辑归一化技术,在 softmax 门控前对原始 logits 进行归一化,以稳定并提升专家路由性能。
- 引入分层自适应辅助损失系数,根据各层动态调整,更有效地平衡专家使用。
- 在 MoE 层中采用 top-2 路由机制,即每个 token 由两个概率最高的专家处理,输出按其门控概率加权。
- 在经过筛选的 SkyPile 语料子集上训练 Skywork-MoE,英文、中文与代码数据的比例为 7:2:1。
- 利用预训练的稠密模型 Skywork-13B 的权重作为初始化,实现高效微调,显著降低训练成本。
- 采用多阶段训练策略,结合不同的学习率调度与数据组成,以稳定训练过程并提升收敛性。

实验结果
研究问题
- RQ1从稠密模型检查点进行微调与从零训练相比,在最终 MoE 模型性能与训练效率方面有何差异?
- RQ2门控逻辑归一化在多大程度上能提升 MoE 模型的专家多样性与路由稳定性?
- RQ3自适应辅助损失系数是否能相比固定系数实现更优的专家负载均衡?
- RQ4Skywork-MoE 在多语言与推理基准测试中,与当前 SOTA 的稠密与 MoE 模型相比表现如何?
- RQ5在精炼、筛选后的数据集上训练与全规模预训练相比,对模型性能与参数效率有何影响?
主要发现
- Skywork-MoE 总参数量达 1460亿,仅激活 220亿参数,展现出极高的参数效率。
- 在 CEVAL 基准测试中得分 82.2,在 CMMLU 上得分为 79.5,优于 Deepseek-67B,且接近 Deepseek-V2 水平。
- 在 MMLU 基准测试中,Skywork-MoE 达到 77.4,优于 Llama2-70B,接近 Llama3-70B 水平。
- 在数学推理任务中,Skywork-MoE 在 GSM8K 上得分为 76.1,在 MATH 上得分为 31.9,优于 Llama2-70B 与 Mixtral 8*7B。
- 在 HumanEval 上,模型得分为 43.9,超过比较中所有稠密模型,接近 Deepseek-V2 水平。
- 消融实验证实,门控逻辑归一化能有效提升专家多样性,而自适应辅助损失系数则显著改善了各层间的负载均衡。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。