跳到正文
arXiv cs.CL· Yu Tian·· 10 小时前AI 评分31

REAL Loss:为投机解码优化真实期望接受长度

REAL Loss: Optimizing Real Expected Acceptance Length for Speculative Decoding

AI 导读

研究提出 REAL Loss,一种直接优化投机解码期望接受长度(EAL)的训练损失,通过路径权重实现无偏估计并用 Rao-Blackwellization 降低方差。

正文 · 原文

View PDF HTML (experimental)

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 this https URL.
Comments: 19 pages, 10 figures
Subjects: Machine Learning (cs.LG); Computation and Language (cs.CL)
Cite as: arXiv:2611.14399 [cs.LG]
  (or arXiv:2611.14399v1 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2611.14399

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Yu Tian [view email]
[v1] Tue, 10 Nov 2026 17:45:12 UTC (503 KB)

来源:arXiv cs.CL · arxiv.org