arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.08669cs.AIcs.CL
收藏

ChainFlow:用于推测解码的少步潜在流匹配

ChainFlow: Few-Step Latent Flow Matching for Speculative Decoding

Koç University(科克大学);Yıldız Technical University(耶尔德兹理工大学)

Selim Aktas, Yusuf Erdem Erdem, Ahmed Zeer, Himmet Toprak Kesgin, Muzaffer Kaan Yuce, Mehmet Fatih Amasyali

AI总结:

ChainFlow 是首个基于目标模型隐藏状态的流匹配推测解码草稿模型,通过少步流匹配、变分自编码器压缩等技术,在 Qwen3.5 模型上较 EAGLE-3、DFlash 性能分别提升 39%、11%,并开源相关代码与模型。

摘要:

推测解码已成为加速大语言模型(LLM)推理的标准方法:轻量级草稿模型提出 token,目标模型通过一次并行传递验证这些 token。现有草稿模型面临限制其加速效果的权衡:自回归草稿模型逐个生成 token,因此草稿生成成本随草稿长度增加;扩散草稿模型并行生成 token,但独立预测每个位置,忽略 token 间依赖关系。我们提出 ChainFlow,一种新的推测解码范式,也是首个以目标模型隐藏状态为条件的流匹配草稿模型。ChainFlow 将草稿生成为隐藏状态上的短传输过程,仅需一到两个流步骤,而非从噪声生成的多个去噪步骤。变分自编码器压缩这些状态,使草稿生成成本几乎不随目标模型规模增长;轻量级反馈头恢复 token 间依赖关系;树状草稿生成提高接受率。在 Qwen3.5 模型上,在草稿模型规模和训练数据匹配的情况下,ChainFlow 在 vLLM 中分别比 EAGLE-3 和 DFlash 性能高 39% 和 11%。当草稿模型依次适配新语言时,这些性能提升会进一步扩大。我们的 ablation 研究涵盖草稿模型设计和并发服务,且开源了代码和草稿模型。

英文摘要:

Speculative decoding has become a standard way to accelerate LLM inference: a lightweight drafter proposes tokens that the target verifies in one parallel pass. Existing drafters face trade-offs that limits their speedups: autoregressive drafters generate tokens one at a time, so drafting cost grows with draft length, while diffusion drafters generate tokens in parallel but predict each position independently, ignoring inter-token dependencies. We introduce ChainFlow, a new speculative decoding paradigm and the first flow-matching drafter conditioned on the target's hidden states. ChainFlow treats drafting as a short transport over hidden states, needing one or two flow steps instead of the many denoising steps of generation from noise. A variational autoencoder compresses these states so drafting cost barely grows with target size, lightweight feedback heads restore inter-token dependencies, and tree drafting raises acceptance. On Qwen3.5 models, at matched drafter size and training data, ChainFlow outperforms EAGLE-3 and DFlash in vLLM by 39% and 11%, respectively. These gains further widen as drafters are adapted to new languages sequentially. Our ablations cover drafter design and concurrent serving, and we open-source our code and drafter models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑