TECHNOLOGY

Read speculative acceptance ratios with the correct denominator

In this article
THE QUICK TAKE

Keep proposed-token and draft-round denominators separate, including the bonus-token convention and matching engine observation windows.

A speculative-decoding report compares acceptance percentage with mean acceptance length as if they measured the same quantity. One divides by proposed tokens; the other divides by draft rounds and conventionally includes a bonus token. Read the installed metric definitions and observation interval before translating either number into model speed or accepted output throughput.

Preserve the execution method

Record the active speculative method, proposal configuration, model revisions and workload. Different methods can propose different amounts of work per round. The current metrics implementation also documents alternate semantics for diffusion paths, so ordinary autoregressive draft terminology should not be transferred without checking the path. A shared counter name does not guarantee identical mathematical meaning across all model families.

Separate the denominators

The ordinary draft acceptance fraction uses accepted draft tokens divided by proposed draft tokens. Accepted draft tokens per round instead divides by the number of drafts. Current logging defines mean acceptance length as that per-round quantity plus the conventional bonus token. Preserve the label and formula. A larger proposal count can change one metric differently from another without any arithmetic inconsistency.

Keep windows and engines aligned

The logging implementation aggregates observations over its reporting interval and resets its local lists afterward. Prometheus counters accumulate with engine labels and require an appropriate interval query. Compare matching windows and populations. An unweighted mean of engine percentages is not the same as dividing the total accepted draft tokens by the total proposed draft tokens when engine workloads differ.

Distinguish acceptance from completion

Accepted-draft throughput excludes other work and is not automatically the full response-token rate. Verification, proposal generation and stopping behavior still affect completed requests. Preserve actual response lengths and request duration alongside the internal metrics. Do not convert a high fraction into a speedup without measuring the target-only and speculative paths on comparable useful output.

Test a defined change

Change a justified proposal setting in an isolated equivalent and retain raw numerator and denominator observations with checked results. Inspect whether more accepted work per round offsets its added computation and memory pressure. Acceptance establishes an interpretable internal metric comparison. It does not validate a draft-target vocabulary pairing, prove the sampling distribution or guarantee a latency benefit under a different concurrency and prompt distribution.

Primary references

vLLM Speculative Decoding Metric Definitions.

vLLM Speculative Decoding.

Prometheus Counter Query Functions.

Related reading: Validate a draft and target model pair for vLLM speculative decoding; Speculative sampling uses acceptance and correction to preserve a target distribution.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles