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

DynaMoE:动态令牌级专家激活与层间自适应容量的混合专家神经网络

DynaMoE: Dynamic Token-Level Expert Activation with Layer-Wise Adaptive Capacity for Mixture-of-Experts Neural Networks

Machine Learning Research Stuttgart, Germany(斯图加特德国机器学习研究)

Gökdeniz Gülmez

AI总结:

DynaMoE通过动态令牌级专家激活和层间自适应容量分配,提升混合专家神经网络的参数效率和计算适应性。

摘要:

混合专家(MoE)架构已作为一种强大的范式出现,用于在保持计算效率的同时扩展神经网络。然而,标准的MoE实现依赖于两个刚性的设计假设:(1)固定Top-K路由,每个令牌恰好激活K个专家;(2)在所有层之间均匀分配专家。本文介绍了DynaMoE,一种新颖的MoE框架,通过动态令牌级专家激活和层间自适应容量分配来放松这两个约束。DynaMoE引入了一种系统性的路由机制,其中每个令牌激活的专家数量根据输入复杂性而变化。同时,该框架实现了六种不同的调度策略,用于在网络深度上分配专家容量,包括递减、递增、金字塔和波浪模式。我们从理论上分析了动态路由的表达性增益,并推导了计算效率的界限。通过在MNIST、Fashion-MNIST、CIFAR-10(图像分类)和Recycling-the-Web(语言模型)等多个模型规模上进行广泛的实验,我们证明DynaMoE在参数效率方面优于静态基线。我们的关键发现是,最优的专家调度是任务和规模相关的:递减调度(将容量集中在早期层)在图像分类中优于均匀基线。对于语言模型,最优调度因模型大小而异,递减适用于Tiny,递增适用于Small,均匀适用于Medium。此外,动态路由在训练过程中减少了梯度方差,从而提高了收敛稳定性。DynaMoE建立了一种新的神经网络自适应计算框架,为MoE架构设计提供了系统性的指导。

英文摘要:

Mixture-of-Experts (MoE) architectures have emerged as a powerful paradigm for scaling neural networks while maintaining computational efficiency. However, standard MoE implementations rely on two rigid design assumptions: (1) fixed Top-K routing where exactly K experts are activated per token, and (2) uniform expert allocation across all layers. This paper introduces DynaMoE, a novel MoE framework that relaxes both constraints through dynamic token-level expert activation and layer-wise adaptive capacity allocation. DynaMoE introduces a principled routing mechanism where the number of active experts per token varies based on input complexity. Concurrently, the framework implements six distinct scheduling strategies for distributing expert capacity across network depth, including descending, ascending, pyramid, and wave patterns. We theoretically analyze the expressivity gains of dynamic routing and derive bounds on computational efficiency. Through extensive experiments on MNIST, Fashion-MNIST, CIFAR-10 (image classification), and Recycling-the-Web (language modeling) across multiple model scales, we demonstrate that DynaMoE achieves superior parameter efficiency compared to static baselines. Our key finding is that optimal expert schedules are task- and scale-dependent: descending schedules (concentrating capacity in early layers) outperform uniform baselines on image classification. For language modeling, optimal schedules vary by model size, descending for Tiny, ascending for Small, and uniform for Medium. Furthermore, dynamic routing reduces gradient variance during training, leading to improved convergence stability. DynaMoE establishes a new framework for adaptive computation in neural networks, providing principled guidance for MoE architecture design.

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

↑