arXiv(opens in a new tab)cs.LGOct 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2610.10411

Training Parallel Speculative Draft Models by Directly Minimizing Expected Decoding Rounds

Yunxiao Zhao, Changxiao Cai

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Speculative decoding accelerates large language model inference by using a low-cost draft model to propose tokens that the full-size target model verifies in parallel. Parallel and semi-autoregressive (semi-AR) drafters improve drafting efficiency by proposing an entire block in a single forward pass, but training them raises a new difficulty: the draft distribution for a given position depends on where the decoding round starts, and where rounds start depends on how many tokens earlier rounds accepted. Existing training objectives typically rely on block-local surrogates that ignore this cross-round coupling, and therefore do not directly optimize the global decoding efficiency. In this work, we develop a theoretical framework for training and evaluating these drafters by representing speculative decoding as a Markov reward process. This formulation yields the Expected Decoding Rounds (EDR) objective, which weights local rejection costs by state occupancies and exactly equals the expected number of decoding rounds. Unlike prior surrogate objectives, EDR introduces no auxiliary hyperparameters. We then derive an exact temporal-difference gradient that supports unbiased stochastic optimization from target-model rollouts. The same framework also yields an exact offline evaluator for round counts, enabling paired drafter comparisons on shared target rollouts without running speculative decoding. Finetuning two state-of-the-art drafters, DSpark and DFly, with EDR consistently improves mean accepted length and outperforms existing training objectives across nine benchmarks spanning math reasoning, code generation, and chat.

https://github.com/y-x-zhao/AngelSpec-EDR

Contents

1 Introduction 2
2 Preliminaries 3
3 Main Results 4
3.1 Speculative Decoding as a Markov Reward Process 5
3.2 The EDR Objective 6
3.3 TD-Form Gradient of EDR 7
3.4 Exact Offline Evaluation 8
3.5 Suboptimality of Block-Local Surrogates 9
4 Related Work 9
4.1 Literature Review 9
4.2 Comparison of Training Objectives 10
5 Experiments 12
5.1 Experimental Setup 12
5.2 Experimental Results 13

*Department of Industrial and Operations Engineering, University of Michigan, Ann Arbor, MI, USA. Email: {zhyx,cxcai}@umich.edu.

6 Conclusion 13
A Speculative Decoding Algorithm 17
B Proofs 17
B.1 Markov Process Formulation in Section 3.1 17
B.2 Proofs of Proposition 1 and Proposition 2 20
B.3 Proof of Theorem 1 21
B.4 Proof of Theorem 2 21
B.5 Proof of Theorem 3 22
C Additional Details for Expected Decoding Rounds 24
C.1 Draft EOS Probability Does Not Reduce EDR 24
C.2 Fixed-Size Anchor Sampling 24
D Additional Details for Experiments 25

References (87)