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

跨模型架构的缩放定律:大语言模型中密集模型与MoE模型的比较分析

Scaling Laws Across Model Architectures: A Comparative Analysis of Dense and MoE Models in Large Language Models

Meituan Inc.(美团公司);The University of Hong Kong(香港大学)

Siqi Wang, Zhengyu Chen, Bei Li, Keqing He, Min Zhang, Jingang Wang

AI总结:

该研究通过理论分析与实验验证,探究缩放定律在密集模型与MoE大语言模型间的可迁移性,证实幂律缩放框架适用于MoE模型,且其在相同训练计算预算下泛化能力更优,为MoE模型训练部署优化提供新见解。

摘要:

大语言模型(LLM)的缩放是关乎模型训练与部署效率及效果的关键研究领域。本工作探究了缩放定律在密集模型(Dense Models)与专家混合模型(Mixture of Experts, MoE)之间的可迁移性与差异。通过结合理论分析与大量实验——包括一致的损失缩放、最优批量大小与学习率缩放,以及资源分配策略缩放——我们的研究结果表明,幂律缩放框架同样适用于MoE模型,这说明尽管架构存在差异,支配这类模型缩放行为的基本原理仍然成立。此外,MoE模型展现出更优的泛化能力,在相同的训练计算预算下,其测试损失低于密集模型。这些发现揭示了MoE模型的缩放一致性与迁移泛化能力,为优化MoE模型的训练与部署策略提供了新的见解。

英文摘要:

The scaling of large language models (LLMs) is a critical research area for the efficiency and effectiveness of model training and deployment. Our work investigates the transferability and discrepancies of scaling laws between Dense Models and Mixture of Experts (MoE) models. Through a combination of theoretical analysis and extensive experiments, including consistent loss scaling, optimal batch size and learning rate scaling, and resource allocation strategies scaling, our findings reveal that the power-law scaling framework also applies to MoE Models, indicating that the fundamental principles governing the scaling behavior of these models are preserved, even though the architecture differs. Additionally, MoE Models demonstrate superior generalization, resulting in lower testing losses with the same training compute budget compared to Dense Models. These findings indicate the scaling consistency and transfer generalization capabilities of MoE Models, providing new insights for optimizing MoE Model training and deployment strategies.

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

↑