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

超越任务无关:面向通信高效的多任务MoE推理的任务感知分组

Beyond Task-Agnostic: Task-Aware Grouping for Communication-Efficient Multi-Task MoE Inference

Tsinghua Shenzhen International Graduate School(清华大学深圳国际研究生院);Pengcheng Laboratory(鹏城实验室)

Zhiyao Xu, Aoxue Liu, Zhanjie Ding, Dan Zhao, Yong Jiang, Qing Li

AI总结:

提出任务感知共激活分组(TACG)框架,通过任务特定的共激活模式优化专家放置,并引入通用专家共享复制(GESR)应对在线负载倾斜,在三个MoE模型上平均降低通信成本31.39%,保持公平性指数0.9975。

摘要:

稀疏激活的混合专家(MoE)模型通过条件计算扩展容量,但分布式推理面临跨GPU专家通信和路由引起的负载不平衡问题。现有的放置方法通过共同定位频繁共激活的专家来降低这一成本;然而,它们从全局聚合的路由轨迹中推导出单一部署方案,从而平均掉了多任务服务中实际驱动通信的异构、任务特定的共激活模式。我们观察到专家共激活强烈依赖于任务:在一个任务族中紧密耦合的专家对在另一个任务族中往往不相关,因此有效的部署应根据任务感知的共激活而非任务无关的平均值来分组专家。基于这一见解,我们提出了任务感知共激活分组(TACG),这是一个部署时框架,利用族特定的调度和共激活轨迹推导每个专家的任务族偏好,重新加权共激活图使得族内局部性主导分组,并在精确容量约束下将每个专家分配到主GPU。为了使静态放置对在线工作负载倾斜保持鲁棒,我们进一步引入了通用专家共享复制(GESR),这是一个轻量级辅助方法,识别具有持续中心共激活特征的通用专家,将它们复制到少量辅助GPU上,并在服务时应用局部性和负载感知的选择。在三个代表性的开源MoE模型上的实验表明,我们的框架相比基线平均降低了31.39%的通信成本,同时保持了平均Jain公平指数0.9975。即使在推理数据出现严重分布偏移的情况下,这一优势依然存在,持续优于强基线。

英文摘要:

Sparsely activated Mixture-of-Experts (MoE) models scale capacity via conditional computation, but distributed inference suffers from cross-GPU expert communication and routing-induced load imbalance. Existing placement methods reduce this cost by co-locating frequently co-activated experts; however, they derive a single deployment plan from globally aggregated routing traces, thereby averaging away the heterogeneous, task-specific co-activation patterns that actually drive communication in multi-task serving. We observe that expert co-activation is strongly task-conditioned: pairs tightly coupled in one task family are often uncorrelated in another, so effective deployment should group experts by task-aware co-activation rather than by a task-agnostic average. Based on this insight, we propose \emph{Task-Aware Coactivation Grouping} (TACG), a deployment-time framework that uses family-specific dispatch and co-activation traces to derive per-expert task-family preferences, reweights the co-activation graph so that intra-family locality dominates grouping, and assigns each expert to a primary GPU under exact capacity constraints. To keep the static placement robust under online workload skew, we further introduce \emph{Generic Expert Shared Replication} (GESR), a lightweight companion that identifies generic experts with consistently central co-activation profiles, replicates them across a small set of secondary GPUs, and applies locality- and load-aware selection at serving time. Experiments on three representative open-source MoE models demonstrate that our framework reduces the average communication cost by 31.39\% over the baseline, while preserving an average Jain fairness index of 0.9975. This advantage persists even under severe distribution shifts in the inference data, consistently outperforming strong baselines.

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

↑