SlimWise:解耦预填充与解码的专家剪枝以实现高效MoE服务
研究论文 · 2026/10/07
SlimWise 是一个面向 MoE 模型的高效服务框架,针对预填充和解码阶段分别使用完整模型和剪枝模型,并直接复用预填充生成的 KV 缓存,无需转换。这种无需训练的 KV 缓存交接在多种设置下显著缩小了与完整模型的精度差距。SlimWise 还引入低成本的蒸馏阶段,训练解码器从完整模型 KV 缓存继续,仅更新少量参数。在 vLLM 中实现,支持 PD 分离和 PD 同址服务。在 Qwen3.6-35B-A3B 上,50% 专家剪枝时解码吞吐量提升高达 1.81 倍,精度损失极小。
SlimWise 通过解耦预填充和解码阶段的专家剪枝,在保持模型精度的同时显著提升 MoE 模型的解码吞吐量,为高效 MoE 服务提供了实用方案。
Mixture-of-experts (MoE) models activate few experts per token, yet batched decoding can access nearly the entire expert pool, making expert-weight traffic a major bottleneck. Expert pruning reduces this traffic, but conventional approaches also prune compute-bound prefill, sacrificing model quality for little throughput benefit. We present SlimWise, a serving framework that tailors the expert pool to each inference phase. SlimWise performs prefill with the full model and decode with a pruned model that directly reuses the prefill-generated KV cache without conversion. Across two MoE backbones and three pruning criteria, this training-free KV cache handoff substantially narrows accuracy gaps relative to the full model in many settings. We also show that benchmark accuracy can conceal substantial pruning-induced changes in generation length. To address these distortions and residual accuracy loss, SlimWise introduces a low-cost distillation stage that trains the decoder to continue from full-model KV caches while updating only a small subset of parameters. Implemented in vLLM, SlimWise supports both prefill-decode (PD) disaggregation and PD-colocated serving. On Qwen3.6-35B-A3B, SlimWise improves decode throughput by up to 1.81x at 50% expert pruning with minimal accuracy loss.