arXiv:2610.31338cs.AIOct 2026

Manuscript Offprint

arXiv:2610.31338

ValuSpec: Plug-and-Play Candidate Valuation before Target Verification for Tree-Based Speculative Decoding

Liang He, SiYuan Ma, Qishi Zhan, Yongqi Fan, Mingyu Cao, Qizhen Lan, Zhaolu Kang, Xilu Wang

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

Liang He ∗^{*}

Tongji University

SiYuan Ma

Nanyang Technological University

Qishi Zhan

Marquette University

Yongqi Fan

Tencent

Mingyu Cao

University of Surrey

Qizhen Lan

University of Texas Health Science Center at Houston

Zhaolu Kang

Peking University

Xilu Wang †^{\dagger}

University of Surrey

Abstract

Tree-based speculative decoding accelerates large language model inference by verifying multiple candidate branches in parallel. However, in practical serving scenarios, similar requests repeatedly induce overlapping candidate branches. While retrieval-based methods mitigate this by reusing historical drafts, the resulting candidate trees often contain many low-quality branches as the candidate tree grows, which reduces verification efficiency and wastes target-side computation. To address this, we propose ValuSpec, a plug-and-play candidate valuation mechanism that filters low-quality branches from a supplied candidate tree before expensive target-side verification. ValuSpec introduces transfer-based supervision to align filtering with the target model's behavior. A filtering threshold is estimated from the target model's greedy trajectories on a calibration split, without any parameter training. The target model then verifies the filtered tree under the output-identical greedy rule, so accepted tokens are guaranteed to match standard autoregressive decoding exactly. Experimental results on HumanEval, GSM8K, Dolly, and SpecBench show that, in our main evaluation, ValuSpec achieves up to 2.38×2.38\times end-to-end speedup in retrieval-based tree settings. Furthermore, integrating ValuSpec into the EAGLE-3 dynamic tree framework yields up to 2.78×2.78\times end-to-end speedup without modifying its tree construction strategy, demonstrating that ValuSpec serves as a generally applicable and plug-and-play candidate valuation module.

1 Introduction

Large language models (LLMs) are increasingly deployed in real-world serving systems, where inference efficiency directly impacts latency and system scalability [1, 2]. In such environments, requests are not independent at the level of local branches. Different users often submit similar programming queries, reasoning tasks, or instruction-following prompts, which induce overlapping phrases, code fragments, or reasoning steps during decoding [3, 4]. Despite this structure, modern LLM serving still relies on autoregressive (AR) decoding, where tokens are generated sequentially and each step requires a full forward pass through the model [5, 6]. This sequential dependency limits parallelism and leads to high latency, especially for long outputs [7, 8].

∗^{*}Email: he19919@163.com

†^{\dagger}Corresponding author: wangxilu@surrey.ac.uk

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Speculative decoding (SD) has been proposed to accelerate AR decoding while preserving output quality [9, 10, 11]. It follows a draft–verify paradigm, where a lightweight draft model proposes candidate tokens and a larger target model verifies them in parallel [9, 10, 12]. When multiple tokens are accepted in a single iteration, the target model can advance by several steps at once, improving throughput [9, 10, 13]. However, the efficiency of SD fundamentally relies on the quality of candidate tokens [12, 14]. As illustrated in Figure 1 A, many candidate tokens forwarded to the target model deviate from its greedy trajectory and are rejected early [12]. These low-quality candidates still incur target-side verification cost, but do not contribute to accepted decoding progress [14]. As a result, substantial target-side computation is wasted on candidates that will be rejected [15, 16].

A. Speculative Decoding Process & Latency Bottleneck

Figure

B. Speculative Execution Metrics vs. Candidate Draft Length(n)

Figure

Figure 1: Candidate quality and verification efficiency. (A) Low-quality candidate tokens waste target-side verification budget in SD. Candidate tokens that deviate from the target model's greedy trajectory are rejected, yet still consume verification computation without contributing to decoding progress. (B) Acceptance rate versus candidate draft length on Dolly (A100) using Llama-2-7b-chat-hf. Acceptance decreases monotonically as the candidate draft length grows, indicating increasing redundancy and a higher proportion of low-quality candidates.

In practical LLM serving, this inefficiency is further amplified by repeated computation at the draft stage [17, 18, 19]. Since many requests share similar local continuation patterns, the draft model repeatedly regenerates highly overlapping candidate fragments across requests [20, 21]. This redundancy occurs even before verification begins. Retrieval-based tree speculative decoding addresses this issue by reusing historical drafts instead of regenerating them online [22]. Candidate branches are stored in an external database and retrieved to construct a candidate tree during inference. This approach is particularly effective in recurring workloads, where future requests often resemble past queries. However, retrieval introduces a new challenge. As the database grows, the retrieved candidate tree becomes increasingly redundant [22]. Many candidate sequences may match the current context superficially but diverge early from the target model's behavior [9, 12]. These low-quality candidates are still forwarded to the target model and rejected during verification, consuming computation without contributing useful decoding progress [14].

This redundancy is reflected in the acceptance dynamics. As shown in Figure 1 B (A detailed sensitivity analysis can be found in Appendix A.1), increasing the size n of the candidate draft length leads to a monotonic decrease in acceptance rate [11, 13]. Larger candidate sets are more likely to include candidates that deviate from the target model's trajectory, resulting in more rejected tokens and less effective progress per iteration [12]. These observations reveal a shift in the system bottleneck. Once candidate reuse is introduced, the key challenge is no longer how to generate candidate tokens, but how to determine which candidates are worth verifying [15].

To address this problem, we propose ValuSpec, a plug-and-play candidate valuation mechanism for tree-based speculative decoding. Rather than modifying candidate construction, ValuSpec operates after a candidate tree has already been constructed and before target-side verification, filtering low-value branches from the supplied tree. This positioning distinguishes ValuSpec from generation-side tree optimization or pruning methods, which modify how candidate trees are constructed, expanded, or reduced during candidate supply. The two therefore operate at different stages of the speculative-decoding pipeline and can be applied sequentially.

To align candidate valuation with the target model, ValuSpec introduces a transfer-based supervision strategy. Specifically, deterministic autoregressive trajectories from the target model are used to calibrate a filtering threshold, without requiring additional parameter training. The filtered candidate tree is then verified under the standard output-identical greedy rule, ensuring that the final output remains the same as deterministic autoregressive decoding. Although ValuSpec is primarily motivated by retrieval-based tree settings, it is not tied to a specific candidate supplier: once a candidate tree is materialized, the same verifier-side valuation module can be applied before target verification. We therefore focus on retrieval-based tree speculative decoding as the primary setting and additionally evaluate ValuSpec on top of dynamically constructed and generation-side optimized candidate trees.

Our contributions are summarized as follows:

• We identify candidate valuation before target verification as a distinct bottleneck in tree-based speculative decoding for practical LLM serving. In particular, while retrieval-based methods alleviate repeated online draft generation by reusing historical drafts, the resulting candidate trees often contain many low-quality branches that waste target-side verification budget.

• We propose ValuSpec, a plug-and-play verifier-side candidate valuation mechanism for tree-based speculative decoding. Unlike generation-side methods that optimize tree construction or pruning during candidate supply, ValuSpec operates after the candidate tree has been materialized and before target verification, allowing it to be composed with different upstream candidate suppliers without modifying their generation procedures.

• We introduce transfer-based supervision, where deterministic autoregressive trajectories from the target model are used to guide the lightweight plug-and-play candidate valuation model for branch pruning while preserving exact output equivalence.

• Experimental results show that ValuSpec improves acceptance-related efficiency, reduces verified tree size, and increases end-to-end throughput across different candidate suppliers. In addition to retrieval-based trees, ValuSpec provides substantial additional speedup when applied on top of generation-side optimized methods, supporting the complementarity between candidate supply optimization and verifier-side candidate valuation.

References (26)