arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.09844cs.LGcs.PF
收藏

在投机解码过程中引导预训练起草器

Steering Pretrained Drafters during Speculative Decoding

Frédéric Berdoz, Peer Rheinboldt, Roger Wattenhofer

AI总结:

针对投机解码中预训练起草器与验证器错位的问题,本文提出基于验证器隐藏状态计算引导向量注入的轻量动态对齐方法,可显著提升token接受率且开销极低,易适配现有模型。

摘要:

投机解码通过将生成过程拆分为快速起草与并行验证来加速语言模型推理,其核心局限是起草器与验证器的错位问题,这会限制token接受率并降低整体效率。从头训练的小型起草头虽能凭借速度优势补足性能,但当验证环节主导延迟或输入分布外时表现不佳;相比之下,预训练起草器虽然速度稍慢,却凭借更强的独立生成能力实现了更高的接受率,在起草延迟相对于验证或通信开销可忽略的场景下具备竞争力。本研究通过引入轻量级动态对齐机制提升预训练起草器的接受率:该机制利用验证器的隐藏状态计算引导向量,并将其注入预训练起草器中。与蒸馏等现有离线对齐方法相比,本方法在标准采样场景下最多可将接受token数量提升35%,在贪心采样场景下最多提升22%,且带来的计算开销可忽略不计。更重要的是,本方法可改造适配现有架构与预训练模型,能够实现快速落地应用。

英文摘要:

Speculative decoding accelerates language model inference by separating generation into fast drafting and parallel verification. Its main limitation is drafter-verifier misalignment, which limits token acceptance and reduces overall effectiveness. While small drafting heads trained from scratch compensate with speed, they struggle when verification dominates latency or when inputs are out of distribution. In contrast, pretrained drafters, though slower, achieve higher acceptance rates thanks to stronger standalone generation capabilities, making them competitive when drafting latency is negligible relative to verification or communication overhead. In this work, we aim to improve the acceptance rates of pretrained drafters by introducing a lightweight dynamic alignment mechanism: a steering vector computed from the verifier's hidden states and injected into the pretrained drafter. Compared to existing offline alignment methods such as distillation, our approach boosts the number of accepted tokens by up to 35\% under standard sampling and 22\% under greedy sampling, all while incurring negligible computational overhead. Importantly, our approach can be retrofitted to existing architectures and pretrained models, enabling rapid adoption.

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

↑