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

SliceMoE:路由嵌入切片而非令牌以实现细粒度且均衡的Transformer扩展

SliceMoE: Routing Embedding Slices Instead of Tokens for Fine-Grained and Balanced Transformer Scaling

Rutgers University - New Brunswick(罗格斯大学新布朗斯维克分校)

Harshil Vejendla

AI总结:

针对令牌级MoE路由的容量瓶颈、负载失衡等问题,提出SliceMoE架构通过路由嵌入切片实现细粒度均衡扩展,经多任务实验验证其推理更快、困惑度更低且专家均衡性与可解释性更优。

摘要:

混合专家(Mixture-of-Experts, MoE)层通过将令牌路由到前馈专家的稀疏子集来扩展Transformer。然而,令牌级路由将整个语义范围分配给每个专家,会造成容量瓶颈、负载均衡异常以及专业化程度有限的问题。我们提出SliceMoE架构,该架构对令牌隐藏向量的连续切片进行路由。一个d维嵌入被划分为S个切片,针对每个切片,一个轻量级共享路由器预测top-k个专家。专家独立处理分配给它们的切片,之后重新组装输出,保持每令牌的浮点运算(FLOP)效率。由于不同令牌的切片在单个专家内交错排列,利用率自然更平稳。我们提出了切片级容量损失、跨切片丢弃(cross-slice dropout)以及高效的融合批处理通用矩阵乘法(GEMM)内核。在WikiText-103语言建模、WMT英德翻译以及三个文本分类数据集上的实验表明,SliceMoE的推理速度比稠密基线快达1.7倍,困惑度比参数匹配的令牌级MoE低12%至18%,并且专家均衡性得到改善,在句法子空间与语义子空间上具备可解释的专业能力。

英文摘要:

Mixture-of-Experts (MoE) layers scale transformers by routing tokens to a sparse subset of feed-forward experts. Token-level routing, however, assigns an entire semantic spectrum to each expert, creating capacity bottlenecks, load-balancing pathologies, and limited specialization. We introduce SliceMoE, an architecture that routes contiguous slices of a token's hidden vector. A d-dimensional embedding is partitioned into S slices, and for each slice, a lightweight shared router predicts the top-k experts. Experts operate on their assigned slices independently, and outputs are reassembled, maintaining per-token FLOP efficiency. Because slices from different tokens interleave within an expert, utilization is naturally smoother. We propose a slice-level capacity loss, cross-slice dropout, and efficient fused batched GEMM kernels. Experiments on WikiText-103 language modeling, WMT En-De translation, and three text-classification datasets show SliceMoE attains up to 1.7x faster inference than dense baselines, 12 to 18 percent lower perplexity than parameter-matched token-MoE, and improved expert balance, with interpretable expertise over syntactic versus semantic subspaces.

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

↑