Janus:解耦注意力与专家以实现可扩展的MoE推理
Janus: Disaggregating Attention and Experts for Scalable MoE Inference
AI总结:
Janus通过解耦注意力层和MoE层,采用自适应通信机制和细粒度资源分配,提升MoE推理的资源效率和吞吐量,满足token级延迟SLA。
摘要:
为服务大型混合专家(MoE)模型带来挑战,因其大内存占用、异构资源需求和高度动态的推理工作负载。现有MoE推理系统将整个模型作为单体单元部署,导致注意力层和MoE层被迫共享相同资源配置,尽管它们有不同的扩展行为和资源瓶颈。这种粗粒度配置导致资源低效和性能不佳。我们提出了Janus,一个可扩展且资源高效的MoE推理系统,围绕三个关键原则构建。首先,Janus将注意力层和MoE层解耦到单独的GPU工作池,使两种层类型能够独立配置资源,并使用自适应双阶段通信机制实现低延迟的数据交换。其次,由于MoE层执行通常内存受限且对激活专家不平衡高度敏感,Janus引入了一个轻量级、微秒级的激活调度器,平衡各层激活专家在MoE实例中的分布,以减少推理延迟。第三,Janus采用细粒度、SLA感知的资源扩展方案,联合选择注意力资源、MoE资源和专家放置,以在token级SLA下最小化GPU成本。评估显示,Janus在满足token级延迟SLA的同时,将每GPU吞吐量提升高达4.7倍,优于最先进的MoE推理基线。
英文摘要:
Serving large Mixture-of-Experts (MoE) models is challenging because of their large memory footprints, heterogeneous resource demands, and highly dynamic inference workloads. Most existing MoE inference systems deploy the entire model as a monolithic unit, forcing attention and MoE layers to share the same resource configuration despite their different scaling behaviors and resource bottlenecks. Such coarse-grained provisioning leads to resource inefficiency and suboptimal performance. We present JANUS, a scalable and resource-efficient MoE inference system built around three key principles. First, JANUS disaggregates attention and MoE layers onto separate GPU worker pools, enabling independent resource provisioning for the two layer types, and uses an adaptive two-phase communication mechanism for low-latency data exchange. Second, because MoE-layer execution is often memory-bound and highly sensitive to activated-expert imbalance, JANUS introduces a lightweight, microsecond-scale activation scheduler that balances per-layer activated experts across MoE instances to reduce inference latency. Third, JANUS employs a fine-grained, SLO-aware resource scaling scheme that jointly selects attention resources, MoE resources, and expert placement to minimize GPU cost under token-level SLOs. Evaluation shows that JANUS improves per-GPU throughput by up to 4.7x over state-of-the-art MoE inference baselines while satisfying token-level latency SLOs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。