Share this article:

This post is for Korean cloud and AI engineers who run agentic workloads on a self-hosted H200, or who want to check the serving levers before they start. If you flip on vLLM’s speculative decoding switch, the first things to verify are whether that switch is a gain or a loss on the short tool-call traffic an unattended loop emits overnight, and whether accuracy blurs in the process. This paper puts a price on that decision: how much wall time and cost token-level speculative decoding (a standalone draft model and an EAGLE-style self-draft head) saves per completed task on an agentic tool-calling workload, and whether that saving leaves the accuracy anchor untouched, counted on a self-hosted H200 with the 27B teacher’s accuracy held fixed.

The conclusion comes out in closed form on the declared nominal premises. The net saving per completed task is s_task = (1-p)·s - p·θ: the decoding saving s is damped by the decoding share (1-p), and the draft’s prefill cost θ is charged by the prefill share p. Tool calls are short and prefill-dominated. The three declared categories (simple, multiple, parallel) have p of 0.9697, 0.9474, 0.9231, and facing the standalone 4B draft model’s θ_M = 4/27 ≒ 0.148, the no-go wall p ≥ 1/(1+θ) = 0.871 opens. All three categories clear that wall. At equal acceptance rate, the EAGLE-style self-draft head strictly dominates the standalone model, and the loop dividend is +3.6% per completed task for the head and −11.3% for the cold standalone model. The warm prefix cache (factor 0.24) recovers most of the cost but not all of it, so the 40/30/30 mix total is −0.6%, and only parallel alone remains at +1.0%. At temperature zero, distribution invariance holds by construction. Judge-free BFCL code grading guarantees accuracy equivalence, so that speedup cannot quietly erode trust in tool calls.

One thing to state before you read on. This paper is an analytical paper that counts values on the declared nominal premises, and it reports no execution-stage measurements. Every frontier value is a model estimate on the stated premises, and every bill is a deterministic computation on the declared nominal prices. The 4-arm, 700-item code-graded BFCL protocol is pre-registered to confirm or falsify those estimates, and this paper does not proceed to the execution stage. The three figures in the body are drawn by the analytical model, not measured data. If the ThakiCloud cost-quality series has priced, in turn, the precision ladder, concurrency taxation, the router stage, the retry gate, KV prefix reuse, and the decoding-side acceptance rate (Draft Law), this paper prices the remaining stage: the engine’s own decoding pass on real agent traffic.

Problem: Speedups Were Priced per Token, but Agent Traffic Is Prefill-Dominated

One turn of an unattended agent loop is short. A tool call is JSON confined to a schema, so the turn ends with the tool call (tool-terminated), while the context carries previous turns and the system prompt at length. On the declared length profile, simple is 4,096 input tokens and 128 output tokens, multiple is 4,608 and 256, and parallel is 4,608 and 384. The prefill share p = n/(n+ℓ) is 0.9697, 0.9474, 0.9231, and the decoding share is only 3~8%. If chat and long-form are decoding-dominated in structure, agent traffic is the opposite.

The original results of token-level speculation (Leviathan et al., the tree-attention family) put a price on total speedup in decoding-dominated chat. Medusa brought the self-draft head, and EAGLE a learned head over hidden states. ThakiCloud’s Draft Law gave the decoding-side acceptance law, but priced the draft cost only as a share inside decoding. In agent traffic, both premises break at once. The output is tool-terminated, so p is high, and the schema attaches one more prefill pass for the standalone draft. Counted per token, the per-task bill is wrong.

The acceptance rate itself is, if anything, high. Tool-call JSON is low-entropy structured output, so drafts are easy to match, backed by structural predictability ρ_S = 0.85 (declared) and per-category schema alignment w_S = 0.90/0.85/0.95. But what the identity points to is that the saving is bound by the decoding share, not by the acceptance rate. No matter how high you push acceptance, the per-task ceiling on simple is (1-p)·s_max ≒ 0.0251 (about 2.5%). In place of a high acceptance rate, most of the saving is cancelled by the draft prefill cost that p charges. This paper counts two questions: whether turning on the standalone draft model is a loss in itself on agent traffic, and how much the self-draft head leaves after training amortization.

Design: The Identity s_task = (1-p)·s - p·θ and the Two Draft Variants

The stage is vLLM on a self-hosted H200 (141GB). It uses PagedAttention and a prefix cache; the teacher T is 27B NVFP4 at temperature zero, with a BFCL anchor of 89.6%. There are two draft variants (M, H). Variant M is the standalone 4B BF16 draft model, with per-token price and draft cost d_M = θ_M = 4/27 ≒ 0.148: it spends one more prefill pass of its own. Variant H is the EAGLE-style self-draft head, with d_H = 0.05, θ_H = 0, and a one-time training cost C_train = 10 GPU-hours ($35.00). Both use speculation depth γ = 8 (sensitivity 4, 16), verifier error δ = 0.02, and alignment constant κ = 0.8.

Theorem T1 (the task-decomposition identity) is the skeleton. Under the decoding-side acceptance law (A1) and prefill/decoding separation (A2), for every variant v, s_task^v = (1-p)·s^v - p·θ_v. The decoding saving s^v is damped by the decoding share (1-p), and the draft cost θ_v is charged by the prefill share p. The saving comes out of decoding, and the cost is paid in prefill. On agent traffic with p = 0.923 or higher, that is a structure where the cost side bites hard.

The Speculative Loop: Where the Draft Toll Is Charged Per completed task, the only side that takes the token-level speculation saving is the decoding share (1-p), while the draft’s own prefill pass costs at the prefill share p. Prefill-dominated agent traffic therefore absorbs the draft cost. A conceptual figure drawn by the analytical model, not measured data.

Four corollaries open from this identity. T1a (prefill bound) gives s_task ≤ (1-p)·s_max, binding the dividend by the decoding share rather than the acceptance rate. On the declared parameters, s_max is 0.8267 for the head and 0.7396 for the model, and the ceiling on simple is at most 0.0251. T1b (net-gain condition) makes s_task > 0 equivalent to s > p/(1-p)·θ: the variant is net-gain only when the decoding saving exceeds the prefill cost charged against decoding. T1c (no-go wall) gives s_task < 0 at every acceptance rate when p ≥ 1/(1+θ_v). At θ_M = 4/27, the wall is 27/31 ≒ 0.871, and all three declared categories sit above the wall. No matter how high you push acceptance, the cold standalone model is a net loss on agent traffic. T1d (raised break-even point) says that when θ > 0, the break-even ε* drops to 1st order. For the head (θ=0), ε_task = ε = 2(1-δ-d_H)/(γ+1) ≒ 0.2067, and ε̄ = 0.16/0.18/0.14 for the three declared categories are all below it.

Result 1: The Head Dominates at Equal Acceptance Rate, and Training Amortization Takes About 29~87 Days

The variant crossover comes out in closed form in Theorem T2. T2a (equal-acceptance dominance): when τ_H = τ_M = τ, s_task^H - s_task^M = (1-p)·γ·(d_M - d_H)/(τ+1) + p·(θ_M - θ_H), and if p > 0, θ_M > 0, d_M > d_H, this difference is positive, so the head wins on both terms: the cheaper draft inside decoding, and zero cost inside prefill. T2b (acceptance tolerance) gives the head’s cost-advantage condition as α_H ≤ α_M + p/(1-p)·(θ_M - θ_H). On the declared agent traffic, p/(1-p)·θ_M is 4.74 for simple, 2.67 for multiple, 1.78 for parallel, and τ_H* = −0.70/−0.51/−0.30 < 0. In all three categories, the cost advantage is on the head’s side even if the head accepts no token at all (τ=0). In the long-form regime (p=0.5), τ_H* ≒ 1.64, so the head also needs acceptance. What makes agent traffic favor the self-draft head is the structure in which the draft cost is charged at p.

T2c (training amortization) divides the one-time cost by the number of turns. The condition for the head to keep its cost advantage over N turns is N > N* = C_train·R_H/(g·B). g is the per-turn difference (0.0360 − (−0.1126) = 0.1486), and B is the per-pass bill ($0.001129). On the declared values, N* ≒ 2.09×10^5 turns, which at 100~300 turns/hour is about 29~87 days. Head training amortizes over one to three months of dividend on agent traffic.

On the declared parameters (γ=8, κ=0.8, δ=0.02), the per-category values are as follows. For simple (ε̄=0.16, τ=3.9487), the head s_task is +0.0208, model cold is −0.1277, and model warm is −0.0185. For multiple (ε̄=0.18, τ=3.6243), +0.0349/−0.1144/−0.0077; for parallel (ε̄=0.14, τ=4.3048), +0.0543/−0.0938/+0.0101. The charge-weighted loop dividend d_loop (40/30/30 mix) is +3.60% for the head, −11.26% for model cold, and −0.59% for model warm. Across the whole sensitivity box (κ=0.5/1.0, γ=4, δ=0.05), no head value is negative. simple +0.0208 moves to +0.0226/+0.0194/+0.0196/+0.0193, and loop-level d_loop^H stays within ±0.5 points of the declared +0.0360.

Net Task Dividend by BFCL Category and Draft Variant On the declared parameters, the self-draft head is net-gain on all three tool-call categories (simple +2.08%, multiple +3.49%, parallel +5.43%), while the standalone 4B draft model is strongly net-loss when cold (−12.77%/−11.44%/−9.38%). The warm prefix cache pulls the model toward zero, but only the parallel turn (+1.01%) is net-gain, and the 40/30/30 mix total still stands at −0.59%. A closed-form computation of the analytical model, not measured data.

Result 2: The Warm Cache Recovers Most of the Cost, but the Mix Remains a Net Loss

In Theorem T5, the warm prefix cache is compounded to an effective cost θ_warm = θ_v·f. With h = 0.8 and c_hit = 0.05, f = 1 - h + h·c_hit is 0.24. θ_warm = (4/27)·0.24 ≒ 0.0356, which drops from the cold 0.148 to about 1/4. The no-go wall shifts from 0.8710 to 1/(1+0.0356) ≒ 0.9657. simple (p=0.9697) is still above the wall, while multiple (0.9474) and parallel (0.9231) fall below it. Yet on the declared acceptance, simple is −0.0185 and multiple is −0.0077, still negative; only parallel is positive at +0.0101. The 40/30/30 mix total is d_loop^{M,warm} = −0.0059, still a net loss. For the total to turn positive, the parallel share must exceed x* = 0.565.

The head is orthogonal to this. Since θ_H = 0, the warm and cold forms coincide and the cache state is irrelevant. A variant with no cost for the cache to compound is unaffected by cache state.

No-Go Wall vs. Declared Prefill Share of Agentic Traffic All three declared agent categories clear the cold no-go wall at p = 0.871, and even after the wall relaxes to p = 0.9657 under the warm cache, only simple (p = 0.9697) remains above it. multiple (0.9474) and parallel (0.9231) drop below the relaxed wall. A closed-form computation of the analytical model, not measured data.

Accuracy Gate: At Temperature Zero, Invariance Holds by Construction

Theorem T4 fixes the accuracy side by construction. T4a (distribution invariance) gives that draft-then-verify accept-reject exactly reproduces the teacher T’s output distribution. At temperature zero, T’s law is a point mass over greedy strings, so speculation output matches non-speculation output with probability 1. The BFCL accuracy anchor (89.6%) is invariant by construction. T4b (judge-free certificate): BFCL code grading computes exact match on the tool-call strings on the CPU side with zero tokens, guaranteeing implementation equivalence, i.e., bit-identity, at no statistical cost. It detects drift in the stack or the numbers, not quality regression. T4c (numerical caveat) is needed because exact-trajectory matching is precision-sensitive in finite precision: the roughly 45%/43% discrepancy rate reported under BF16 is what makes T=0 bit-identity a pre-registered certificate (R3) rather than a hardware theorem. The draft-teacher precision axis (NVFP4/BF16) is fixed in this paper. T4d (quality budget): speculation contributes zero to the quality-regression budget and combines additively with the quiet floor of the retry gate. At temperature zero, speedup does not quietly shave trust.

Operating Rules: The Conditions to Turn It On Are Three Lines in Closed Form

The Proposition (operating rules) gives the conditions for turning on token-level speculation. R1 is ε̄ < ε_task(θ_eff), equivalently w_S > w_S(θ_eff): the acceptance error must fall below the break-even point of the effective cost θ_eff (cold θ_v or warm θ_v·f). R2, for the head, is N > N* = C_train·R_H/(g·B), the condition after training amortization ends. R3 is that the T4 gate holds at serving temperature: at T=0 the gate is bit-identity, and otherwise the T4c caveat applies. The three conditions are in closed form in (w_S, p, h, c_hit, N, γ, δ, d, θ, κ). The standalone draft turns on only when it clears the warm wall.

The four levers (precision, prefix, retry, decoding) compose multiplicatively over different components. Precision acts on the quantization mismatch, prefix puts a factor f on marginal prefill, retry acts on ν, and decoding swaps the pass for α_v and charges a cost θ_v on prefill. The only coupling is the draft cost, and the prefix axis compounds at the warm limit. Bills are counted against the declared throughput lower bound (4,000 tok/s), and load headroom is 2nd order.

Pre-Registered Protocol: 4 Arms, 700 Items, Five Falsification Rules

The protocol is the 700-item code-graded BFCL suite at temperature zero (400 simple, 150 multiple, 150 parallel). The teacher is 27B NVFP4 (89.6% anchor, quality gate g=0.85); the primary category is simple, and the controls are multiple and parallel. There are four arms. A0 is the teacher alone (baseline), A1 is the teacher plus a standalone 4B BF16 draft (cold, θ_M=0.148), A2 is the teacher plus the EAGLE head (θ_H=0), and A3 is A2 plus a warm prefix cache, including the prefix reuse factors h and c_hit. Primary γ=8 (sensitivity 4, 16), and primary b=1 (sensitivity b=8, for the degradation of speculation under large batches).

The estimands are the per-category τ for the Draft Law structure test (τ_S > τ_R > τ_F, ratio ≥1.5), the draft cost θ_M/θ_warm/θ_H, the per-category p, s_task for T1 (residual ±15%), d_loop for T3 (±15%), s_dec for the Draft Law break-even, the T=0 bit-identity rate (expected 100%, mismatches attributed to the numerical regime), the head-model gap g and τ_H* (T2a/T2b), and N* for the declared C_train ∈ {5,10,20} GPU-hours.

The falsification rules are five. R1 falsifies T1 if, in any arm, s_task - [(1-p)s - pθ] /s_task > 15%. R2 falsifies the high-acceptance hypothesis if τ_tool ≤ τ_prose on the controls. R3 falsifies the fixed-accuracy claim (numerical regime) on a single T=0 discrepancy. R4 falsifies the enablement rule if d_loop(A3, warm) < 0 at the declared w_S ≥ 0.85. R5 falsifies the no-go wall (θ over-declaration) if A1 is net-gain at the declared p ≥ 0.92.

Sensitivities are κ ∈ {0.5,0.8,1.0}, γ ∈ {4,8,16}, δ ∈ {0.01,0.05}; the precision axis is BF16 versus NVFP4 draft, and the load is light load versus near saturation. At the declared prices (R_H = $3.50/GPU-hour, throughput lower bound 4,000 tok/s), the cost is 3.168×10^6 tokens per arm, and the worst-case total (15%/5%/5% draft margin on A1/A2/A3) reaches 1.3464×10^7 tokens, 0.94 GPU-hours, and $3.27. Excluding A1 (the no-go wall), it shrinks to 9.8208×10^6 tokens, 0.68 GPU-hours, and about $2.40. The protocol is pre-registered here and was not executed in this paper.

Where It Reaches: Company, Society, and Science

What ThakiCloud gets is the inference-engine levers of the token factory and an explicit enablement rule for the H200 27B-teacher endpoint. Speculative decoding turns on exactly when draft acceptance × prefill ratio × serving capacity clears the completed-task cost threshold, and the judge-free deterministic BFCL accuracy-equivalence gate keeps the speedup from eroding the tool-call trust the unattended loop runs on. +3.6% is small, but it is a saving that does not touch accuracy; −11.3% names, in numbers, the switch that should not be turned on.

What society gets is lower compute and energy cost per unit of scale for unattended agent automation. When short, frequent structured generation makes up most of the agent workload, cutting wall time and cost per completed task is what makes 24/7 self-hosted business automation economically possible. A reproducible wall-time/cost method for pricing new serving features on real agent traffic also remains.

What remains for science is the first controlled characterization of token-level speculative decoding under an agent workload (tool-terminated, prefill-dominated, low-entropy structured output). It quantifies where the speedup assumptions of the original literature (measured on chat and long-form generation) break, as a wall-time/cost frontier over BFCL per-category draft acceptance rate and the accuracy floor. It is the explicit upgrade that lifts Leviathan et al., Medusa, and Draft Law all the way to task subdivision. Token-level speculation earns its value in agent traffic exactly where the decoding share is smallest and the output structure is most predictable.

Limitations: Nine Assumptions Hold the Analytical Study, and the Honest Caveat Is One

The limitations open with nine assumptions. (i) i.i.d. acceptance within a category: ε̄ is a constant per position, and τ is a class average, a 1st-order approximation. (ii) Workload dependence of κ: κ and the per-category τ shift with workload movement, and the declared κ=0.8 is bracketed by the sensitivity box. (iii) The precision axis is fixed: the NVFP4+BF16 mismatch is priced separately and could move κ and the decoding dividend. (iv) Numerically lossless: the T=0 discrepancy is a certificate, not a theorem; finite-precision matching is partial (about 45%/43%), and R3 is what makes it testable. (v) The warm factor 0.24 is a steady-state hit assumption: cache eviction can push the effective factor above it, so the cold form is a conservative lower bound. (vi) Batches above b=8 are not modeled: large batches degrade speculation. (vii) The co-location assumption: a distributed split adds θ_net > θ_M and pushes the wall to the right. (viii) It also specifies where not to turn it on: free-form below w_S* without speculation, long-form with p < p* ≒ 0.78 where the model is possible and the head unnecessary, skill-entire turns with response-level speculation, and asymmetric context, which lowers θ. (ix) ρ_S = 0.85 is the softest input: SPORK bounds tool wait at 16~37% of wall time but does not calibrate it, because the per-category τ estimand is the direct certificate.

The honest caveat is that every frontier value is a model estimate on the stated premises. Bills are deterministic computations on the declared nominal prices of a self-hosted H200, and this study reports no execution-stage measurements. That is why the 4-arm, 700-item protocol exists.

The paper text and accompanying materials are on the Hugging Face paper page. https://huggingface.co/datasets/thaki-AI/daily-paper-2026-12-01-speculative-decoding-agentic-tool-calls

Every number in the body is a closed-form prediction on the declared nominal premises (A1~A5), or a result attributed to a cited reference. The precise values run from s_task = (1-p)·s - p·θ, the no-go wall 27/31 ≒ 0.8710 (warm 0.9657), p = 0.9697/0.9474/0.9231 (simple/multiple/parallel), d_M = θ_M = 4/27 ≒ 0.148, d_H = 0.05, θ_H = 0, γ = 8, δ = 0.02, κ = 0.8, ε̄ = 0.16/0.18/0.14, τ = 3.9487/3.6243/4.3048, s_max = 0.8267/0.7396, the simple ceiling ≤ 0.0251, ε_task = 0.2067, τ_H* = −0.70/−0.51/−0.30 (≒ 1.64 at p=0.5), s_task head +0.0208/+0.0349/+0.0543, model cold −0.1277/−0.1144/−0.0938, model warm −0.0185/−0.0077/+0.0101, d_loop = +3.60%/−11.26%/−0.59%, f = 0.24 (h=0.8, c_hit=0.05), θ_warm = 0.0356, x* = 0.565, N* ≒ 2.09×10^5 turns (C_train = 10 GPU-hours = $35.00, g = 0.1486, B = $0.001129, about 29~87 days at 100~300 turns/hour), R_H = $3.50/GPU-hour, throughput lower bound 4,000 tok/s, the BFCL anchor 89.6%, the 4-arm, 700-item protocol (simple 400/multiple 150/parallel 150), the worst case $3.27 (about $2.40 excluding A1), to the falsification rules R1~R5 (residual 15%, τ_tool ≤ τ_prose, T=0 discrepancy, d_loop(A3) < 0 @ w_S ≥ 0.85, A1 net-gain @ p ≥ 0.92). The three figures are closed-form computations of the analytical model, not measured data. The 4-arm, 700-item protocol is pre-registered and was not executed in this paper; the reporting of measured values happens at execution time.*

Share this article:

Tags: agentic-tool-calling, bfcl-evaluation, draft-acceptance, eagle-head, fixed-accuracy-gate, h200-serving, prefill-heavy-inference, prefix-cache, speculative-decoding, structured-output, token-factory, wall-time-cost

Categories:

Updated: