研究稀疏专家模型中参数与算力的最优平衡关系。
Parameters vs FLOPs: Scaling Laws for Optimal Sparsity for Mixture-of-Experts Language Models
- 通过调节专家模型的稀疏度,探索参数量与每样本算力的协同效应。
- 发现不同约束下存在最优稀疏度,可提升训练效率与模型性能。
- 适合关注高效大模型设计的研究者和工程师参考。
语言模型容量的提升一直是改善性能和解锁新能力的可靠方法。容量主要由模型参数数量和每个样本的计算量决定。尽管通常同时增加两者,但两者的相互作用及其对整体容量的贡献仍不完全清楚。本文在稀疏混合专家(MoE)模型背景下探讨这一关系,允许增加参数量而不成比例增加每样本的浮点运算量(FLOPs)。我们研究了稀疏度(即无效参数占比)变化对预训练和下游少样本评估性能的影响。结果表明,在不同约束条件(如参数规模和总训练算力)下,存在一个最优稀疏度,能同时提升训练效率和模型表现。该发现深化了对稀疏性在MoE缩放规律中作用的理解,为设计更高效的架构提供了实用洞见。
原文摘要 · Abstract (English)
Scaling the capacity of language models has consistently proven to be a reliable approach for improving performance and unlocking new capabilities. Capacity can be primarily defined by two dimensions: the number of model parameters and the compute per example. While scaling typically involves increasing both, the precise interplay between these factors and their combined contribution to overall capacity remains not fully understood. We explore this relationship in the context of sparse Mixture-of-Experts (MoEs), which allow scaling the number of parameters without proportionally increasing the FLOPs per example. We investigate how varying the sparsity level, i.e., the fraction of inactive parameters, impacts model's performance during pretraining and downstream few-shot evaluation. We find that under different constraints (e.g., parameter size and total training compute), there is an optimal level of sparsity that improves both training efficiency and model performance. These results provide a better understanding of the impact of sparsity in scaling laws for MoEs and complement existing works in this area, offering insights for designing more efficient architectures.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。