dMoE: 具有可学习块专家的扩散大语言模型
dMoE: dLLMs with Learnable Block Experts
AI总结:
针对扩散大语言模型与混合专家架构集成时块并行解码与令牌级专家选择不匹配导致的推理内存瓶颈,提出dMoE框架,通过聚合块内令牌级专家分布为统一的块级专家分布来减少激活专家数量,在保持性能的同时显著降低内存使用和延迟。
摘要:
扩散大语言模型(dLLMs)最近作为自回归模型的有前途的替代方案出现,在自然支持并行解码的同时提供了有竞争力的性能。然而,随着dLLMs越来越多地与混合专家(MoE)架构集成以扩展模型容量,块并行解码与令牌级专家选择之间出现了根本性的不匹配。具体来说,每次dLLM前向传递处理多个具有双向依赖关系的令牌,而传统的MoE层独立路由每个令牌。这种不匹配显著增加了唯一激活专家的数量,使推理越来越受内存限制。为了解决这个问题,我们提出了dMoE,一个简单而有效的块级MoE框架。dMoE的核心思想是将每个块内的令牌级专家分布聚合成统一的块级专家分布,然后以更连贯的方式指导专家路由。通过这种方式,dMoE在不牺牲性能的情况下显著减少了推理期间唯一激活专家的数量,从而缓解了内存瓶颈。在各种基准上的大量实验证明了dMoE的有效性。平均而言,dMoE将唯一激活专家的数量从69.5减少到14.6,同时保留了原始性能的99.11%。同时,它将内存使用减少了76.64%到79.84%,并实现了1.14倍到1.66倍的端到端延迟加速。代码可在https://github.com/fscdc/dMoE获取。
英文摘要:
Diffusion Large Language Models (dLLMs) have recently emerged as a promising alternative to autoregressive models, offering competitive performance while naturally supporting parallel decoding. However, as dLLMs are increasingly integrated with Mixture-of-Experts (MoE) architectures to scale model capacity, a fundamental mismatch arises between block parallel decoding and token-level expert selection. Specifically, each dLLM forward pass processes multiple tokens with bidirectional dependencies, whereas conventional MoE layers route each token independently. This mismatch substantially increases the number of uniquely activated experts, making inference increasingly memory-bound. To address this, we propose dMoE, a simple yet effective block-level MoE framework. The central idea of dMoE is to aggregate token-level expert distributions within each block into a unified block-level expert distribution, which is then used to guide block expert routing in a coherent manner. In this way, dMoE substantially reduces the number of uniquely activated experts during inference without sacrificing performance, thereby mitigating the memory-bound bottleneck. Extensive experiments across a variety of benchmarks demonstrate the effectiveness of dMoE. On average, dMoE reduces the number of uniquely activated experts from 69.5 to 16.6 while retaining 99.55% of the original performance. Meanwhile, it reduces memory usage by 74.36% to 76.78% and achieves $1.36\times$ to $2.04\times$ end-to-end latency speedup. Code is available at: https://github.com/fscdc/dMoE.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。