Context The local measurements come from the four-phone Inkling 2 Mini study; the study page has the testbed and the full request results. Inkling 2 Mini study.

Speculative decoding is easy to describe and hard to evaluate. A small draft model — or a cheaper proposal source such as an n-gram table — suggests several tokens. The target model verifies them in one pass. If the proposals are accepted, the request emits more than one token per target model call. If they are rejected, the request pays for the draft, the verification, and the rollback.

The arithmetic is unforgiving. A verifier that looks cheaper per emitted token can still make the request slower, because the verifier is not the whole request. The draft has to be produced, the accepted prefix has to be committed, and the rejected suffix has to be discarded. On a phone cluster, those steps cross device boundaries.

Two different experiments

The local work separated a known-continuation diagnostic from a production-style drafting path. That distinction matters more than any single speedup number.

In the diagnostic, the verifier was given the continuation in advance. It replayed the same recorded prompt and 24-token continuation at proposal widths 0, 2, 4, and 8. This measures the cost of checking known tokens. It deliberately avoids production drafting and rollback.

Proposal widthVerification roundsMedian roundVerifier time per emitted token
Serial23300–303 ms311–314 ms
28753–758 ms268–280 ms
451,172–1,182 ms265–285 ms
831,902–1,914 ms244–259 ms
Known-continuation diagnostic on four OnePlus 11 phones, one 24-token continuation, greedy sampling. These are verifier costs, not full-request throughput results.

Width 8 had the lowest verification cost per emitted token, roughly 17–22% below serial. That looks like a win. But the median round still took about 1.9 seconds. To beat serial, a width-8 round would need roughly seven emitted tokens per round before draft and rollback overhead. The observed rounds emitted fewer than that in the document and code cases.

What production drafting did

The production path used the server's built-in ngram-simpleengine with a three-token lookup. It ran one document-grounded request, one structured Python request, and one open-ended request for 40 tokens each, with uncached prompts and the same greedy sampling (always taking the most likely next token). The measurement order was serial / width 8 / width 8 / serial.

All emitted token IDs matched the serial control. The speed did not:

RequestSerial decodeWidth 8 decodeAccepted / proposedCompletion, serial → width 8
Document2.99–3.12 tok/s1.31 tok/s11/40 in 5 rounds23.84–23.95 s → 40.04–40.57 s
Python3.06–3.14 tok/s2.12–2.22 tok/s3/11 in 2 rounds20.27–20.63 s → 24.68–25.73 s
Open-ended3.17 tok/s3.04–3.10 tok/s8/8 in 1 round18.88 s → 19.03–19.08 s
Production-style n-gram drafting at width 8. Draft and rollback costs are included in request wall time. Token IDs matched serial on all three prompts.

The open-ended case nearly broke even because the model accepted all eight proposals in a single round. The document case was the opposite: many proposals were rejected, and each rejection added work without enough accepted tokens to pay for the next round. A perfect-proposal verifier result would not have predicted this. The verifier was never asked to propose, accept, or roll back.

The question to ask before enabling it

Speculative decoding is a bet on the proposal distribution. The useful questions are local:

  • How many tokens does a draft propose, and how many survive verification on this workload?
  • What does a rejected proposal cost in rollback, state restore, or recomputation?
  • Does the draft share the target model's tokenizer and sampling policy?
  • Is the verification pass actually batched, or does it serialize behind a device handoff?
  • Does the request include prefill, queueing, and the first-token wait, or only the decode loop?

The local answer was not “speculative decoding is slower.” It was narrower: at width 8, with this n-gram source and this historical four-phone placement, the production path lost on the document and code prompts and nearly tied on the open-ended one. The verifier diagnostic showed a real per-token saving. The request showed why that saving was not enough.

What would make the next test useful

A matched follow-up should keep the prompt, tokenizer, sampling policy, placement, and thermal band fixed; reverse the arm order; and report acceptance, emitted tokens per round, draft cost, rollback cost, and completion time separately. It should also include a proposal source that is trained or selected for the workload, not only a generic n-gram table.

Until then, the honest claim is the small one: a known-continuation verifier can be cheaper per emitted token, and a production n-gram drafter can still make the request slower. Both statements are true at the same time because they measure different things.

Sources & notes

  1. Leviathan, Kalman, and Matias, Fast Inference from Transformers via Speculative Decoding (2022)
  2. Chen et al., Accelerating Large Language Model Decoding with Speculative Sampling (2023)
  3. vLLM, Speculative decoding
  4. llama.cpp repository and server documentation