Research Papers 论文研究 5h ago Updated 1h ago 更新于 1小时前 49

ExFold: Unified Expert Folding for Training-Free MoE Prefill-Decode Acceleration ExFold:统一专家折叠用于免训练MoE预填充-解码加速

ExFold is a training-free expert-folding framework that jointly accelerates both prefill and decode phases of MoE inference without requiring model retraining It reformulates both phases as a single budgeted output-approximation problem, using calibrated scalar projectors to fold excluded expert contributions into retained experts The key insight is that many expert outputs are directionally aligned but differ in magnitude, enabling a pairwise scalar-projector matrix calibrated on unlabeled data ExFold提出了一种统一的无训练专家折叠框架,同时加速MoE模型的prefill和decode阶段 核心思想是将两个推理阶段建模为预算约束的输出近似问题,通过校准的标量投影器将排除专家的贡献折叠到保留专家上 观察到许多专家输出方向对齐但幅度不同,据此在无标签数据上校准成对标量投影器矩阵 在vLLM中实现为即插即用插件,配合轻量级CUDA内核,TTFT最高加速1.41x,TPOT最高加速2.45x,同时保留约99%原始质量

65
Hot 热度
75
Quality 质量
70
Impact 影响力

Analysis 深度分析

TL;DR

  • ExFold is a training-free expert-folding framework that jointly accelerates both prefill and decode phases of MoE inference without requiring model retraining
  • It reformulates both phases as a single budgeted output-approximation problem, using calibrated scalar projectors to fold excluded expert contributions into retained experts
  • The key insight is that many expert outputs are directionally aligned but differ in magnitude, enabling a pairwise scalar-projector matrix calibrated on unlabeled data
  • Prefill acceleration operates as token-level Top-K folding while decode acceleration operates as batch-level expert-pool folding, sharing one unified folding mechanism
  • Implemented as a plug-and-play vLLM plugin with a custom CUDA kernel, achieving up to 1.41x TTFT and 2.45x TPOT speedups while retaining ~99% of original model quality

Why It Matters

MoE models are increasingly popular for their quality-efficiency tradeoff, but low-latency serving remains a critical bottleneck due to fundamentally different prefill and decode constraints. ExFold addresses a significant gap by unifying acceleration across both phases in a training-free manner, making it immediately deployable without retraining overhead. This is particularly relevant for practitioners deploying large-scale MoE models in production where both throughput and latency matter.

Technical Details

  • Core mechanism: ExFold casts prefill and decode as a unified budgeted output-approximation problem. A constrained expert set is executed per phase, while excluded experts' contributions are projected onto retained experts via calibrated scalar projectors
  • Scalar projector calibration: A pairwise scalar-projector matrix is learned on unlabeled data, exploiting the observation that expert outputs are often directionally aligned but vary in magnitude
  • Phase-specific folding: Prefill uses token-level Top-K expert folding (optimizing per-token computation), while decode uses batch-level expert-pool folding (optimizing memory traffic from batch-wise activated experts)
  • Implementation: Deployed as a plug-and-play vLLM plugin with a lightweight expert-folding CUDA kernel, requiring no model modifications
  • Performance: Up to 1.41x TTFT (time-to-first-token) and 2.45x TPOT (time-per-output-token) speedups with approximately 99% quality retention

Industry Insight

  • Training-free acceleration methods like ExFold lower the barrier to deploying MoE models at scale, eliminating the need for costly retraining pipelines that many production teams cannot afford
  • The unified prefill-decode approach addresses a real fragmentation in current optimization tools, which typically target only one phase—practitioners should evaluate whether existing single-phase tools are leaving performance on the table
  • The directional-alignment insight underlying scalar projection could generalize beyond MoE models to other sparse-activation architectures, suggesting a broader research direction for training-free approximation techniques

TL;DR

  • ExFold提出了一种统一的无训练专家折叠框架,同时加速MoE模型的prefill和decode阶段
  • 核心思想是将两个推理阶段建模为预算约束的输出近似问题,通过校准的标量投影器将排除专家的贡献折叠到保留专家上
  • 观察到许多专家输出方向对齐但幅度不同,据此在无标签数据上校准成对标量投影器矩阵
  • 在vLLM中实现为即插即用插件,配合轻量级CUDA内核,TTFT最高加速1.41x,TPOT最高加速2.45x,同时保留约99%原始质量

为什么值得看

MoE模型的低延迟推理是工业界落地的重要瓶颈,本文首次统一解决了prefill和decode两个阶段的加速问题。其无训练、即插即用的特性使其可直接应用于现有推理框架,对降低MoE部署成本具有直接价值。

技术解析

  • 问题建模:将prefill和decode统一为预算约束的输出近似问题,prefill阶段为token级Top-K折叠,decode阶段为batch级专家池折叠,两者共享同一折叠机制
  • 核心机制:基于专家输出方向对齐但幅度不同的观察,在推理时通过校准的标量投影器将预算排除的专家贡献投影到保留专家上
  • 实现方式:作为vLLM的插件实现,包含轻量级专家折叠CUDA内核,无需修改模型权重或重新训练
  • 性能表现:TTFT最高加速1.41倍,TPOT最高加速2.45倍,平均质量保留约99%

行业启示

  • 无训练加速方法在MoE推理优化中具有实用价值,可降低部署门槛并避免重新训练的成本
  • Prefill和decode阶段的加速应统一考虑,而非分别优化,这为推理框架设计提供了新思路
  • 专家输出方向对齐的特性为模型压缩和加速提供了新的优化维度,值得进一步探索

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Inference 推理 Research 科学研究 Training 训练 Deployment 部署