跳到正文
arXiv (AI + Vision + Imaging)· Antal van den Bosch·· 8 天前AI 评分22

会话本地草稿模型:近期匹配与克制策略如何加速投机解码

Text Speeding Itself Up: Recency and Restraint in Session-Local Drafting

AI 导读

在Mistral-7B验证器上对比会话本地草稿方法,最近匹配查找在500 token生成上比最早匹配查找最高提升0.09倍加速,会话记忆的加权与回退在30至40倍草稿成本下无可测增益。

正文 · 原文

arXiv:2611.19455v1 Announce Type: new Abstract: Speculative decoding lets a cheap draft model propose tokens that a large language model verifies in a single forward pass. When the verifier keeps a KV cache, verification is cheap and drafting must be nearly free. Session-local drafters, which predict from the prompt and the text generated so far, meet that bar without training. We compare a recency-weighted, backing-off, confidence-gated session memory against prompt lookup decoding in its reference form, which copies from the earliest earlier match, and in a variant that copies from the most recent one, with paired per-prompt bootstrap intervals throughout. On general, medical, and legal text with a Mistral-7B verifier, recency accounts for the speed: most-recent lookup gains up to 0.09 in speedup over earliest-match lookup on 500-token generations, and session memory's weighting and backoff add nothing measurable on top, at 30 to 40 times the drafting cost. Energy tells a different story. On medical and legal text, unselective drafters are 14% faster than plain decoding yet use as much energy per token, while drafters that abstain on weak evidence save 3 to 4 joules per 100 tokens; a three-token minimum match length on prompt lookup matches the confidence-gated session memory. Outputs are token-identical to greedy decoding in 94% of generations, with every divergence at a numerical near-tie. Under a repetition penalty, long-generation speedups shrink from 1.4-1.7x to 1.1-1.2x, but recency still helps and the length floor is the only drafter that saves energy in both domains.

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