MoE-SpeQ:面向混合专家模型的推测量化解码——主动专家预取与卸载
Specter: Fast MoE Inference via Quantization-Enabled Multi-Step Speculative Offloading
AI总结:
针对MoE模型推理的内存瓶颈与PCIe I/O延迟问题,提出MoE-SpeQ系统,通过设备端草稿模型预测专家序列并预取,结合自适应推测策略,在Phi-MoE模型上实现比现有卸载框架最高2.34倍的加速。
摘要:
最先进的混合专家(Mixture-of-Experts,MoE)模型的巨大内存需求为推理带来了重大挑战,其内存需求往往超过单个加速器的容量。虽然将专家卸载到主机内存是一种常见解决方案,但它会在PCIe总线上引入严重的I/O瓶颈,因为专家选择的数据依赖特性会将这些同步传输直接置于执行的关键路径上,从而严重影响性能。本文认为,可以通过牺牲少量廉价的设备端计算来隐藏数据移动的巨大成本,从而克服I/O瓶颈。我们提出了MoE-SpeQ,这是一种基于推测执行和专家卸载协同设计的新型推理系统。MoE-SpeQ采用一个小型的设备端草稿模型来预测未来token所需的专家序列。这种前瞻性使运行时协调器能够从主机内存预取这些专家,有效地将昂贵的I/O与有用的计算重叠,并将延迟从关键路径中隐藏。为了最大限度地提高性能,一个由摊销屋顶线模型(Amortization Roofline Model)指导的自适应调节器会根据底层硬件动态调整推测策略。我们在内存受限设备上的评估表明,对于Phi-MoE模型,MoE-SpeQ相比最先进的卸载框架最多可实现2.34倍的加速。我们的工作为在资源受限环境中管理数据依赖的内存访问建立了一种新的、有原则的方法,使MoE推理在商用硬件上更易于实现。
英文摘要:
Mixture-of-experts (MoE) models often exceed a single accelerator's memory capacity. Offloading experts to host memory creates a severe PCIe I/O bottleneck because data-dependent routing keeps transfers on the critical path. We present Specter, an inference system that uses quantization to combine speculative decoding with expert offloading. Its lightweight quantized draft model runs efficiently on device while preserving high-fidelity expert activation patterns. This provides accurate multi-step lookahead over future expert usage, allowing the runtime to organize expert movement and execution ahead of verification and improve both communication and execution efficiency. Under single-request inference, Specter achieves an average 1.50x (up to 1.88x) speedup in time per output token (TPOT) over the state-of-the-art system. Specter makes memory-constrained, single-GPU MoE inference more practical on commodity hardware. Our code is available at https://github.com/wwwwwf/specter_asplos.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。