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

自路由:从隐藏状态中无参数的专家路由

Self-Routing: Parameter-Free Expert Routing from Hidden States

Mila - Quebec AI Institute(Mila - 魁北克人工智能研究所);Universite de Montreal(蒙特利尔大学);Concordia University(康考迪亚大学)

Jama Hussein Mohamud, Drew Wagner, Mirco Ravanelli

AI总结:

本文提出自路由机制,通过直接利用隐藏状态子空间作为专家logits,无需额外路由参数,实现更平衡的专家利用。在GPT-2语言模型和ImageNet-1K分类任务中,自路由在性能上与传统路由方法相当,且提升专家利用率。

摘要:

混合专家(MoE)层通过仅激活每个token的小部分专家来增加模型容量,通常依赖于学习的路由器将隐藏状态映射到专家分配。本文探讨了在研究的MoE设置中是否需要专用的学习路由器。我们提出了自路由,一种无参数的路由机制,直接使用token隐藏状态的指定子空间作为专家logits,完全消除路由投影,同时保持MoE层其余部分不变。我们在GPT-2规模的语言建模和ImageNet-1K分类任务中评估了自路由,将其与标准学习路由器、随机路由基线和密集非MoE基线进行比较。结果表明,自路由在性能上与学习路由器基线相当,同时移除了所有专用路由参数,并实现了更平衡的专家利用,平均归一化路由熵提高了约17%,且没有显式的负载平衡损失。在ImageNet-1K上使用DeiT-S/16时,自路由略微优于对应的MoE学习路由器。这些发现表明,有效的MoE路由可以从隐藏表示本身产生,而无需单独的学习路由器模块。

英文摘要:

Mixture-of-Experts (MoE) layers increase model capacity by activating only a small subset of experts per token, and typically rely on a learned router to map hidden states to expert assignments. In this work, we ask whether a dedicated learned router is strictly necessary for MoE routing. We propose Self-Routing, a parameter-free routing mechanism that uses a designated subspace of the token hidden state directly as expert logits, eliminating the router projection entirely while leaving the rest of the MoE layer unchanged. We evaluate Self-Routing on language modeling across different expert counts and model scales, and on ImageNet-1K classification by comparing it against a standard learned router, random-routing baselines, and dense non-MoE baselines. Our results show that Self-Routing remains competitive with the learned-router baseline while removing all dedicated routing parameters, and yields more balanced expert utilization, with about 17\% higher average normalized routing entropy and no explicit load-balancing loss. On ImageNet-1K with DeiT-S/16, Self-Routing also slightly improves over the corresponding learned-router MoE. These findings suggest that effective MoE routing can emerge from the hidden representation itself without requiring a separate learned router module.

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

↑