CoPyro:将复制提议送入并行Drafter的推测解码方法
CoPyro: Feeding Copy Proposals to Parallel Drafters
CoPyro将n-gram检索复制得到的token替代mask输入并行drafter,由drafter在常规前向中学习保留或修正哪些token。在Qwen3-4B的八项基准上,四种并行drafter的总体接受长度均提升,100K样本训练时增益2.19-5.08%;DFlash用710K样本训练后,各模型尺寸与温度下增益1.08%-2.00%,代码生成受益最大。
arXiv:2611.27217v1 Announce Type: new Abstract: Speculative decoding accelerates language generation by letting a target model verify several draft tokens in one forward pass. Earlier neural drafters such as EAGLE extend each candidate sequence one token at a time. Recent work has turned to parallel drafters such as DFlash, which predict a whole block at once. Another approach uses n-gram retrieval to find an earlier occurrence of the current context suffix and copy the tokens that followed it directly into the draft. We introduce CoPyro, which feeds these copied tokens into a parallel drafter in place of masks. The drafter learns from context which tokens to keep and which to revise as it predicts the block in its usual forward pass. Across eight benchmarks on Qwen3-4B, CoPyro improves overall acceptance length for all four parallel drafters tested, with gains of 2.19-5.08% when trained on 100K samples. With DFlash trained on 710K samples, overall gains range from 1.08% to 2.00% across the tested model sizes and temperatures. Code generation benefits most in both settings. On Qwen3-8B, processing the proposals adds an average of 0.24 ms per decoding round in Transformers.
来源:arXiv (AI + Vision + Imaging) · arxiv.org