跳到正文
arXiv (AI + Vision + Imaging)· Divya Jyoti Bajpai, Arun Verma, Manjesh Kumar Hanawal·· 2 天前AI 评分28

并行草稿消除验证器空闲:一种即插即用的推测解码加速方法

Cannot Wait to Verify: Parallel Drafting to Eliminate Verifier Idle Time in Speculative Decoding

AI 导读

研究者提出一种即插即用的自适应草稿方法,在草稿生成阶段并行评估多个 transformer 层,通过测量隐藏状态空间的偏差来校验一致性,偏差小时接受分层草稿状态,否则执行修正步骤。该方法无需修改架构或重新训练,在 NLP 任务上把草稿阶段最高加速 1.65 倍,精度仅有极小下降,并保持与推测解码相同的性能。

正文 · 原文

arXiv:2611.27477v1 Announce Type: new Abstract: Autoregressive inference in large transformer models is limited by token-level sequential execution, resulting in high latency and low GPU utilization. Speculative decoding (SD) mitigates this bottleneck by introducing a draft-and-verifier model. However, the drafting stage remains sequential, leaving the verifier idle and underutilizing compute. To address this, we propose a plug-and-play drafting adaptive drafting method that parallelizes inference across transformer layers during draft generation. Starting from a shared hidden state, our approach evaluates multiple layers in parallel and verifies consistency by measuring divergence in hidden-state space. Layer-wise draft states are accepted when deviations are small; otherwise, a correction step is applied. By exploiting redundancy across transformer layers, our method accelerates draft generation and improves hardware utilization without modifying architectures or requiring retraining. Experimental results on NLP tasks show that our method speeds up the drafting stage by up to $1.65\times$ with minimal degradation in accuracy, while maintaining the same performance as SD.

来源:arXiv (AI + Vision + Imaging) · arxiv.org