﻿# Speculative decoding needs a whole-path resource comparison

Compare speculative decoding with target-only service using complete proposal, verification, memory and accepted-response resource boundaries.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/field-econ-speculation-whole-path-resource-budget/
Language: en

## A high acceptance figure is not a resource result

A coding assistant enables a draft model and sees many proposed tokens accepted. Its report describes those accepted tokens as saved target work and concludes that capacity increased. That conclusion skips proposal generation, verification and additional state. The actual question is whether the whole speculative path completes more acceptable service within the available resources. A draft acceptance metric can help explain a measured outcome, but cannot determine that outcome or establish a financial saving by itself.

## Identify the selected execution method

The [vLLM speculative-decoding guide](https://docs.vllm.ai/en/latest/features/speculative_decoding/) distinguishes model-based and lighter proposal methods and describes gains as workload-dependent. Preserve the actual proposer, target, proposal depth, sampling settings and implementation version. A separate draft model and a method without separate draft weights do not have the same resource inventory. Establish compatible execution before measurement; this analysis does not infer validity from a successful server startup or assume that every documented speculative method preserves an identical output contract.

## Use accepted responses as the comparison unit

Define a fixed task collection and independent answer checks. Compare target-only generation with the candidate speculative path using the same text inputs, model intent, arrival schedule and output constraints. Where the selected implementation promises a distributional relationship rather than bitwise identity, preserve that distinction and use suitable repeated evaluation. Do not require identical strings as a substitute for the actual guarantee. Conversely, a deliberately lossy path needs an explicit quality allowance before it becomes an eligible economic alternative.

## Include every owner of work and state

Measure the pool boundary containing target execution, proposals and verification. Retain draft weights, temporary workspace and tentative cache allocations as distinct owners where observable. Count failed requests, cancelled proposals and work discarded after rejection. The [speculative metric implementation](https://docs.vllm.ai/en/latest/api/vllm/v1/spec_decode/metrics/) separates proposed tokens, accepted draft tokens and rounds; its conventional mean acceptance length includes a bonus token. Those counters must not be summed as though they were independent delivered response tokens. Preserve their raw definitions and matching observation interval.

## Compare light load with constrained capacity

First establish latency behavior at a bounded low offered load. Then repeat near the declared service boundary with unchanged pool resources and task mix. A latency improvement with spare resources does not establish greater useful throughput under contention. Observe timely accepted responses, complete output lengths, pool consumption and neighboring request performance. If the draft occupies another device, include it rather than comparing a multi-device speculative system with a target-only device while labeling the difference a per-device improvement.

## Test poor proposals and long-lived state

Include a workload slice where proposals match poorly, without inventing its expected acceptance rate. Verify whether proposal work and reserved state reduce completed service there. Also include long concurrent lifetimes that expose memory competition, separately from an isolated short-answer test. A configuration can produce a favorable average while making one required slice infeasible. Keep those failures visible and do not discard them because the internal acceptance statistic was below the level anticipated during tuning.

## Publish a conditional resource decision

The deliverable is a comparison of accepted service and full resource use for the demonstrated method and load envelope. Explain which state or energy measurements remain shared rather than exactly attributable. The [acceptance-denominator guide](/journal/guide-perf-speculation-metric-denominators/) defines internal statistics, and the [lookahead-slot guide](/journal/guide-perf-speculative-lookahead-slots/) explains tentative storage. This article adds a whole-path economic boundary: proposal efficiency, verified output and pool capacity must be assessed together before describing speculation as an improvement in resource efficiency.
