REAL Loss: Optimizing Real Expected Acceptance Length for Speculative Decoding
- ID: f9ca76a2
- 原文链接: https://arxiv.org/abs/2611.14399
- PDF: https://arxiv.org/pdf/2611.14399
- 作者: Yu Tian
- 日期: 2026-11-10
- 更新: 2026-11-10
- 分类: infra
- 来源类型: paper
- 标签: speculative-decoding, inference, training-loss, serving
- 质量评分: 4/5
- 抓取时间: 2026-11-12T04:22:28Z
中文导读
投机解码的加速由期望接受长度(EAL)决定,但交叉熵、KL、总变差等标准训练目标只做分布匹配或单步重叠;近期的块级目标想直接优化 EAL,但仍是代理目标——有的在 target 分布的续写上平均后续接受率,而非被接受 token 实际选中的验证分支,由此产生的协方差间隙甚至可能反转梯度方向。论文分析该间隙并推导出 REAL:真正的 EAL 训练损失,用路径权重做无偏估计、Rao-Blackwell 化降方差。在与 Qwen3.6-35B-A3B target + Domino drafter 的受控损失级对比中,REAL 在 9 个任务子集、5 个评测种子上的概率服务接受长度超过 WTV、VSD、DBLast 与静态 LK 基线;只需改训练损失,不动 drafter 结构与推理流程。参考实现已开源。
为什么值得关注
损失函数级的改进,零推理侧改动——投机解码研究里少见的干净对照。
块级目标(WTV/VSD/DBLast)看似在直接优化 EAL,实际仍是代理:对"接受 token 选中的验证分支"与"target 分布续写"两种求平均方式的区分,直接决定梯度方向是否可能被反转。REAL 给出无偏形式加方差控制,在受控对比里全面胜出,而工程迁移只是换训练损失——对做 drafter 训练的团队,这是不需要动 drafter 结构、不需要改推理管线的白捡加速。参考实现在 King-ty/speculators 仓库的 real-loss 分支。
关键信息
- 论文标题:REAL Loss: Optimizing Real Expected Acceptance Length for Speculative Decoding
- 作者:Yu Tian
- arXiv:https://arxiv.org/abs/2611.14399
- 发布时间:2026-11-10
- arXiv 分类:cs.LG; cs.CL
- 关联标签:speculative-decoding, inference, training-loss, serving
- 备注:19 pages, 10 figures;参考实现 https://github.com/King-ty/speculators/tree/real-loss ;对比对象 WTV/VSD/DBLast/静态 LK
English Abstract
Speculative decoding accelerates LLM inference by having a draft model propose multiple tokens for the target model to verify in one pass. The speedup is governed by the expected acceptance length (EAL), yet standard training objectives such as cross-entropy, KL divergence, and total variation focus only on distribution matching or single-step overlap. Recent studies instead propose block-level training objectives, aiming to optimize EAL directly. However, these objectives remain surrogates rather than exact formulations of EAL. For example, some average later acceptance over target-distributed continuations rather than the verification branches selected by accepted tokens, introducing a covariance gap that can reverse the gradient direction. We analyze this gap and derive REAL, a real EAL training loss that uses path weights for unbiased estimation and Rao-Blackwellization for variance reduction. In a controlled loss-level comparison with a Qwen3.6-35B-A3B target and a Domino drafter, REAL outperforms WTV, VSD, DBLast, and the static LK baseline on probabilistic serving acceptance length across 9 task subsets and 5 evaluation seeds. These gains require only a change to the training loss, with no modification to the drafter architecture or inference procedure, demonstrating the practicality of real EAL training. A reference implementation of the REAL loss is available at https://github.com/King-ty/speculators/tree/real-loss.
English Summary
Speculative decoding speedup is governed by the expected acceptance length (EAL), but standard objectives (cross-entropy, KL, total variation) only match distributions or single-step overlap, and recent block-level objectives are still surrogates: some average later acceptance over target-distributed continuations rather than the verification branches selected by accepted tokens, a covariance gap that can reverse the gradient direction. The paper analyzes this gap and derives REAL, a true EAL training loss using path weights for unbiased estimation and Rao-Blackwellization for variance reduction. With a Qwen3.6-35B-A3B target and Domino drafter, REAL outperforms WTV, VSD, DBLast and the static LK baseline on probabilistic-serving acceptance length across 9 task subsets and 5 seeds - a training-loss-only change (no drafter or inference modifications).
Obsidian Notes
- 内容获取路径:
opencli arxiv paper 2611.14399 -f json一次成功,以元数据+摘要回填。 - 中文导读与价值判断均锚定在论文摘要、作者、日期与分类信息上;未补充论文摘要之外的实验细节。
- 现代站点生成器按
content/f9ca76a2.md查找内容页;本文件写入 canonical content 目录,而不是openclaw/content/。