arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.08215cs.CLcs.LG
收藏

面向内存和推理约束下混合专家语言模型的原理性设计

Towards Principled Design of Mixture-of-Experts Language Models under Memory and Inference Constraints

SB Intuitions

Seng Pei Liew, Kenta Shinzato, Yuyang Dong

AI总结:

本文提出基于内存和推理约束的混合专家语言模型设计原则,通过系统研究揭示性能主要由总参数和专家稀疏性决定,并提出优化方法指导架构设计。

摘要:

现代混合专家(MoE)语言模型是基于总参数(内存足迹)和活跃参数(推理成本)进行设计的。然而,我们发现仅凭这两个因素难以描述最优架构。通过系统研究,我们证明MoE性能主要由总参数(N_total)和专家稀疏性(s:=n_exp/n_topk)决定。此外,n_exp和n_topk在稀疏率中并不相互抵消;相反,专家总数较大时会略微惩罚性能,迫使核心模型维度(深度和宽度)减少以满足内存约束。这促使我们提出一个简单的MoE设计原则,即在给定约束下最大化N_total同时最小化s(最大化n_topk)和n_exp。我们的发现提供了一个稳健的框架,用于解决架构模糊性并指导MoE设计。

英文摘要:

Modern Mixture-of-Experts (MoE) language models are designed based on total parameters (memory footprint) and active parameters (inference cost). However, we find these two factors alone are insufficient to describe an optimal architecture. Through a systematic study, we demonstrate that MoE performance is primarily determined by total parameters ($N_{total}$) and expert sparsity ($s:=n_{exp}/n_{topk}$). Moreover, $n_{exp}$ and $n_{topk}$ do not "cancel out" within the sparsity ratio; instead, a larger total number of experts slightly penalizes performance by forcing a reduction in core model dimensions (depth and width) to meet memory constraints. This motivates a simple principle for MoE design which maximizes $N_{total}$ while minimizing $s$ (maximizing $n_{topk}$) and $n_{exp}$ under the given constraints. Our findings provide a robust framework for resolving architectural ambiguity and guiding MoE design.

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

↑