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

并行-并行投机解码

Parallel-Parallel Speculative Decoding

IBM Research(IBM研究院);ETH Zürich(苏黎世联邦理工学院)

Michael Hersche, Ilias Mc Auliffe, Nicolas Menet, Abbas Rahimi

AI总结:

本文提出PaPaSpec解码,将并行草稿与验证并行运行,隐藏草稿延迟,在H100 GPU上7个基准测试中平均加速AR生成3.44-5.98倍,较DFlash、D-PACE均有显著提升。

摘要:

投机解码利用小型快速草稿模型加速大型自回归(AR)目标模型受内存带宽限制的推理,目标潜在条件并行草稿模型(如DFlash)目前提供最佳的准确率-延迟权衡,带来已报道的最高加速比。然而,潜在条件仍需按顺序执行草稿生成与验证,将草稿生成延迟置于关键路径,限制了可实现的加速比,且无法有效利用支持并行草稿生成与验证的新兴硬件。本文提出并行-并行投机(PaPaSpec)解码,其将多层潜在条件并行草稿模型与验证并行运行,完全隐藏草稿生成延迟。关键实现手段是前缀和深度因果潜在条件方案,限制每个草稿层仅访问已计算的目标潜在变量。将草稿生成隐藏在验证之后,不仅将其从关键延迟路径中移除,还为草稿模型提供额外时间优化草稿。利用这一点,在新条件信息到达前循环中间层,在保持草稿模型规模不变的同时增加接受长度。在H100 GPU上的单请求解码中,PaPaSpec在涵盖数学、编码和聊天的7个基准测试中,将AR生成平均加速3.44-5.98倍,较DFlash提升19-31%,较D-PACE提升9-18%。该增益可迁移至vLLM,在单批次(较D-PACE提升5-10%)和最多16个并发请求的多批次服务(SPEED-bench上提升1.7-11.1%)中均有效。

英文摘要:

Speculative decoding accelerates memory-bandwidth-bound inference of large autoregressive (AR) target models using a small, fast drafter model. Target-latent-conditioned parallel drafters, such as DFlash, currently offer the best accuracy-latency tradeoff, leading to the highest reported speedups. However, latent conditioning still requires executing drafting and verification sequentially, placing drafting latency on the critical path. This limits achievable speedups and prevents effective use of emerging hardware that can support concurrent drafting and verification. We introduce parallel-parallel speculative (PaPaSpec) decoding, which runs a multi-layer latent-conditioned parallel drafter concurrently with verification, hiding drafting latency entirely. The key enabler is a prefix and depth-causal latent conditioning scheme that restricts each drafter layer to only access the target latents computed so far. Hiding drafting behind verification not only removes it from the critical latency path, but also buys the drafter additional time to refine its draft. We exploit this by looping over intermediate layers until new conditioning information arrives, which increases the acceptance length while keeping the drafter size constant. For single-request decoding on H100 GPUs, PaPaSpec accelerates AR generation across seven benchmarks (covering math, coding, and chat) by 3.44-5.98 on average, a 19-31% improvement over DFlash and 9-18% over D-PACE. The gain transfers to vLLM in single-batch (5-10% over D-PACE) and multi-batch servings of up to 16 concurrent requests (1.7-11.1% on SPEED-bench).

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

↑