以 staleness 为中心的并行扩散 MoE 推理优化
Staleness-Centric Optimizations for Parallel Diffusion MoE Inference
AI总结:
DICE 提出了一种以 staleness 为中心的优化框架,通过交错并行性、选择性同步和条件通信减少 staleness,实现 1.26 倍速度提升并保持高质量。
摘要:
基于专家(MoE-based)的扩散模型在高保真图像生成中表现出显著的可扩展性,但其对专家并行性的依赖引入了关键的通信瓶颈。最先进的方法通过计算-通信重叠,即位移并行性,来减轻并行扩散推理中的开销。然而,我们发现这些技术会导致严重的*staleness*——使用来自前一步骤的过时激活,这会显著降低质量,尤其是在专家并行场景中。我们解决了这一根本矛盾,提出了 DICE,一种以 staleness 为中心的优化框架,采用三重方法:(1)交错并行性引入 staggered 管道,有效地将步骤级别的 staleness 减少一半;(2)选择性同步在层级操作,并保护易受过时激活影响的层;(3)条件通信,一种基于 token 的、无需训练的方法,根据 token 的重要性动态调整通信频率。这些策略有效减少了 staleness,实现了 1.26 倍的速度提升,同时质量损失极小。实验证明 DICE 是一种有效且可扩展的解决方案。我们的代码可在 https://github.com/Cobalt-27/DICE 公开获取。
英文摘要:
Mixture-of-Experts-based (MoE-based) diffusion models demonstrate remarkable scalability in high-fidelity image generation, yet their reliance on expert parallelism introduces critical communication bottlenecks. State-of-the-art methods alleviate such overhead in parallel diffusion inference through computation-communication overlapping, termed displaced parallelism. However, we identify that these techniques induce severe *staleness*-the usage of outdated activations from previous timesteps that significantly degrades quality, especially in expert-parallel scenarios. We tackle this fundamental tension and propose DICE, a staleness-centric optimization framework with a three-fold approach: (1) Interweaved Parallelism introduces staggered pipelines, effectively halving step-level staleness for free; (2) Selective Synchronization operates at layer-level and protects layers vulnerable from staled activations; and (3) Conditional Communication, a token-level, training-free method that dynamically adjusts communication frequency based on token importance. Together, these strategies effectively reduce staleness, achieving 1.26x speedup with minimal quality degradation. Empirical results establish DICE as an effective and scalable solution. Our code is publicly available at https://github.com/Cobalt-27/DICE
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。