betaFeedback

WorksComputer Science

LEAP: Learning Efficient Action Proposals For LLM Agents

Abstract

LLM agents are known to be slow in rollouts. An agent completes a task one step at a time. At each step, it reasons and then chooses an action to execute. The next step and action cannot start until the previous one has finished. Speculative decoding accelerates the rollouts at the reason phase by drafting and verifying the inference tokens. Recent works have also started to apply similar ideas at the action phase. These works use off-the-shelf models, usually large, to draft action proposals for target model to verify. Large drafters match the target more often but take longer to propose, while small off-the-shelf models are fast but rarely make the same decision as the target. We ask a more general question: what determines the end-to-end speedup of action speculation? To answer it, we develop a latency framework for the speculative round. The framework compares what a round gains with what it costs. The gain depends on how well the drafter predicts the target and on how many steps the task can take before it ends. The cost comes from drafting, from waiting for target verification and from executing tools. Guided by the framework, we introduce LEAP (Learning Efficient Action Proposals) which keeps the drafter small and makes it accurate by training it on the target actions sequences. With a small 0.6B model, LEAP agrees with the target on most decisions and makes agents up to 60% faster in end-to-end wall clock time, with no systematic change in task success. Across various datasets, target models and draft models, the framework accounts for most of the measured speedups. We also show the draft model can be online trained with no prior trace collection and match the performance of offline training, making LEAP practical to deploy in the real world.

Introduction

An LLM agent solves a task through successive decisions, such as selecting a tool and supplying its arguments. Each decision requires a full decode, often including reasoning, and later decisions depend on earlier actions and observations. For our 32B target on one H100, a τ\tau-bench task takes about three minutes, nearly all of it generation. Improving the latency of this sequential loop matters even when its individual calls already use an efficient serving engine.

Speculative decoding reduces generation latency within a step. A cheap draft model proposes tokens for an expensive target to verify [12, 4]. Recent agent systems apply a similar idea to whole actions. Their proposals come from off-the-shelf models, cheaper prompting configurations, or the target itself [9, 7, 1, 11] (Ye et al. 2026). These choices expose a tradeoff. An untrained small model is cheap but may rarely agree with the target. A large self-draft agrees more often but can spend much of the time that speculation was meant to save.

We ask what determines the end-to-end speedup of an action-speculation round. The draft proposes up to kk actions, and the target verifies the resulting contexts concurrently. The round commits the matching prefix and a target-generated correction or bonus unless the task ends. Our latency framework compares the committed steps gained with the cost of proposing, waiting for verification and executing tools. Efficient proposals must be likely to be accepted and cheap relative to a target step. Acceptance alone does not determine speedup: a larger draft or the target itself can be more accurate yet slower. Task endings further limit how many steps a round can commit.

Guided by this framework, LEAP (Learning Efficient Action Proposals) keeps the draft small and trains it to predict the target’s canonical actions. Every target-authored commit supplies a training pair, so supervision is a by-product of running the agent. Fine-tuning a LoRA adapter without reproducing the reasoning text raises a 0.6B draft’s agreement with Qwen3-32B from 2–25% to 64–75% across our benchmarks (Table 2). The draft proposes, the target decides, and both share one GPU during inference.

Table 2: Offline action agreement (%), Qwen3 target. Estimate ± one task-bootstrap SE. Draft types used in the cited work are evaluated here on common held-out contexts. “Direct” disables reasoning; “reason” enables it. BFCL includes turn ends. Label sampling, repeated predictions and the bootstrap protocol are detailed in Table 7.

Benchmark0.6B trained (LEAP)0.6B base ([16])32B direct ([9, 7])32B reason ([1, 11])
OpenAGI75.0 ± 3.112.8 ± 1.676.6 ± 2.397.3 ± 0.9
TaskBench75.2 ± 3.025.0 ± 1.884.8 ± 2.296.9 ± 0.9
τ2\tau^2-bench63.7 ± 4.48.0 ± 1.142.5 ± 2.665.0 ± 4.0
BFCL66.7 ± 6.02.0 ± 1.862.6 ± 3.791.9 ± 3.2

Table 2.

The paper makes three contributions. First, the latency framework relates speedup to round gains and costs. With measured hit rates and draft costs, its predictions are within 0.10 of measurement on 19 of 21 configurations. Predictions using offline hit rates meet that threshold on 12 of 18 configurations; some use measured draft latency. Second, LEAP trains a tiny draft from the target’s own actions, either offline or online. Online inference starts near sequential per-step speed and approaches the offline draft without a prior collection pass. Third, we evaluate four benchmarks, two target families and three draft sizes on a shared GPU. The trained 0.6B gives 1.10–1.63× whole-task speedup, up to about 60% faster. Across 16 tool-benchmark comparisons, official task success increases in eight, decreases in five and is unchanged in three, with differences of at most three tasks. Planning termination counts are reported separately. Every committed action passes the target-authorship audit. Figure 1 summarizes training and execution.

LEAP training and execution framework

Figure 1. LEAP trains and uses an action draft. Offline target traces or online commits supply the training pairs. The adapter proposes actions; the target verifies their contexts concurrently. In this k=2k = 2 example, one proposal matches and the target corrects the next. The remaining verification is cancelled, and the two committed actions can become further training data.

Related work

Token-level speculation. Speculative decoding preserves the target’s token distribution while verifying draft tokens in parallel ([12, 4]). Drafts may be separate models or prediction heads such as Medusa and EAGLE ([3, 14]). DistillSpec and domain-adapted drafts train for higher acceptance ([24, 8]). Online speculative decoding updates a token draft using deployment queries ([15]). OOo-Spec applies speculative decoding to tool calls ([22]). LEAP instead imitates canonical agent actions.

Action and tool speculation. Interactive and Dynamic Speculative Planning use cheaper prompting configurations ([9, 7]); Speculative Actions studies action-level verification and depth ([21]); other systems use untrained small models or modified target configurations ([16, 10, 23]). SPORK forks a probe from the target’s state, while Speculate While You Reason trains a self-speculation head jointly with the agent ([1, 11]). We train a separate small draft with the target frozen and measure both models together on one GPU. Tool-latency methods launch predicted calls while generation continues [17, 20, 5] (Li et al. 2026). They address a different cost from the sequential target-generation waits reduced by LEAP; our proposals still pay tool-execution time. Additional comparisons are in App. § 9.

Designing efficient action proposals

Propose, verify, commit

The context sis_i contains the instruction, tool schemas, and committed actions and observations. The target greedily generates a canonical action ai=T(si)a_i = T(s_i); the draft predicts it without reasoning. Actions must match after parsing and canonicalization, including tool names and arguments; invalid proposals never match. Each synchronous round follows the propose–verify–commit pattern (Ye et al., 2026) (Figure 1):

  1. Propose. Generate up to kk actions, conditioned on earlier proposals and their observations. Proposed tools execute in a copy of the environment.

  2. Verify. The target generates actions on the resulting contexts, up to k+1k+1, concurrently on one shared GPU.

  3. Commit. Consume verifications in prefix order. Commit the AA leading matches and the target’s correction or bonus, cancelling unused requests. Adopt accepted environment states without executing their tools again.

A round commits A+1A+1 actions unless its accepted prefix completes the task, which leaves no bonus. Proposing finishes before verification.

Property 1 (target authorship). Every committed action equals the target’s verification output on the context in which that action is committed.

The guarantee follows from matching before commit. Concurrent decoding can still change the target’s decisions, so trajectory identity and task outcomes are evaluated separately (App. § 21).

A latency framework

The framework compares the steps gained with the time spent in a round, for any draft used in this loop. Let qj=Pr⁡[A≥j]q_j = \Pr[A \ge j] include rounds that end before position jj, and let ee be the probability that the accepted prefix completes the task, which removes the bonus. The mean committed steps per round are c=1+∑j=1kqj−ec = 1 + \sum_{j=1}^{k} q_j - e.

Let tgent_{\mathrm{gen}} be the mean sequential target-generation time. Write βtgen\beta t_{\mathrm{gen}} for the mean longest verification time actually awaited, and DD for mean proposing time per round divided by tgent_{\mathrm{gen}}, including proposal-tool execution. With relative tool cost τ=ttool/tgen\tau= t_{\mathrm{tool}}/t_{\mathrm{gen}}, let ff be the fraction of sequential steps executing a tool and gg the mean number of target-executed tool steps per round. The speedup is approximately

S≈c(1+fτ)β+D+gτ→τ→0cβ+D.(1)S \approx\frac{c(1+f\tau)}{\beta+D+g\tau} \xrightarrow{\tau\to0} \frac{c}{\beta+D}. \tag*{(1)}

Accepted proposal tools are included in DD only once. This model assumes comparable work between arms, small bookkeeping costs and cancellation of discarded verifications.

Efficient proposals are therefore likely to be accepted and cheap relative to a target step. Pooled acceptance alone does not determine speedup: it omits rounds with no usable proposal and does not encode task endings or proposing costs. Increasing depth can raise both commits and round cost; the bounds and depth condition are in App. § 11.

Estimating the inputs. Estimate cc by evaluating the draft on held-out sequential target contexts and replaying the acceptance rule and task endings. Estimate β\beta by replaying sequential timings with estimated hits and taking each round’s maximum awaited step time. Estimate DD from single-stream draft-latency probes and the expected proposal count, plus proposal-tool costs (App. H). Concurrency-dependent changes in target outputs and timing remain sources of prediction error.

LEAP: training the draft

Guided by the framework, LEAP keeps the draft small and trains it on context–action pairs generated by the frozen target. We fine-tune a LoRA adapter with cross-entropy on canonical action tokens, discarding reasoning text. No target logits or human action labels are needed. The draft decodes without reasoning and uses schema constraints on tool benchmarks; training settings are in App. § 10.§ 3.

Only proposals conditioned on a fully matched prefix can be committed (Proposition 1), motivating supervised imitation on target traces. Property 1 also makes deployed commits a source of online training pairs, without a separate collection pass.

Experiments

Setup and main results

We evaluate Qwen3-32B and Gemma-4-31B-it, each with trained Qwen3 drafts of 0.6B, 1.7B and 4B. The whole pipeline is repeated for each target: its own sequential traces supply the training data. Target and draft share one H100 during inference. Serving configurations are held fixed across sizes within each benchmark; the Gemma target uses FP8 weights (App. § 17).

We use four benchmarks. OpenAGI and TaskBench generate plans without executing tools [6, 19]. τ2\tau^2-bench uses the telecom domain in solo mode, with tools executed against its local backend; BFCL uses multi-turn tasks and cloned tool environments [2, 18]. Train/test splits are task-disjoint. Each task runs sequentially and speculatively on the same service. We report the ratio of total sequential to speculative wall-clock. The main speedup tables show the estimate ± one standard error (SE), computed as the standard deviation of 10,000 task-level bootstrap ratios. Sequential and speculative times stay paired, and repeated runs of a task remain together when resampled. Full 95% intervals are retained in the appendix.

Table 1 covers all three sizes and both targets. The trained 0.6B yields 1.18–1.61× with Qwen3 and 1.10–1.63× with Gemma. The benchmarks differ in the terms of Eq. (1). OpenAGI accepts many proposals but its short tasks frequently remove the bonus. τ2\tau^2-bench has longer tasks and a cheap draft relative to its target generation time. BFCL tasks are multi-turn conversations; a round cannot cross the end of a turn, and turns average only 2.6 steps, limiting commits per round. Changing the target also changes the relative cost: Gemma’s planning steps are longer, while its tool-benchmark steps are shorter, so the same draft consumes a different fraction of a target step.

Every committed action passes the target-authorship audit. Across 16 comparisons on τ2\tau^2-bench and BFCL, official task success increases in eight, decreases in five, and is unchanged in three. Differences are at most three tasks per comparison. The 12 planning-benchmark comparisons count normal termination: three decrease and nine are unchanged (App. § 21). Trajectories can still diverge. We report these outcomes separately from the per-action guarantee and retain all tasks in the wall-clock estimator.

Prediction: agreement with the target

We first examine how accurately a small draft predicts the target, which determines the accepted-prefix contribution to a round’s gain. Table 2 compares draft agreement under a common evaluation setup. Training substantially improves the small base. A reasoning-free target is a strong predictor on planning tasks, but on τ2\tau^2-bench it agrees on 42.5% of contexts versus 63.7% for the trained 0.6B. Disabling reasoning can change the decision, so the target’s size alone does not guarantee a better action prediction. The reasoning-on target is also shown as a self-consistency reference.

The SEs in Table 2 resample whole tasks and retain every context and repeated prediction of each sampled task. Each replicate recomputes the context-weighted agreement, accounting for dependence between decisions from the same trajectory. These SEs quantify task-sampling uncertainty conditional on the evaluated models and runs; they do not quantify variation across training seeds. BFCL has 99 contexts from ten tasks; its trained-draft SE is 6.0 percentage points. The τ2\tau^2-bench reasoning-on reference uses the per-context mode across three passes.

Task endings limit how often later proposals can be used (§ 3.2). On OpenAGI, the second and third proposals are made in only 81% and 62% of rounds. Among rounds that reach a position with the earlier proposals accepted, acceptance is about the same as or higher than at the first position on every benchmark (Table 8).

benchmarkofflineq1q_1q2/q1q_2/q_1q3/q2q_3/q_2a2a_2a3a_3per proposal
OpenAGI75.00.710.630.630.810.800.75
TaskBench75.20.660.510.530.660.730.68
τ2\tau^2-bench63.70.640.54–0.63–0.64
BFCL49.20.380.20–0.62–0.53

Table 8. From offline agreement to live acceptance for the trained 0.6B drafts. Offline: exact match on the target’s held-out contexts (Table 7: mean over repeated predictions; BFCL: tool-group rate). Live, from the end-to-end runs of Table 9: q1q_1, the fraction of rounds whose first proposal is accepted; q2/q1q_2/q_1 and q3/q2q_3/q_2, the ratios of successive hit rates, which also count the rounds that stop proposing before the position; a2a_2 and a3a_3, the acceptance of the second and third proposal among the rounds that made it and accepted the earlier ones; and the pooled per-proposal acceptance. BFCL live rates are per tool group. A dash marks a position that does not exist: τ2\tau^2-bench and BFCL run with k=2k=2.

Supervision and objective. Table 3 tests learning the target’s actions against benchmark gold supervision and GRPO from the SFT draft. Gold-label training gives lower agreement on TaskBench and BFCL. The comparison changes the training contexts as well as the labels: gold contexts follow gold actions, and BFCL’s target can group calls. The comparison therefore assesses the complete supervision source. GRPO gives a small TaskBench gain and no BFCL gain, at substantially more training cost; no variant exceeds the three-point agreement gain used to trigger an end-to-end run.

Table 3: Supervision and training objective. Offline agreement (%) for the Qwen3 target; BFCL counts all decisions, including turn ends. Gold supervision also changes the training contexts. No variant improves agreement by the three points required to trigger an end-to-end run.

objectivesupervisionoffline agreement: TaskBenchoffline agreement: BFCL
SFT on target actions (ours)target’s committed actions75.266.7
SFT on gold labelsbenchmark ground truth69.950.5
GRPO from the SFT draftexact-match reward77.165.7

Table 3.

Data and generalization. The OpenAGI recipe study separates the 40 test tasks whose action sequences also occur in training from 23 with unseen sequences (Table 13). The default adapter obtains 82.2% agreement on the former and 64.5% on the latter. Selecting epoch 7 by validation exact match raises overall agreement from 75.0% to 77.1%, but the unseen score is 63.2%. Full fine-tuning at epoch 7 gives 75.2% overall, below the rank-64 adapter. Additional capacity or epochs therefore improve neither subset uniformly in this study.

draftoverallseenunseen
untrained 0.6B12.811.514.8
LoRA r=64r=64, 3 epochs, epoch 2 by validation loss (Table 7)75.082.264.5
LoRA r=64r=64, ep 7 by validation exact match77.186.463.2
LoRA r=64r=64, epoch 1274.183.460.4
full fine-tuning, ep 775.284.761.0
LoRA r=64r=64, ep 7, 50% of the pairs (535)72.080.559.4
LoRA r=64r=64, ep 7, 25% of the pairs (270)71.574.766.7
32B-direct (target, reasoning off)76.676.676.4
target self-consistency97.398.196.2

Table 13. OpenAGI offline agreement (%) of 0.6B drafts under recipe variations. Rows marked “ep 7” train for 12 epochs and pick the checkpoint by validation exact match; the Table 7 draft trains for 3 epochs and picks by validation loss (epoch 2). Seen/unseen as defined in the text.

Using the same epoch-7 recipe with half or one quarter of the training pairs gives 72.0% and 71.5% overall agreement, versus 77.1% with the full data. A few hundred pairs already supply useful supervision, although performance depends on action-sequence overlap and the unseen score is not monotone in data quantity. Cross-benchmark transfer is also limited: the TaskBench draft reaches 23.3% on OpenAGI and the OpenAGI draft 29.6% on TaskBench, far below their in-benchmark rates of about 75% (Table 19). Most other transfers stay near the untrained base. These results motivate workload-specific adapters and continued collection of the target’s actions. We retain action-only input because the target’s reasoning is unavailable for later speculative positions when the draft proposes them; full input and recipe studies are in App. § 13.

draft trained onOpenAGITaskBenchτ2\tau^{2}-benchBFCL
OpenAGI75.529.68.83.0
TaskBench23.374.79.36.1
τ2\tau^{2}-bench10.821.763.71.0
BFCL12.023.18.066.7
untrained base13.325.38.02.0

Table 19. Transfer across benchmarks. Offline agreement (%) of each 0.6B draft (rows) on the held-out contexts of each benchmark (columns), scored as in Table 7 (BFCL: decision agreement on the 99 development contexts).

Cost: when a more accurate draft is slower

We next test whether extra agreement offsets the cost of proposing. The framework compares the resulting gain in committed steps with the change in round time.

Figure 2 shows measured acceptance and drafting cost for the trained and untrained 0.6B drafts and the reasoning-disabled target. The untrained TaskBench draft produces no usable proposal in 38% of rounds; these rounds cost drafting time without entering the acceptance ratio (§ 3.2).

Figure 2. Measured acceptance and drafting cost, Qwen3 target. (a) Trained and untrained 0.6B controls. Acceptance is the share of compared proposals that match the target. (b) Trained 0.6B on all four benchmarks, plus the reasoning-disabled target on the two planning benchmarks where this control was run; DD is proposing time per round normalized by a target step. All points use the control runs of Table 10.

The planning controls use the target with reasoning disabled as the proposer in our same propose–verify–commit loop. Their live acceptance is comparable to or above the trained draft’s, yet Qwen3 self-drafting gives only 1.16× and 1.13× on OpenAGI and TaskBench (Table 10). Each proposal costs 3.3–4.0× as much, raising the normalized draft term from 0.16–0.18 to 0.61–0.73. With Gemma’s longer planning steps, self-drafting instead reaches 1.48× and 1.54×: drafting cost is smaller relative to a target step. These measurements illustrate why acceptance and relative cost must be considered together.

benchmarkdraftkkq1q_1q2q_2q3q_3ccβ\beta pred.β\beta meas.drafti.i.d.Eq. 4measured
OpenAGItrained 0.6B10.74––1.541.091.080.081.351.321.34
OpenAGItrained 0.6B30.710.440.282.051.211.190.181.481.471.51
OpenAGItrained 0.6B50.700.470.312.251.241.210.221.471.541.57
OpenAGIuntrained 0.6B30.150.000.001.141.031.050.130.970.980.98
OpenAGI32B-direct30.700.500.332.191.211.270.611.121.201.16
TaskBenchtrained 0.6B10.72––1.541.091.130.081.361.321.27
TaskBenchtrained 0.6B30.660.340.181.881.131.190.161.561.461.37
TaskBenchtrained 0.6B50.670.370.222.091.141.250.211.601.551.41
TaskBenchuntrained 0.6B30.210.040.001.071.031.040.071.100.980.98
TaskBench32B-direct30.740.500.332.211.151.230.731.171.171.13
τ2\tau^2-benchtrained 0.6B20.640.35–1.881.161.190.031.641.581.58
τ2\tau^2-benchtrained 0.6B30.710.370.272.231.211.250.041.921.781.79
τ2\tau^2-benchuntrained 0.6B20.090.00–1.061.021.030.021.061.021.03
BFCLtrained 0.6B10.36––1.361.071.160.021.131.241.15
BFCLtrained 0.6B20.380.07–1.451.081.190.041.161.301.20
BFCLtrained 0.6B30.390.070.021.481.091.200.041.161.311.19
BFCLuntrained 0.6B20.020.00–1.021.001.020.050.960.970.95

Table 10. Table 10: Predicted vs. measured speedup. qjq_j: measured per-position hit rates; cc: committed steps per round; β\beta: round-wait inflation, predicted from the sequential arm’s step times and measured from the speculative arm; draft: the measured draft time per round divided by the mean sequential step time (the DD term of Eq. (4), with rounds that stop proposing early counted as run). “i.i.d.” replaces the measured hit rates by qj=qjq_j=q^j. Every row was run with cancellation, so the harness never waits on already-discarded verifications (§ 3.2, assumption (e)) and the measured column is the speedup as run. Rows with other kk exercise the depth terms of the model; Table 4 exercises its tool terms. The 32B-direct rows use the target itself, with reasoning disabled, as the draft; the untrained rows use the 0.6B base without an adapter. A dash marks a position beyond the row’s kk.

Draft size. Figure 3 shows the draft-size ablation. On Qwen3 planning tasks, agreement generally increases with size, but a 4B draft is slower than 1.7B and returns to about the 0.6B speedup. Its per-round cost grows from 0.16–0.17 to 0.28–0.29 target steps, offsetting the extra commits. On BFCL, greater agreement carries through to higher speedup because drafting is cheap relative to the target step. On τ2\tau^2-bench the three sizes’ 95% intervals overlap (Table 9). Gemma changes this balance again: its shorter tool-benchmark generations increase the relative draft cost, and its 0.6B draft is fastest on τ2\tau^2-bench (Table 1).

BenchmarkTarget0.6B1.7B4B
OpenAGIQwen3-32B1.50 ± 0.071.55 ± 0.061.46 ± 0.08
Gemma-4-31B1.55 ± 0.111.55 ± 0.111.52 ± 0.10
TaskBenchQwen3-32B1.38 ± 0.081.47 ± 0.071.36 ± 0.08
Gemma-4-31B1.60 ± 0.071.68 ± 0.071.62 ± 0.06
τ2\tau^2-benchQwen3-32B1.61 ± 0.091.63 ± 0.091.56 ± 0.08
Gemma-4-31B1.63 ± 0.071.55 ± 0.061.55 ± 0.06
BFCLQwen3-32B1.18 ± 0.051.28 ± 0.041.34 ± 0.07
Gemma-4-31B1.10 ± 0.031.12 ± 0.031.16 ± 0.04

Table 1. Whole-task speedup across benchmarks, targets and draft sizes. Values are pooled speedup factors ± one task-bootstrap SE (10,000 paired resamples); bold marks the largest rounded point estimate per row. k=3k = 3 for planning and k=2k = 2 for tool benchmarks; test sizes are 63/60/40/60. Qwen3 planning entries pool two runs. Full 95% intervals and components: Table 9.

Figure 3. Draft-size ablation, Qwen3 target. Measured speedup, independent planning repeats, and the predictions used in Figure 4b. BFCL has one measured size study and no offline-hit prediction. Agreement and cost values are in Table 14; pooled results are in Table 1.

benchmarkdraftstepstgent_{\mathrm{gen}} (s)kkagreem.accept.ccspeedup95% CI
Target Qwen3-32B
OpenAGI0.6B4.21.1375.40.752.051.50×[1.36, 1.65]
OpenAGI1.7B4.21.1377.60.782.181.55×[1.43, 1.68]
OpenAGI4B4.21.1378.70.792.261.46×[1.30, 1.62]
TaskBench0.6B5.01.8374.70.701.941.38×[1.24, 1.55]
TaskBench1.7B5.01.8381.00.762.071.47×[1.34, 1.61]
TaskBench4B5.01.8380.50.752.111.36×[1.22, 1.52]
τ2\tau^2-bench0.6B13.912.4263.30.651.921.61×[1.44, 1.79]
τ2\tau^2-bench1.7B13.912.5268.10.631.881.63×[1.46, 1.81]
τ2\tau^2-bench4B13.912.4269.50.661.901.56×[1.43, 1.73]
BFCL multi-turn0.6B10.110.8266.70.531.441.18×[1.08, 1.28]
BFCL multi-turn1.7B10.110.8272.70.591.551.28×[1.20, 1.36]
BFCL multi-turn4B10.110.8279.80.651.671.34×[1.21, 1.48]
Target Gemma-4-31B-it
OpenAGI0.6B4.32.1379.80.782.181.55×[1.35, 1.79]
OpenAGI1.7B4.32.1377.30.752.081.55×[1.35, 1.78]
OpenAGI4B4.32.1379.90.762.151.52×[1.34, 1.73]
TaskBench0.6B4.92.3380.10.822.301.60×[1.47, 1.76]
TaskBench1.7B4.92.3384.60.832.431.68×[1.56, 1.82]
TaskBench4B4.92.3384.20.852.451.62×[1.51, 1.75]
τ2\tau^2-bench0.6B14.74.7272.80.802.271.63×[1.50, 1.77]
τ2\tau^2-bench1.7B14.74.7276.40.792.201.55×[1.44, 1.67]
τ2\tau^2-bench4B14.74.7277.60.802.241.55×[1.43, 1.67]
BFCL multi-turn0.6B10.23.3263.60.501.411.10×[1.04, 1.16]
BFCL multi-turn1.7B10.23.3269.70.551.481.12×[1.06, 1.18]
BFCL multi-turn4B10.23.3274.70.661.661.16×[1.09, 1.23]

Table 9. Whole-task end-to-end speedup of LEAP: four benchmarks, three draft sizes, two targets (one H100 shared by target and draft; τ2\tau^2-bench and BFCL execute tools; 63, 60, 40 and 60 test tasks). Each benchmark serves its three drafts in one configuration (App. § 17). Agreement is the draft’s offline exact-match rate (%) on the target’s held-out contexts (BFCL: decision level); acceptance is the share of verified proposals that were accepted in the runs (the per-proposal rate of Table 8); cc is the measured number of committed steps per round (Eq. (3)); the 95% interval is a task-level bootstrap of the pooled ratio (10,000 resamples). Bold marks the fastest of the three drafts for a benchmark and target. Task success per arm shows no systematic change (App. § 21).

The cost decomposition makes this comparison quantitative. In the generation-dominated regime, the model compares two draft configurations through

SBSA≃cB/cA(βB+DB)/(βA+DA).(2)\frac{S_B}{S_A} \simeq\frac{c_B/c_A}{(\beta_B+D_B)/(\beta_A+D_A)}. \tag*{(2)}

For the measured Qwen3 components, moving from 0.6B to 4B raises commits per round by a factor of 1.09–1.10 on the planning benchmarks but raises round cost by 1.12, explaining the loss in speedup. On BFCL the corresponding factors are 1.16 and 1.03, so the larger draft pays off. On τ2\tau^2-bench both ratios are within 0.02 of one. These are explanations using measured components; predictive comparisons use estimated components in the same ratio. Their resolution depends on the relative input errors, particularly when expected speedups differ by only a few hundredths. The full confidence intervals and repeated planning runs provide the relevant empirical context for these point-estimate comparisons.

The 0.6B draft is within 0.1× of the fastest size in seven of eight benchmark–target pairs. For practitioners, we recommend starting with a trained 0.6B draft and k=1k=1. The main runs use the benchmark settings in Table 1; depth studies and their uncertainty are reported in Table 10. The recommendation prioritizes low drafting and training cost.

Tool latency. Adding 2 or 5 seconds to every executed tool step in both arms tests the tool terms. At 5 seconds, measured speedup falls to 1.20× on τ2\tau^2-bench and 1.02× on BFCL; trace-replay β\beta predicts 1.17× and 1.04× using measured hit rates and proposing costs (Table 4). Agreement changes little, but proposals pay tool latency while rolling out. The normalized proposing cost grows from 0.03 to 0.31 and 0.74 on τ2\tau^2-bench, and from 0.04 to 0.23 and 0.50 on BFCL. On BFCL, turn ends execute no tool, so f=0.62f=0.62 and g=0.44g=0.44–0.450.45 (App. H).

Delay (s)Pred.Meas.
τ2\tau^2-bench01.581.58
τ2\tau^2-bench21.361.41
τ2\tau^2-bench51.171.20
BFCL01.301.20
BFCL21.151.07
BFCL51.041.02

Table 4. Tool-delay speedups. Qwen3, trained 0.6B, k=2k=2.

A round also pays for the target’s own tool action, while accepted proposal states are adopted. These costs account for the loss of speedup despite nearly unchanged hit rates. The four added-delay predictions are within about 0.08× of measurement; using the measured verification wait reduces the residual to about 0.02×. This diagnostic supports the tool-cost accounting while identifying wait estimation as a remaining error source.

Checking the latency framework

Finally, we test the framework’s combined accounting of round gains and costs against measured speedup. We first validate the accounting with the run’s measured hit rates and draft cost, while predicting β\beta from its sequential timing trace. Across 21 configurations spanning depths, untrained drafts, self-drafting and added tool latency, predicted speedup is within 0.05×0.05\times on 14 and within 0.10×0.10\times on 19 (Figure 4a). Component checks and full inputs are in Figure 7 and Table 10.

Figure 4. Predicted versus measured speedup and verification wait. (a) 21 Qwen3 controls with measured hit rates and draft cost. (b) Nine size-study configurations per target, using offline hit rates and trace-replay β\beta; draft timing sources are in Table 12. (c) Verification wait β\beta for the points of (b): the trace-replay prediction used in (b) against the measured value. Points above the diagonal waited longer than predicted, which raises the predicted speedup. Axes have equal scales within each panel; shading marks ±0.10\pm0.10 in (a) and (b).

Figure 7. Component checks of the latency framework. (a) Measured per-position hit rates (solid) and q1jq_1^j (dotted) for the four main configurations. (b) Trace-replay β\beta (filled) and the independent-step closed form (hollow), against measured values. (c) Committed steps from the single-rate replay against measured commits. Configuration details are in Table 10.

We then replace live hit rates with the draft’s predictions on held-out sequential contexts and replay the commitment rules without live acceptance measurements. In the Qwen3 control runs, offline draft-latency probes and trace-replay β\beta predict 1.48, 1.56 and 1.59× on OpenAGI, TaskBench and τ2\tau^2-bench, against 1.51, 1.37 and 1.58× measured. Figure 4b applies the same replay to all three draft sizes in the serving configurations of Table 1, giving nine points per target. The 1.7B and 4B Qwen3 planning drafts and the larger Gemma drafts use measured per-proposal latency, so these predictions are conditional on that cost. Twelve of the eighteen size-study predictions are within 0.10×0.10\times. The control and size studies use their respective serving configurations; their 0.6B measurements need not coincide.

The errors differ by target. The trace replay underestimates the verification wait β\beta on every Gemma configuration, by 0.05–0.13, and on Qwen3 TaskBench, by 0.05–0.10; on Qwen3 OpenAGI and τ2\tau^2-bench it is within 0.03 (Figure 4c). A lower β\beta raises the predicted speedup: all six points that miss by more than 0.10 in (b) have an underestimated β\beta. The cause of this gap is not established. On Qwen3 TaskBench the replay also overpredicts the first-position hit rate (0.73 versus 0.66 in the control run), because live trajectories depart from the sequential trace more often than on OpenAGI. On Gemma τ2\tau^2-bench, the replay’s lower hit rates offset the β\beta gap, so a small total speedup error can reflect cancellation between input errors. These effects limit reliable ranking of nearby configurations. BFCL is not in (b) or (c) because it has no offline-hit prediction (App. § 12.§ 3).

Learning the draft online

The separate trace-collection pass is optional: committed actions are target-authored even when the draft is initially untrained. We start the speculative system with the 0.6B base and process the training tasks in batches: 25 tasks on OpenAGI and 10 on τ2\tau^2-bench. After each batch, an adapter is trained on all commits so far on a second GPU and loaded into the draft server. Each batch uses only the adapter trained on earlier batches. A continual variant instead updates the previous adapter on the new batch plus an equal-size sample of earlier pairs.

Agreement grows rapidly (Figure 5a). On OpenAGI, retraining reaches 53% after 25 tasks, 67% after 75, and 74.0% after 250, against the offline draft’s 75.0%. Its batch speedup rises from 0.94× initially to 1.4–1.5× from the fourth batch. On τ2\tau^2-bench, agreement rises from 8.0% to 66.4%, versus 63.7% offline, and the batch speedup rises from 1.01× to 1.4× after 20 tasks and 1.60× in the last batch (Figure 5b). The final adapters attain similar test speedups to the offline drafts (Table 5).

Figure 5. Learning online, Qwen3 target. (a) Held-out agreement after each adapter update. (b) Speedup on each stream batch, placed at the batch midpoint: sequential time per step over speculative time per committed step. Dashed lines are offline drafts. Each batch uses an adapter trained on earlier tasks. Training time is reported separately; final test results are in Table 5.

BenchmarkOfflineOnline: retrainOnline: continual
OpenAGI1.51 ± 0.071.47 ± 0.081.51 ± 0.06
τ2\tau^{2}-bench1.61 ± 0.091.61 ± 0.101.63 ± 0.10

Table 5. Final online adapters on the test split, Qwen3 target. Whole-task inference speedup ± one task-bootstrap SE, using trained 0.6B drafts with matched offline and online serving settings. Training time is separate; 95% intervals are in Table 20.

BenchmarkOfflineOnline: retrainOnline: continual
OpenAGI1.51× [1.38, 1.64]1.47× [1.31, 1.63]1.51× [1.40, 1.64]
τ2\tau^{2}-bench1.61× [1.44, 1.79]1.61× [1.43, 1.81]1.63× [1.46, 1.83]

Table 20. Final online adapters on the test split, Qwen3 target. Whole-task inference speedup and task-bootstrap 95% intervals, using trained 0.6B drafts with matched offline and online serving settings. Training time is reported separately.

Retraining on the growing buffer costs 27–73 seconds per update on OpenAGI and 3–18 minutes on τ2\tau^{2}-bench. Continual updates take about 22 seconds and 3–6 minutes respectively. They reach similar endpoints, though OpenAGI dips once before recovering. Update times are reported separately from inference speedups. Version-by-version agreement and update timings are in App. § 20.

Conclusion and Limitations

We asked what determines end-to-end speedup in action speculation. The latency framework compares the committed steps gained with proposing, verification and tool costs. It identifies the design goal of proposals that are likely to be accepted and cheap relative to a target step. LEAP meets this goal by training a tiny draft on the frozen target’s actions. Across four benchmarks and two target families, the trained 0.6B gives 1.10–1.63× whole-task speedup on one shared GPU. The same supervision is available during deployment, allowing online training without a prior trace-collection pass.

We evaluate two target families across various benchmarks, using local simulated tool backends. The framework covers synchronous proposing followed by exact-match verification, with target contexts verified concurrently on one GPU. It does not cover asynchronous draft run-ahead, semantic verification or methods that hide tool latency through overlap. The loop trades target compute for latency: verification can issue up to k+1k+1 requests per round, and τ2\tau^{2}-bench uses 1.16× the sequential completion tokens in the measured control. Slow tools reduce its benefit because proposing pays their execution cost. Concurrent decoding can change whole trajectories despite target authorship. The predictor assumes comparable work and transfer of sequential timing to concurrent requests; these approximations and the bootstrap intervals limit close configuration comparisons. Online training could consume additional resources depending on the actual setup.

AI Use Statement

Generative AI tools were used to assist with English-language editing for readability, development and refinement of analysis code and consistency checks.

Reproducibility Statement

All models and benchmarks used in this study are open sourced. Detailed experimental setups and results are provided in § 4 and the appendices. We plan to release the code and experimental artifacts on GitHub.

References

Additional related work

Token-level speculative decoding. Speculative decoding [12, 4] pairs a draft with a verification that keeps the target’s output distribution; the draft may be a small model or heads on the target (Medusa [3], EAGLE [14]). A large body of work trains the draft to raise acceptance, for example DistillSpec [24] with on-policy data and tailored divergences and domain-adapted drafts [8]. Online speculative decoding [15] keeps distilling a token-level draft from the queries a deployment serves; § 4.5 does the same at the action level, where the supervision is an exact action rather than a distribution. All of it is at the token level, where acceptance depends on matching the target’s token distribution. Our setting is action-level: only the target’s decision matters, which is why we train by supervised imitation of committed actions (§ 3.3). Our accounting of committed steps per round is the token-level acceptance-length formula of Leviathan et al. [12] adapted to actions.

Action-level speculation for agents. Two lines exist. The first overlaps the target’s decision latency: an approximation agent runs ahead and the target verifies. Interactive Speculative Planning [9] and its dynamic-kk successor [7] use a cheaper prompting configuration of an API model as the approximation; Speculative Actions [21] uses off-the-shelf API models and gives propositions for single-step and asynchronous depth speculation, with latency measured on chess; Speculative Macro Commit [16] commits mined multi-call macros with an untrained 4B draft on three GPUs; other systems use the same model without reasoning or off-the-shelf checkpoints [10, 23]. The second line overlaps tool latency: Speculative Tool Calls [17] and PASTE [20] execute a predicted tool call while the model reasons, SPORK [1] forks a probe from the running model’s own state for the same purpose, and Speculate with Memory (Li et al., 2026) pre-launches read-only actions from a memory of past trajectories. AOSpec [5] co-speculates actions and observations so that slow tool calls overlap generation, verifying each prediction together with the state it was made from; it targets the regime where tools dominate, the complement of the generation-bound regime of § 3.2. These works bound their gain by the tool-time share (at most 2×2\times in Nichols et al. [17]). LEAP reduces the number of sequential target generations and pays tool time in full; the two compose. Speculative Actions [21] analyzes single-step and asynchronous action speculation. Our framework studies synchronous proposal rounds with concurrent verification on one shared GPU. It accounts for verification wait, segment boundaries, drafting cost and tool time (§ 3.2). Among the self-speculation methods considered here, Speculate While You Reason (Jal et al., 2026), trains the agent jointly with a self-speculation head via RL and reports Hit@1 without end-to-end latency. LEAP studies a separately trained small action draft for a frozen target and measures wall-clock on a shared GPU.

Benchmarks. We use OpenAGI [6], TaskBench [19], the τ2\tau^2-bench domain of τ2\tau^2-bench [2], and the multi-turn split of BFCL [18].

Algorithm, guarantee and supervision

Problem, guarantee and notation

A target agent TT solves a task by a sequence of actions. At step ii it sees a context sis_i (instruction, tool schemas, the actions and observations so far, and any user turns) and emits the action ai=T(si)a_i = T(s_i), the canonical action that greedy decoding returns on sis_i after its reasoning; on tool benchmarks that action is executed and its observation is appended to the context. We want to run this agent faster while every action it executes is still its own.

Property 1 states the per-action guarantee used here. The loop of § 3.1 maintains this property by construction, and the harness checks it on every task. The property holds per action, not per trajectory. The serving engine’s floating-point results depend on which requests it decides to gether, and speculation verifies several contexts at once. Run alone, the target repeats its trajectory exactly; with speculation, a small numerical difference can change a token in a long chain of reasoning and with it a decision, after which the trajectory differs. Batching is the main source but not the only one: with every verification decoded alone, trajectories still differ on some tasks (App. M). Speculative

Actions Ye et al. (2026) calls such verification lossless; we keep the per-action guarantee and measure how often whole trajectories differ (App. § 21).

Draft and agreement. A draft DD is a small model that predicts TT’s action from the same context, a^=D(s)\hat{a}=D(s), decoded greedily without reasoning. Actions are compared after canonicalization (tool name and sorted arguments, or the reply marker for a user-facing message). On a set of nn target contexts {(si,ai)}\{(s_i,a_i)\} the offline agreement of DD is 1n∑i1[D(si)=ai]\frac{1}{n}\sum_i \mathbb{1}[D(s_i)=a_i]. Its counterpart in the running system is the per-position acceptance qjq_j of the loop, defined in § 3.2 and compared with the offline rate in Table 8. Table 6 collects the notation.

TT, DDtarget agent; draft
sis_i, aia_icontext and target action at step ii; a^j\hat{a}_j: jj-th proposal of a round
kkproposals per round (depth)
AAaccepted proposals in a round; the round commits A+1A+1 steps
LLagent steps in a segment (between user turns or up to the end of the task)
qjq_jPr⁡[A≥j]\Pr[A \ge j], hit rate at position jj; q1q_1 is the first-position acceptance
cc, eecommitted steps per round; expected bonus-step loss at segment ends (Eq. (3))
tgent_{\mathrm{gen}}, ttoolt_{\mathrm{tool}}, tdraftt_{\mathrm{draft}}mean target generation, tool and draft-proposal times; d=tdraft/tgend=t_{\mathrm{draft}}/t_{\mathrm{gen}}
β\betaround-wait inflation: mean of the slowest awaited verification over tgent_{\mathrm{gen}}
SSwhole-task speedup, sequential over speculative wall-clock (Eq. (4))

Table 6. Notation.

The speculative loop

Execution proceeds in rounds. The draft and the target alternate; the draft never runs ahead of the target. Given the committed prefix ss, a round has three steps (Figure 1).

  1. Propose. DD proposes a^1,…,a^k\hat{a}_1,\ldots,\hat{a}_k one after another, each conditioned on ss and its own earlier proposals. On tool benchmarks each proposal is executed in a copy of the environment so that the next proposal can see its observation; the real environment executes only committed actions, and an accepted proposal is not executed again: the copy in which it ran becomes the environment.

  1. Verify. TT generates its own action on the k+1k+1 contexts ss, (s,a^1),…,(s,a^1,…,a^k)(s,\hat{a}_1),\ldots,(s,\hat{a}_1,\ldots,\hat{a}_k), sent as concurrent requests to the same server that serves it alone. Let AA be the number of leading proposals that equal TT’s action on their context.

  1. Commit. The round commits a^1,…,a^A\hat{a}_1,\ldots,\hat{a}_A and, after them, TT’s own action on the first context they do not match; if all kk match, that is TT’s action on the (k+1)(k+1)-st context, a bonus step. The remaining verifications are discarded.

A round thus commits A+1≤k+1A+1\leq k+1 steps for one target wait, and every committed action is one that TT generated on the exact context in which it is committed (Property 1). Rounds never cross a segment boundary: the end of the task, or a reply to the user, after which the next context contains a user turn the draft cannot predict. When a proposal is a reply, no request is issued past it, and a round that verifies the reply ends without a bonus step. LL denotes the number of agent steps in a segment. Figure 6 shows where the time goes when every proposal is accepted and when the first one is rejected.

Round timelines for sequential and speculative execution with accepted and rejected proposals

Figure 6. Round timelines with k=2k = 2. Illustrative durations. A successful round waits for the slowest required verification; on a mismatch, unused requests are cancelled. Tool execution for proposals occurs while proposing, and accepted environment states are adopted.

Proposition 1 (commit-eligible prefixes are teacher-forced). a^j\hat{a}_j is committed only if a^<j=a<j\hat{a}_{<j}=a_{<j}; hence every context in which a proposal can be committed is a prefix of the target’s own trajectory, at every position jj of the round and not only at $j=1, and the committed action in that context is the target’s teacher-forced action. Deployment therefore draws its (context, committed action) pairs from the target’s own traces; which contexts are drawn depends on where rounds start and which proposals are accepted, a selection that § 4.4 measures.

Proof. A round commits a^1,…,a^A\hat{a}_1,\ldots,\hat{a}_A with A=min⁡{j:a^j≠aj}−1A=\min\{j:\hat{a}_j\ne a_j\}-1. If a^j\hat{a}_j is committed then j≤Aj\leq A, so a^<j=a<j\hat{a}_{<j}=a_{<j} and a^j\hat{a}_j was produced by DD on (s,a<j)(s,a_{<j}). Proposals made on a mismatched prefix are discarded, never committed. □\square

If the target’s output depended only on the context, and not on the requests decoded with it or before it, and if tool results depended only on the environment state and the call, then by Proposition 1 and induction over rounds the committed trajectory would be exactly the target-only one. Property 1 needs neither condition; the first does not hold exactly in our serving engine (§ 3.1 and App. § 21).

Implementation. Verification responses are consumed in prefix order; as soon as context jj mismatches, the requests for contexts j+1,…,kj+1,\ldots,k are cancelled and the server aborts them, so a round never waits for a verification it will discard. Both models are served by the same engine on one GPU; the draft is a LoRA adapter on a 0.6B base run without reasoning (App. § 17).

Training the draft on the target's committed actions

Supervision. The training set is a by-product of running the agent (Figure 1): every step yields a pair (si,ai)(s_i,a_i) of context and the target’s committed action. We run TT once over the training tasks, log these pairs, and fine-tune DD by cross-entropy on the action tokens given the context. No target logits, no draft rollouts, and no human labels are used. The separate pass is a convenience, not a requirement: once the speculative system runs, every action it commits is one the target generated (Proposition 1), whatever the draft proposed, so its commits are the same supervision. § 4.5 trains the draft from them while the system serves.

Predict the decision. The label aia_i is the canonical action, not the target’s reasoning text. The draft is asked to reproduce a low-entropy policy’s next decision, not a 32B model’s output distribution, which is what makes a 0.6B base viable. The draft runs with reasoning disabled and, on tool benchmarks, under the tool schema as a decoding constraint. Implementation: LoRA rank 64, α=128\alpha=128, learning rate 3×10−53 \times10^{-5}, two to three epochs with the checkpoint chosen on a validation split; training takes minutes on one GPU per benchmark.

Why imitation is a natural objective. By Proposition 1 (§ 3.1), a proposal is committed only if it was generated on the target’s true prefix, so every context in which a proposal can be committed is a prefix of the target’s own trajectory, at every position and not only the first. Supervised imitation on the target’s traces trains DD on contexts of this kind. Acceptance depends only on the target’s decision, so the label is the canonical action, not the target’s full output distribution. Plain cross-entropy on the canonical action is therefore the natural and cheapest objective. It is a surrogate for exact-match acceptance, and § 4.2 tests alternatives. The multi-step figure of merit is the per-position hit-rate curve qjq_j of § 3.2, not the single-step agreement.

Latency framework and additional checks

A latency framework for the loop

We give a latency framework for the rounds of § 3.1. It separates the quantities that decide the speedup (acceptance, depth, task structure, round cost, draft cost), and it predicts the end-to-end speedup of a configuration from its hit rates, its draft cost and a sequential trace (§ 4.4), which also tests predictions using offline hit rates.

The framework covers exact-match action verification on one shared GPU. Proposing finishes before verification begins. It does not model asynchronous draft run-ahead, semantic verification, or mechanisms that overlap tool execution with model generation.

Quantities. For a benchmark and a target we measure the mean wall-clock of one sequential target step tgent_{\mathrm{gen}} (generation only), of one tool execution ttoolt_{\mathrm{tool}}, and of one draft proposal tdraftt_{\mathrm{draft}}, and write d=tdraft/tgend = t_{\mathrm{draft}}/t_{\mathrm{gen}}. The hit rates qj=Pr⁡[A≥j]q_j = \Pr[A \ge j], j=1,…,kj = 1,\ldots,k, are the probabilities that the first jj proposals of a round all match; q1q_1 is the first-position acceptance. The round-wait inflation β\beta accounts for the round waiting for the slowest of the A+1A+1 verifications it uses: its generation cost is the expected maximum of those requests rather than one mean step, written βtgen\beta t_{\mathrm{gen}}. If the awaited step times were independent draws from the sequential step-time distribution, β=∑aPr⁡[A=a] E[max⁡a+1]/tgen≥1\beta= \sum_a \Pr[A=a]\,\mathbb{E}[\max_{a+1}]/t_{\mathrm{gen}} \ge1, a closed form in the empirical distribution; consecutive steps are correlated, so we also replay the actual trace (§ 4.4). We compare both estimates with the measured value (Figure 7(b)).

Commits per round. A round commits A+1A+1 steps unless the segment ends inside the accepted prefix, in which case the bonus step is lost. Writing ee for the expected loss per round,

c=1+∑j=1kqj−e,e=Pr⁡[segment ends within the accepted prefix].(3)c = 1 + \sum_{j=1}^{k} q_j - e,\qquad e = \Pr[\text{segment ends within the accepted prefix}]. \tag*{(3)}

If hits were independent with rate pp and segments were long (e→0e \to0), Eq. 3 would be the token-level expected acceptance length of Leviathan et al. [12], c=1+p+⋯+pkc = 1 + p + \cdots+ p^k. Measured hit rates decay faster than qjq_j^{} (Figure 7(a)), partly because rounds reach task or user-turn boundaries. Acceptance conditional on an existing proposal and an accepted prefix need not decline (Table 8). On OpenAGI the second and third positions exist in 81% and 62% of the rounds. For the same reason ee is not small on short tasks (0.38 on OpenAGI, whose tasks average 4.2 steps). In all cases c≤min⁡(k+1,L)c \le\min(k+1,L): short segments cap the achievable depth regardless of acceptance.

Round time and speedup. Let DD be the mean proposing time per round, including proposal-tool execution, divided by tgent_{\mathrm{gen}}. Let ff be the fraction of sequential steps that execute a tool and gg the mean number of target-executed tool actions per round. Write τ=ttool/tgen\tau= t_{\mathrm{tool}}/t_{\mathrm{gen}}. A sequential step costs tgen(1+fτ)t_{\mathrm{gen}}(1+f\tau). A speculative round costs approximately tgen(D+β+gτ)t_{\mathrm{gen}}(D+\beta+g\tau). Accepted proposal states are adopted, so their tool costs are included in DD only once. For comparable work in the two arms, the speedup is

S≃c(1+fτ)β+D+gτ→τ→0cβ+D.(4)S \simeq\frac{c(1+f\tau)}{\beta+D+g\tau} \xrightarrow{\tau\to0} \frac{c}{\beta+D}. \tag*{(4)}

This is the same model as (1). If every round makes exactly kk proposals and tool time is negligible, then D=kdD = kd. More generally, if each proposal executes a tool and f=g=1f=g=1, then D=k(d+τ)D = k(d+\tau) and the denominator is β+k(d+τ)+τ\beta+k(d+\tau)+\tau.

The framework separates four effects. Acceptance controls cc and the number of awaited verifications. Depth can increase cc, proposing cost and verification wait. Segment boundaries limit both the number of proposals and the bonus action. The draft’s relative cost enters through DD, which explains why a smaller draft can be faster at comparable acceptance (§ 4.3). With negligible tool time, two bounds follow: S≤c/β≤(k+1)/βS \le c/\beta\le(k+1)/\beta. For long segments with independent hits, the acceptance ceiling approaches 1/((1−p)β)1/((1-p)\beta) as kk grows. When all kk proposals are made, their cost kdkd keeps growing, so deeper speculation eventually stops paying off.

Verification issues up to k+1k+1 target requests per round. The number of requests per committed step is therefore at most (k+1)/c(k+1)/c. Discarded requests are cancelled early; the measured completion-token ratio is 1.16 on τ2\tau^2-bench. These costs apply to our synchronous propose–verify schedule. Speculative Actions [21] overlaps draft and target execution, so its latency analysis uses a different execution schedule.

Interpreting acceptance. For long segments, independent hits of probability pp, negligible tool time and exactly kk proposals per round, the model becomes

S(p)≃1+p+⋯+pkβ(p)+kd.(5)S(p) \simeq\frac{1+p+\cdots+p^k}{\beta(p)+kd}. \tag*{(5)}

The numerator is nonlinear for k≥2k \ge2, and verification wait can vary with pp. Boundaries add another dependence: a one-action segment commits only one action even with perfect agreement. Thus equal acceptance need not imply equal speedup.

The measured controls in Figure 2 have different accepted-prefix distributions, segment truncation and proposing costs. Pooled acceptance alone does not identify those quantities, so Eq. (4) does not imply a universal speedup curve in that acceptance rate. For example, the untrained TaskBench draft produces no usable proposal in 38% of rounds. Those rounds consume proposing time and commit a target action, although no proposal enters the accepted/compared ratio. The framework therefore uses per-position rates, boundary loss and round costs explicitly. Table 10 and Table 9 retain the measured inputs; the size and online studies are shown separately in Figure 3 and Figure 5.

Choosing kk. For negligible tool time, write πk\pi_k for the fraction of rounds that make a kk-th proposal. The proposing cost is Dk≃d∑j≤kπjD_k \simeq d\sum_{j\le k}\pi_j; proposals can stop at segment boundaries. Write Δβk\Delta\beta_k for the growth of β\beta from awaiting one more request. With Bk=βk+d∑j≤kπjB_k=\beta_k+d\sum_{j\le k}\pi_j the round cost at depth kk, so that Sk=ck/BkS_k=c_k/B_k, a kk-th proposal pays off if and only if

ck−ck−1>Sk−1(Bk−Bk−1).(6)c_k-c_{k-1}>S_{k-1}(B_k-B_{k-1}). \tag*{(6)}

By Eq. (3), the gain ck−ck−1c_k-c_{k-1} is qkq_k minus the growth of ee, plus any change in the earlier hit rates, which move because depth changes where rounds start. If end effects are negligible and increasing depth leaves the earlier hit rates and proposal probabilities unchanged, the condition simplifies to

qk>Sk−1(πkd+Δβk),or, with πk=1 and Δβk=0,qk>Sk−1d.(7)q_k>S_{k-1}(\pi_kd+\Delta\beta_k), \qquad\text{or, with }\pi_k=1\text{ and }\Delta\beta_k=0,\qquad q_k>S_{k-1}d. \tag*{(7)}

Corollary 1 (depth with stable earlier-position rates). Assume negligible end effects and unchanged earlier-position hit rates and proposal probabilities when increasing depth. Adding a kk-th proposal pays off when its hit probability exceeds the current speedup times the marginal cost of the proposal: the draft’s relative cost, paid only in the rounds that reach the position, plus the extra round-wait inflation. Near the end of a segment an accepted extra proposal can replace the bonus step instead of adding one, so on short tasks the rule overstates the value of depth. No proposal is made past the segment end (πk=0\pi_k=0 for k>Lk>L); when Δβk=0\Delta\beta_k=0, setting πk=1\pi_k=1 upper-bounds the marginal drafting cost; this need not be conservative if verification wait also increases.

Using this approximation as a depth heuristic requires offline hit rates, draft latency, and an estimate of the change in verification wait. The following examples illustrate the heuristic rather than establish reliable configuration ranking. The planning hit rates are from the k=5k=5 runs; the speedups compare separate depth runs. On OpenAGI (d=0.06d=0.06) the simplified threshold is about 0.09 and selects k=4k=4 (q3=0.31q_3=0.31, q4=0.14q_4=0.14, q5=0.08q_5=0.08); with π4=0.41\pi_4=0.41, π5=0.15\pi_5=0.15 and Δβ≈0.015\Delta\beta\approx0.015 per position the thresholds fall to 0.06 and 0.04, and the rule predicts gains of a few hundredths up to k=5k=5; the measured speedup rises from 1.34×1.34\times at k=1k=1 to 1.51×1.51\times at k=3k=3 and 1.57×1.57\times at k=5k=5 (Table 10), the last step within the bootstrap interval. On TaskBench (d=0.07d=0.07, threshold about 0.10; q2=0.37q_2=0.37, q3=0.22q_3=0.22, q4=0.16q_4=0.16, q5=0.06q_5=0.06) it selects k=4k=4, and the measured speedup rises from 1.27×1.27\times at k=1k=1 to 1.37×1.37\times at k=3k=3 and 1.41×1.41\times at k=5k=5 (Table 10), the last step again within noise. On τ2\tau^2-bench (threshold 0.02, q2=0.35q_2=0.35, q3=0.27q_3=0.27) it predicts that k=3k=3 gains further, and the measured speedup rises from 1.58×1.58\times at k=2k=2 to 1.79×1.79\times at k=3k=3 (Table 10).

Assumptions. The framework assumes that (a) both arms do the same work. Every committed action is target-authored, but a speculative trajectory can differ from the target-only one (App. § 21); per run, the speculative arm commits between 3.9% fewer and 2.5% more steps than the sequential arm in the configurations of Table 10; (b) concurrent verification on a dedicated GPU is close to free: on the Qwen3 target we measure +1 to +4% per generated token with up to four concurrent requests and unchanged generation length, so β\beta is a max-of-nn effect rather than a throughput effect (on the Gemma planning configurations of Table 9, measured β\beta exceeds the offline-hit replay by 0.05–0.13, § 4.4); (c) tool time is small relative to generation on the benchmarks we use (simulated backends, ≤0.07\le0.07 s per step); we exercise the ttoolt_{\mathrm{tool}} terms by adding 2 or 5 s to every executed tool step on τ2\tau^{2}-bench and BFCL (Table 4); (d) proposing and verifying do not overlap, as in § 3.1; a draft that ran ahead of the target could hide part of the proposing cost DD, which we leave to future work; (e) the harness cancels discarded verifications (§ 3.1), and we report the residual idle time separately.

Complete experimental results

Setup

We use two targets. The main one is Qwen3-32B (temperature 0, reasoning enabled); the second, Gemma-4-31B-it, repeats the whole pipeline in § 4.1. The drafts are Qwen3-0.6B, 1.7B and 4B, each with a LoRA adapter trained as in § 3.3 on the traces of one target and one benchmark; the 0.6B draft is the main one, and the offline rates in this section are for the Qwen3 target. Target and draft are served on one H100; the draft is co-located with the target and takes about a tenth of the GPU memory. Splits are task-disjoint. OpenAGI (Ge et al., [6]): 250 train / 63 test tasks, 1,090 training pairs, ReAct-style planning with a fixed tool set. TaskBench (Shen et al., [19]): 228 train / 60 test tasks, 1,120 pairs, strict canonical tool schemas; no test task’s tool sequence appears in training. τ2\tau^{2}-bench (Barres et al., [2]): we use its telecom domain only, in solo mode (the agent works without a simulated user); 60 / 14 / 40 train / validation / test tasks, 932 pairs, 44 tools executed against the benchmark’s local backend. BFCL is the multi-turn split of the Berkeley Function Calling Leaderboard (Patil et al., [18]): 130 train / 60 test tasks, 1,254 pairs; user turns are speculation boundaries and proposals execute in cloned environments. Each test task is run once sequentially (target only) and once speculatively on the same node and service, and we report the pooled ratio ∑seq/∑spec\sum\mathrm{seq} / \sum\mathrm{spec} of whole-task wall-clock (App. § 17 gives the timing protocol).

The standard errors in Table 2 use 10,000 task-level bootstrap resamples. All contexts and repeated predictions from a task stay together; each replicate recomputes the context-weighted agreement. The evaluated sets contain 63 OpenAGI, 57 TaskBench, 14 τ2\tau^{2}-bench and 10 BFCL tasks. These

SEs quantify task-sampling uncertainty conditional on the evaluated models and runs, rather than variation across training seeds.

Table 7 gives the offline agreement of the drafts used below. Its columns are the draft families of prior work, measured here in one setting: an untrained small model, the target with reasoning disabled (a cheaper configuration of the same model), and, as a reference for self-speculation, the target replaying itself with reasoning on (32B-reason). Training raises the 0.6B draft from 2–25% to 64–75% on every benchmark. On τ2\tau^2-bench, whose labels were sampled at temperature 0.6, even the target replayed at temperature 0 matches only 65.0% of them, so the trained draft (63.7%) is 1.3 points below the target itself, and the 1.7B and 4B drafts of § 4.3 exceed it (68.1% and 69.5%). The target with reasoning disabled is a strong predictor of its own decisions on the planning benchmarks (76.6 and 84.8, at or above the trained draft) but not on the tool benchmarks: on τ2\tau^2-bench it agrees with its reasoning-on decisions on 42.5% of contexts, 21 points below the trained 0.6B draft, and on BFCL on 62.6%, four points below. Where the decision depends on reasoning over a policy and a conversation, disabling reasoning changes the decision, and a small draft trained on the reasoning-on decisions predicts them better than the target itself does without reasoning.

benchmarkcontextsuntrained 0.6B32B-direct32B-reasontrained 0.6B
OpenAGI26312.876.697.375.0
TaskBench27725.084.896.975.2
τ2\tau^{2}-bench2268.042.565.063.7
BFCL992.062.691.966.7

Table 7. Offline action agreement with the Qwen3-32B target (exact match on the target’s own held-out contexts; repeated predictions averaged per context, except the τ2\tau^{2}-bench 32B-reason reference, which uses the mode of three passes). “32B-direct” is the target with reasoning disabled; “32B-reason” is the target itself with reasoning on, replayed on the same contexts, i.e. on the planning benchmarks its agreement with its own earlier pass, a reference set by the engine’s nondeterminism rather than a bound. The three prior-work columns are an off-the-shelf small model, a cheaper configuration of the same model, and the target as its own draft, for which “32B-reason” is the reference, all measured in one setting. BFCL rows are on 99 development contexts and count every decision, a turn end or an exact tool group; the tool-group rate used for the acceptance comparison is in Table 8. τ2\tau^{2}-bench labels were sampled from the target at temperature 0.6, and all τ2\tau^{2}-bench columns are measured against them; there, as on BFCL, the 32B-reason column replays the target (reasoning on, temperature 0) on the same contexts.

From agreement to acceptance. Table 8 puts the offline and the live rates side by side. At the first position, live acceptance is within four points of offline agreement on OpenAGI and τ2\tau^2-bench and nine points below it on TaskBench, where the speculative run’s trajectories depart from the canonical ones on more tasks (trajectory parity 0.86 against 0.98 on OpenAGI), so the draft is scored on contexts it has not seen in that form. On BFCL a quarter of the rounds are hand-off probes at turn boundaries that carry no proposal, which lowers q1q_1 below the per-group rate. The hit rates fall with position (q2/q1q_2/q_1 is 0.51–0.63), but not because later proposals are harder: among the rounds that make a second or third proposal and accepted the earlier ones, the acceptance (a2a_2, a3a_3) is 0.81 and 0.80 on OpenAGI against 0.71 at the first position, and flat on TaskBench and τ2\tau^2-bench. The fall comes from rounds that run into the end of the task, or into an invalid draft output, so that the later positions do not exist: on OpenAGI the second and third positions exist in 81% and 62% of the rounds. This is why the framework of § 3.2 carries per-position rates qjq_j, which include this truncation, rather than a single acceptance rate.

Speedup across four benchmarks

Table 9 summarizes the four benchmarks for drafts of 0.6B, 1.7B and 4B parameters trained with one recipe, with Qwen3-32B and with Gemma-4-31B-it as the target. The Gemma rows repeat the whole pipeline: new sequential traces on the same task splits, the same three drafts trained with the same recipe on those traces, and the same serving configurations (App. § 17 gives the two serving details that differ).

With the smallest draft, trained for GPU-minutes on the target’s own traces, LEAP speeds up whole tasks by 1.18–1.61× with Qwen3 and 1.10–1.63× with Gemma, on planning-only tasks and on tasks that execute tools. Task success shows no systematic change: across the 28 comparisons of App. § 21, the speculative arm solves more tasks in 8, fewer in 8 and as many in 12, never differing by more than three. Every committed action is target-authored, but whole trajectories can differ from the target-only run: they are identical on 96% of the OpenAGI and 83% of the TaskBench tasks, while on the tool benchmarks, whose steps reason for 10–12 s, most trajectories take a different decision at some step (Table 23). On τ2\tau^2-bench 37 of the 40 tasks are still scored identically by both arms with Qwen3, and with Gemma the two arms follow identical trajectories on 52–55 of the 60–63 planning tasks. Repeating the τ2\tau^2-bench main run (the configuration of Table 10) end to end gives 1.59× [1.44, 1.77] against 1.58× [1.44, 1.75] in the first pass.

benchmarktwo target-only runstarget-only vs. speculativetwo speculative runs
OpenAGI10095.596.5
TaskBench10082.881.7
τ2\tau^2-bench1001.345.0
BFCL10034.260.0

Table 23. Trajectory identity. Share of tasks (%) on which two runs of the same configuration commit identical decisions, with the free text of replies and summaries ignored; comparing that text as well gives 3.3% on BFCL and 0% on τ2\tau^2-bench for target-only against speculative. OpenAGI and TaskBench: the six runs of the draft-size study (three drafts, two repeats); τ2\tau^2-bench and BFCL: the two passes of the main configuration.

The model of Sec. 3.2 explains the ordering across benchmarks and the differences between the targets. OpenAGI has the highest acceptance and k=3k=3, so it commits the most steps per round (c=2.05c=2.05 with Qwen3), but it also pays the largest end-of-task loss (e=0.38e=0.38; tasks are 4 steps long). τ2\tau^2-bench has lower acceptance but long tasks (e=0.11e=0.11) and a draft that is cheap next to a 12 s target step (k tdraft/tgen=0.03k\,t_{\mathrm{draft}}/t_{\mathrm{gen}}=0.03). BFCL is limited by structure: its segments between user turns average 2.6 steps, 26% of its rounds are width-1 hand-off probes at turn boundaries, and its second proposal is accepted in only 7% of rounds, so cc is 1.44 and the ceiling min⁡(k+1,L)/β\min(k+1,L)/\beta is about 1.7× even for a perfect draft. Changing the target changes the step length, and with it the weight of the draft’s cost. Gemma’s steps are about twice as long as Qwen3’s on the planning benchmarks (2.1 and 2.3 s against 1.1 and 1.8 s), which lowers the draft term at fixed draft cost, and its drafts agree with it more often (77–85% against 75–81%), so its planning speedups are higher (1.52–1.68×). Its tool steps are shorter: 2.6 times on τ2\tau^2-bench (4.7 against 12.4 s) and three times on BFCL (3.3 against 10.8 s). There the draft term rises from 0.03–0.04 to 0.08–0.12 and from 0.04–0.07 to 0.11–0.19: on τ2\tau^2-bench, with acceptance flat across sizes (0.79–0.80), the smallest draft is the fastest, and on BFCL the speedups fall to 1.10–1.16× while the turn structure that bounds the ceiling is unchanged.

The draft size follows the same logic. With Qwen3 the 1.7B draft is faster on every benchmark (1.28–1.63×) and the 4B draft is faster still on BFCL alone. With Gemma the three drafts tie on OpenAGI (1.55, 1.55 and 1.52×), where the ratio of committed steps between sizes is 1.00 against a cost ratio of 1.01; the 1.7B draft is fastest on TaskBench and the 4B draft on BFCL, as with Qwen3. Sec. 4.3 takes this up.

In the τ2\tau^2-bench main run of Table 10, two tasks end early in the speculative arm (the re-measurement of Table 9 has no such case: 40 of 40 terminate). On one context that six test tasks share, the target, verifying three prefixes in one batch, ran to its 2,048-token budget without emitting an action in two of them, while the same context parsed in the sequential arm and in the other four tasks. We attribute this to the target’s batch-dependent decoding (App. M); the commit audit passes on both tasks. The two tasks are kept in the pooled ratio (their speculative arm is shorter), and excluding them gives 1.58× [1.44, 1.75] as well.

Framework validation

We test Eq. (4) as a predictor. For each configuration we take cc from the measured per-position hit rates (Eq. (3)), replay the sequential arm’s per-step generation times to obtain β\beta (group consecutive steps of a segment into rounds with independent hits at rate q1q_1 and take the maximum within each group), and measure tdraftt_{\mathrm{draft}}. The prediction uses no timing from the speculative arm’s verifications; the hit rates and the draft time are measured in the speculative run. Table 10, Table 4 and Figure 4(a) compare it with the measured pooled speedup for twenty-one configurations spanning acceptance 0.02–0.79, depth k∈{1,2,3,5}k \in\{1, 2, 3, 5\}, normalized proposing cost D∈[0.02,0.74]D \in[0.02, 0.74] and added tool latency up to 0.46 of a target step.

Three observations. First, the prediction is within 0.05 of the measured speedup for fourteen of the twenty-one configurations and within 0.10 for all but TaskBench at k=5k=5 (0.14; harness idle time removed) and BFCL at k=3k=3 (0.12). This includes the untrained drafts on all four benchmarks (predicted 0.97–1.02, measured 0.95–1.03). Second, β\beta replayed from sequential step times lands within 0.07 of the value measured in the speculative arm on fifteen configurations. It is 0.08 below it for the 32B+direct draft on TaskBench, 0.09–0.11 below it on BFCL at every depth without added latency and at +2 s, whose step times are heavy-tailed (effective coefficient of variation 1.07 against 0.3–0.5 elsewhere), and 0.11 below it on TaskBench at k=5k=5, where a round issues up to six verification requests but the target server runs at most four at once (Table 17), so the last ones wait, which the replay does not model; the closed form of Sec. 3.2 is within 0.13 on all twenty-one (Figure 7(b)). The largest speedup errors, TaskBench at k=5k=5 and BFCL, are where β\beta is under-predicted, which supports assumption (b) only up to the few percent of concurrency cost the replay does not model. Third, the i.i.d. shortcut qj=qjq_j=q^j is off by up to 0.18 in cc in either direction (Figure 7(c)): it over-predicts on TaskBench and τ2\tau^2-bench, where rounds often run into the end of the task so that later positions do not exist, and under-predicts on BFCL, where a quarter of the rounds are hand-off probes with no proposal; the paper therefore reports qjq_j rather than a single acceptance rate.

OpenAGITaskBenchτ2\tau^2-benchBFCL
max model length (tokens)2,0484,09616,38424,576
GPU memory fraction, target / draft0.82 / 0.100.85 / 0.100.88 / 0.080.88 / 0.06
max concurrent sequences, target / draft8 / 24 / 24 / 44 / 1
guided decoding––xgrammarxgrammar
reasoning parser––qwen3qwen3
verificationprefix-ordered, cancel

Table 17. vLLM server settings per benchmark (target / draft on the same H100). A dash marks a setting not used for that benchmark. On TaskBench at k=5k=5 (Table 10) a round issues up to six verification requests, so those beyond the fourth wait for a free slot.

Tool latency. Adding 2 or 5 s to every executed tool step, in both arms, exercises the tool terms of Eq. (4) (Table 4; 0.16–0.46 of a target step). The speedup falls as tools slow down: from 1.58× to 1.41× and 1.20× on τ2\tau^2-bench (40 tasks), and from 1.20× to 1.07× and 1.02× on BFCL (60 tasks). The hit rates and cc barely change, so the loss is in the round cost. The proposals still run while proposing, which raises the draft term from 0.03 to 0.31 and 0.74 on τ2\tau^2-bench and from 0.04 to 0.23 and 0.50 on BFCL, and the round pays the delay again when the target executes its own action, while the sequential arm pays it once per step. For the four points with added latency, Eq. 4 is within 0.08 of the measured speedup, and within 0.02 with the measured β\beta; on BFCL it counts only the steps that execute a tool and only the target’s own tool steps (App. H). Task success, sequential against speculative, is 22 against 22 and 22 against 27 on τ2\tau^2-bench, and 34 against 34 and 34 against 33 on BFCL.

Prediction from offline hit rates. Table 10 takes the hit rates from the run it decomposes. To predict a configuration before running it, we replay the loop along the held-out sequential trajectories with the draft’s teacher-forced predictions of Table 7: a round proposes up to kk actions and stops at a predicted terminal action, the accepted prefix is the run of consecutive matches, and the round commits A+1A+1 steps (AA when the prefix ends the task). Table 11 compares the replayed qjq_j and cc with the live values and feeds them, with the trace-replay β\beta and the draft’s single-stream latency measured offline on the same held-out contexts (draft served alone, one request at a time; 0.07 of a target step on the planning benchmarks and 0.014 on τ2\tau^2-bench), into Eq. (4). On OpenAGI and τ2\tau^2-bench the replay reproduces the live hit rates within 0.05 and predicts the speedup within 0.03; on τ2\tau^2-bench the hit rates come from the 14 validation tasks, sequential timing comes from the 40 test tasks, and draft latency is probed offline. On TaskBench the replay overestimates q1q_1 (0.73 against 0.66) and the speedup (1.56 against 1.37): the target’s live trajectories depart from its sequential trace on more tasks there (trajectory parity 0.86 against 0.98 on OpenAGI), and the draft is less accurate on the contexts the target visits only in the live runs. An ex-ante prediction is therefore accurate to the extent that the target is trajectory-stable under batched decoding; Proposition 1 fixes the teacher-forced distribution only for the trajectory the target actually takes. Run on the Gemma traces with offline draft-latency probes for 0.6B and measured per-proposal draft latency from the speculative runs for 1.7B and 4B (Table 12), the prediction forecasts 1.64–1.77× against 1.52–1.68× measured on the six planning configurations, high by 0.02–0.21, and 1.60–1.62× against 1.55–1.63× on τ2\tau^2-bench, where the replay’s lower hit rate on the validation tasks (0.64–0.72 against 0.76–0.77 live) offsets the same β\beta gap. That gap is the residual on the planning benchmarks: the trace replay gives 1.16–1.23 where the measured round-wait inflation is 1.23–1.31. It underestimates verification wait by 0.05–0.13 across these configurations. This gap does not identify a uniform per-request slowdown, because the awaited contexts and generation lengths can also change. For Qwen3 the difference is −0.03 to +0.11 across Table 10; the underlying cause of the Gemma gap is not established.

benchmarkreplay, before the runlive, in the runspeedup
q1q_1q2q_2q3q_3ccq1q_1q2q_2q3q_3ccex-antemeasured
OpenAGI0.700.450.262.030.710.440.282.051.48×1.51×
TaskBench0.730.420.242.040.660.340.181.881.56×1.37×
τ2\tau^2-bench0.590.34–1.850.640.35–1.881.59×1.58×

Table 11. Ex-ante inputs from teacher-forced predictions. Hit rates and committed steps per round from replaying the loop on the held-out sequential trajectories with the offline predictions of Table 7 (“replay”), against the live values of the runs of Table 10; the ex-ante speedup uses the replayed values with the trace-replay β\beta and the draft’s single-stream latency measured offline on the held-out contexts. τ2\tau^2-bench obtains hit rates from the 14 validation tasks and sequential timing from the 40 test tasks. BFCL is omitted: its rounds are bounded by user turns with a terminal probe, which the replay does not reproduce. A dash marks a position beyond k=2k=2.

TargetBenchmarkDraftDraft timingPredictedMeasuredβ\beta replayβ\beta meas.
Qwen3OpenAGI0.6Bprobe1.481.501.221.19
Qwen3OpenAGI1.7Brun1.531.551.221.21
Qwen3OpenAGI4Brun1.471.461.241.25
Qwen3TaskBench0.6Bprobe1.531.381.141.22
Qwen3TaskBench1.7Brun1.581.471.161.21
Qwen3TaskBench4Brun1.531.361.161.26
Qwen3τ2\tau^2-bench0.6Bprobe1.581.611.141.15
Qwen3τ2\tau^2-bench1.7Bprobe1.641.631.151.17
Qwen3τ2\tau^2-bench4Bprobe1.621.561.161.16
GemmaOpenAGI0.6Bprobe1.771.551.181.31
GemmaOpenAGI1.7Brun1.661.551.161.23
GemmaOpenAGI4Brun1.681.521.171.26
GemmaTaskBench0.6Bprobe1.681.601.201.29
GemmaTaskBench1.7Brun1.741.681.231.28
GemmaTaskBench4Brun1.641.621.231.28
Gemmaτ2\tau^2-bench0.6Bprobe1.621.631.211.34
Gemmaτ2\tau^2-bench1.7Brun1.611.551.251.34
Gemmaτ2\tau^2-bench4Brun1.601.551.241.35

Table 12. Predictions using offline hit rates, both targets. The eighteen size-study points in Figure 4(b), using each draft’s offline predictions and the original trace-replay β\beta. Serving configurations and measured speedups match Table 1. Draft timing is either an offline single-stream probe or measured per-proposal latency from the speculative run (“run”); the latter rows are conditional on that cost. Sequential timing is from the test trajectories; τ2\tau^2-bench hit rates are from validation trajectories. The last two columns give the trace-replay and measured β\beta plotted in Figure 4(c).

Segment truncation. Appendix J buckets the tasks of the main runs by length. The truncation loss ee of Eq. (3) falls with task length as the equation says (from 0.52 to 0.30 on OpenAGI, from 0.20 to 0.07 on τ2\tau^2-bench). The per-bucket speedup does not fall with it, because the draft is most often right on the short tasks; a prediction that ignores this correlation misses by up to 0.4 in the extreme buckets, while the run-level prediction is within 0.10.

Self-speculation loses on cost, not on acceptance. The 32B-direct rows use the target with reasoning disabled as its own draft, issued as separate requests to the same server: the self-drafting idea of Bai et al. [1]; Ji et al. [11] without the prefix forking and cache sharing of those systems. Its acceptance is at least as high as the trained 0.6B draft’s (0.78 vs. 0.75 on OpenAGI, 0.79 vs. 0.68 on TaskBench) and it commits more steps per round, yet its speedup is 1.16× and 1.13×: each proposal costs 3.3–4.0× as much wall-clock time, which raises the draft term of Eq. (4) from 0.16–0.18 to 0.61–0.73, and sharing the target’s server raises β\beta (1.19→1.27 on OpenAGI). The trained 0.6B draft reaches comparable acceptance at about a quarter of the drafting cost. On the tool benchmarks the reasoning-free target is not even the better predictor: its offline agreement with the target’s reasoning-on decisions is 42.5% on τ2\tau^2-bench and 62.6% on BFCL, against 63.7% and 66.7% for the trained draft (Table 7), so self-speculation would lose there on both terms of Eq. (4). The margin narrows with the target’s step length, as the draft term predicts: on the Gemma target of Table 9, whose planning steps are twice as long, a self-proposal costs 0.12–0.18 of a step, and self-speculation reaches 1.48× [1.23, 1.75] on OpenAGI and 1.54× [1.46, 1.64] on TaskBench at acceptance 0.90–0.91 (draft term 0.23–0.47), against 1.55× and 1.60–1.68× for the trained drafts at a draft term of 0.09–0.23.

What it costs. Speculation trades target compute for latency. On τ2\tau^2-bench the speculative arm issued 789 target requests against 559 sequential steps and generated 1.16× the completion tokens as returned to the client (a cancelled verification counts the tokens generated up to the cancel; the server aborts it on disconnect); the draft adds about a tenth of the GPU memory and 3% of the round time. The trade is favourable when per-request latency is the constraint (interactive use, evaluation and RL rollouts) and unfavourable for throughput-bound serving.

Additional training studies

Training the draft: recipe, data, input and size

The main results use one recipe per benchmark (§ 3.3). This section varies the recipe on OpenAGI, where the held-out test set (63 tasks, 263 contexts, scored three times each at temperature 0) is cheap to re-score offline, and then varies the draft size across benchmarks. We split the OpenAGI test tasks into seen (40 tasks whose committed action sequence also occurs in a training task) and unseen (the other 23), because the two respond differently to every knob below.

Epochs, capacity and data. Table 13 gives the offline agreement. Three findings. (i) Training longer raises agreement on seen sequences only: from epoch 2 to epoch 7 the seen score rises from 82.2 to 86.4 while the unseen score falls from 64.5 to 63.2, and epoch 12 loses on both. (ii) Full fine-tuning of the 0.6B model does not beat the rank-64 adapter (75.2 against 77.1). (iii) Halving or quartering the training pairs lowers the overall score by five to six points, almost entirely on seen tasks; the unseen score is not monotone in the amount of data. The two untrained references are flat across the split (32B-direct 76.6/76.4, target self-consistency 98.1/96.2), so the seen/unseen gap is a property of the trained draft: most of what more epochs and more data buy is familiarity with training sequences, and the unseen level of 63–67 is not moved by these knobs. End to end the difference is small. At k=3k=3 the epoch-7 draft reaches 1.476× against 1.455× for the epoch-2 draft, and an independent repeat of the epoch-2 run gave 1.477×; the live acceptance splits the same way (epoch 2: 82.5% on seen and 67.0% on unseen tasks, 1.53× and 1.35×; epoch 7: 86.5% and 65.0%, 1.63× and 1.28×).

Draft input. The draft sees the task and the committed actions. Adding the target’s reasoning text for the committed steps to the draft’s input raises the unseen score by at most 2.5 points (64.5 to 67.0, with the epoch-4 checkpoint) at equal overall agreement. In the live runs, however, the draft proposes positions 2..kk before the target has produced the reasoning for its own proposals, so training must drop the trailing one or two thoughts; with that dropout the unseen score falls to 58–60. We therefore keep the action-only input.

Transfer across benchmarks. A trained draft is specific to its benchmark (Table 19 in App. § 19). On each of the other three benchmarks, the four trained drafts agree with the target about as often as the untrained base does, within about four points. The only exception is between the two planning benchmarks: the TaskBench draft reaches 23.3% on OpenAGI and the OpenAGI draft 29.6% on TaskBench, against 13.3% and 25.3% for the base. This is still far below the 75% of a draft trained on the benchmark itself. Each workload therefore needs its own draft; training one takes minutes.

Draft size. The three drafts of Table 9 bound the size axis: 0.6B is the smallest base we train and 4B the largest that shares one H100 with the 32B target at the benchmarks’ context lengths. Table 14 and Figure 3 show what varies. Offline agreement mostly rises with size (0.6B to 4B: 75.4 to 78.7 on OpenAGI, 74.7 to 80.5 on TaskBench, where 1.7B already reaches 81.0, 63.3 to 69.5 on τ2\tau^2-bench, 66.7 to 79.8 on BFCL), and the draft’s cost always does: its per-round term DD (Eq. (4)) grows from 0.16–0.17 to 0.28–0.29 on the planning benchmarks and from 0.03–0.04 to 0.04–0.07 on the tool benchmarks, and sharing the GPU with the 4B draft raises β\beta by up to 0.06. The speedup is the balance of the two. On OpenAGI and TaskBench, where a target step takes 1–2 s, 1.7B is the fastest draft (1.55 and 1.47× against 1.50 and 1.38× for 0.6B) and 4B falls back to the 0.6B level (1.46 and 1.36×) although it agrees most; two independent runs of every cell give the same ordering, and Eq. (4) predicts it from the sequential trace (1.48, 1.53, 1.47 on OpenAGI; 1.53, 1.58, 1.53 on TaskBench), with TaskBench overpredicted by 0.11–0.17. These predictions replay each draft’s offline hits using the inputs in Table 12; TaskBench’s replayed β\beta is 0.05–0.10 below the measured one. On τ2\tau^2-bench, where a target step takes 12 s and DD is 0.03, predicted speedups are 1.58, 1.64 and 1.62; the three drafts measure 1.61, 1.63 and 1.56×, within one another’s bootstrap intervals, with the 4B draft’s calls 1.55× as long as the 0.6B draft’s. On BFCL, where the 0.6B draft agrees least and a target step takes 11 s, every size step pays: 1.18, 1.28 and 1.34× for agreement 66.7, 72.7 and 79.8. The bootstrap intervals of neighbouring cells overlap (OpenAGI 1.7B [1.43, 1.68] against 4B [1.30, 1.62]; BFCL 1.7B [1.20, 1.36] against 4B [1.21, 1.48]), so the ordering rests on its consistency across runs and benchmarks and on the model rather than on any single pair.

draft\multicolumn{4}{c}{offline agreement}\multicolumn{4}{c}{draft term DD}\multicolumn{3}{c}{predicted speedup}
OpenAGITaskBenchτ2\tau^2-benchBFCLOpenAGITaskBenchτ2\tau^2-benchBFCLOpenAGITaskBenchτ2\tau^2-bench
0.6B75.474.763.366.70.170.160.030.041.48×1.53×1.58×
1.7B77.681.068.172.70.200.190.030.041.53×1.58×1.64×
4B78.780.569.579.80.280.290.040.071.47×1.53×1.62×

Table 14. Draft size. Three drafts trained with the same recipe. Offline agreement (%) on the held-out contexts of Table 7; the measured per-round draft term DD of Eq. (4) in the common serving configurations of Table 9; the speedup Eq. (4) predicts from the sequential trace and each draft’s own offline-hit predictions, with the draft timing sources listed in Table 12. BFCL has no offline-hit prediction (Figure 3). Measured speedups are in Table 9.

A larger draft pays exactly when its extra agreement outweighs its extra cost, and Eq. (4) says where that is: with cc the committed steps per round and β+D\beta+ D the round cost, draft BB beats draft AA when cB/cA>(βB+DB)/(βA+DA)c_B/c_A > (\beta_B + D_B)/(\beta_A + D_A). With the measured values, 4B against 0.6B has a cost ratio of 1.12 on both planning benchmarks against a gain in cc of 1.09–1.10, and on BFCL a cost ratio of 1.03 against a gain of 1.16; on τ2\tau^2-bench both ratios are within 0.02 of one, and the three speedups are equal within noise. The best size therefore depends on the target step. With 1–2 s steps a mid-size draft is fastest; with 10–12 s steps the draft’s cost weighs little, and the larger drafts are faster on BFCL and within noise on τ2\tau^2-bench. Training cost grows with size (Table 14). The 0.6B draft, trained in about a minute on OpenAGI, is within 0.1× of the fastest size in seven of the eight benchmark–target pairs of Table 9, which is why it is our default and the draft of the model validation (§ 4.4). For practitioners, we recommend starting with a trained 0.6B draft and k=1k=1.

Objective. § 3.3 argues that cross-entropy on the target’s committed actions is a natural objective. Table 3 lists the comparison that tests alternatives on the two benchmarks with ground truth, TaskBench and BFCL: supervision from gold labels instead of the target’s actions (does the draft need to imitate the target rather than be correct?) and reinforcement learning from the exact-match reward starting from the SFT draft. Offline agreement is measured for every variant; the end-to-end speedup only where the offline gain over SFT exceeds three points; no variant reaches it. On BFCL the gold-label draft is trained with the same recipe on the benchmark’s ground-truth calls replayed in the real environment, one call per decision (130 tasks, 1,200 pairs, 39% of them turn ends; the target’s traces give 1,254 pairs, 37% turn ends). It reaches 50.5% decision agreement against 66.7%: on the 63 held-out decisions where the target calls a tool it ends the turn 26 times and matches the target’s tool group 14 times (22%), against 3 and 31 (49%) for the draft trained on the target’s own actions; on the 51 single-call decisions alone it matches 14 against 29. Correctness by the benchmark’s standard and agreement with the target are different objectives. The comparison changes the source of the training data, not only its labels: the gold contexts follow the gold calls, and on BFCL the gold data has one call per decision where the target groups calls. On TaskBench the gold-label draft reaches 69.9% against 75.2%. The gap is smaller there because the annotated tool sequences often coincide with the target’s: they are identical on 61 of the 228 training tasks and use the same tools, with other argument strings, on 108 more. Reinforcement learning from the exact-match reward, run with GRPO from the SFT draft on the same 1,011 training contexts (eight samples per context, reward 1 for the target’s action and 0.1 for a call of the right tool with other arguments, KL to the SFT draft, two epochs, 48 GPU-minutes), raises TaskBench agreement from 75.2% to 77.1%: nine of the 277 held-out contexts change from miss to hit and four from hit to miss, a net gain that is not significant at this size and that Eq. (4) values at +0.04× (replayed cc 2.04→2.13), below the three points at which we run the system. The sampled reward on the training contexts rises from 0.78 to 0.85 while the greedy output changes on 13 contexts, consistent with the reward sharpening the SFT draft’s distribution around actions it already ranks first. Started from the untrained base instead (25.0% agreement, 64% of outputs parsable), the same GRPO reaches 75.9% after three epochs, indistinguishable from the SFT draft (12 contexts gained, 10 lost) and 1.2 points below GRPO from it, at 72 GPU-minutes against 4 for SFT: in this setting the reward adds nothing over cross-entropy on the target’s actions, which reaches the same agreement at a fraction of the cost. On BFCL, GRPO from the SFT draft (reward 1 for the target’s exact tool group or turn end, 1,254 contexts, two epochs) gains nothing either: 65.7% decision agreement against 66.7%, with the exact tool group up from 49.2% to 50.8% and turn ends recalled less often (91.7% against 97.2%). This is consistent with § 3.3: only a proposal made on a prefix that the target itself has committed can ever be committed, so the contexts that decide acceptance are the target’s own, and the teacher-forced pairs already come from them. The tests show no significant gain from GRPO at 12 to 18 times the training cost on TaskBench; they do not rule out gains from other objectives or larger budgets. An earlier pilot on other benchmarks found the same one to two points on structured tool use and a loss on open-vocabulary actions.

Online training of the draft while the agent runs

The drafts above were trained after a separate collection pass: we ran the target alone over the training tasks and logged its actions. That pass is not needed. By Proposition 1, every action the speculative system commits was generated by the target, whatever the draft proposed. So the commits of the running system are the same supervision, and the draft can be trained from them between batches of tasks.

We test this from a cold start. The untrained 0.6B draft starts the speculative system on the benchmark’s training tasks, in batches (OpenAGI: 250 tasks in 10 batches of 25; τ2\tau^2-bench: 60 tasks in 6 batches of 10). After each batch we train a fresh adapter on all commits so far with the recipe of Table 13, on a second GPU, and load it into the running draft server without a restart. Batch bb therefore runs with the adapter trained on the batches before it. Each adapter is scored for offline agreement on the held-out contexts of Table 7, and the final adapter is measured end to end on the test tasks as in Table 9.

Figure 5 and Figure 8 show the result. On OpenAGI the draft agrees on 53% of the held-out contexts after 25 tasks, 67% after 75, and 74.0% after all 250 (offline draft: 75.0%). The speedup on the stream follows: 0.95×\times on the first batch with the untrained draft, 1.28×\times on the second, and 1.4–1.5×\times from the fourth batch on. The final adapter gives 1.47×\times [1.31, 1.63] on the test tasks, against 1.51×\times [1.38, 1.64] for the offline draft under the same serving configuration. On τ2\tau^2-bench, with tools executed, agreement on the validation contexts goes from 8.0% to 66.4% (offline draft: 63.7%), acceptance on the stream reaches the offline draft’s level after 30 tasks, and the final adapter gives 1.61×\times [1.43, 1.81] on the test tasks, the same as the offline draft’s 1.61×\times [1.44, 1.79]. The buffer ends with 1,079 pairs on OpenAGI, against 1,090 in the offline training set, because the committed trajectories are the target’s own.

Figure 8. Online training of the draft. The draft is trained online, from the commits of the running speculative system: the untrained 0.6B draft starts the system on the training tasks, and after every batch a new adapter replaces the previous one in the draft server without a restart. Colour marks the benchmark. Solid lines retrain the adapter on all commits so far; dash-dot lines with hollow markers continue the previous adapter (continual). (a) Offline agreement of each adapter version on the held-out contexts. (b) Acceptance on each batch of the stream. (c) Speedup on each OpenAGI batch and, as stars with bootstrap intervals, the final adapters on the test tasks. Dashed: the offline drafts (Table 7 and Table 9); grey line: no speedup.

Retraining on the whole buffer costs more with every batch (27 to 73 seconds per version on OpenAGI, 3 to 18 minutes on τ2\tau^2-bench). A continual variant instead continues the previous adapter on the new batch plus an equal-size sample of earlier pairs, for two epochs, at a fixed 22 seconds per update on OpenAGI. It reaches the same endpoint (74.9% agreement, 1.51×\times [1.40, 1.64] on the test tasks) but dips once on the way (63.5% and 1.22×\times at the fifth batch) before recovering. On τ2\tau^2-bench it takes 3 to 6 minutes per update instead of 3 to 18, ends at 63.3% agreement (offline draft: 63.7%), and gives 1.63×\times [1.46, 1.83] on the test tasks. Appendix L gives the details.

Additional limitations

The speedups are 1.2–1.6×, and the framework of § 3.2 explains why they are not larger on these benchmarks: tasks are short (4–14 steps), BFCL’s user turns cut segments to 2.6 steps, and the round cost β\beta of the trained drafts is 1.1–1.3. We evaluate two target families (Qwen3-32B and Gemma-4-31B) on one GPU class, and our tools run against local simulated backends. With added tool latency the speedup falls, to 1.20× on τ2\tau^2-bench and 1.02× on BFCL at 5 s per tool step (Table 4), because the draft’s proposals execute their tools while proposing; with slow tools the tool-overlap mechanisms of Nichols et al. [17]; Li et al. (2026); Chen et al. [5] would matter more than ours. Every action LEAP executes is target-authored, but the trajectories are not those of a target-only run: speculation changes which requests the engine decodes together, and on the tool benchmarks, whose steps reason for 10–12 s, most speculative trajectories take a different decision at some step (App. § 21; two τ2\tau^2-bench tasks even ran to the token budget in the speculative arm only). Task success shows no systematic change. Proposing and verifying do not overlap, so the draft’s cost is paid in full; a draft that ran ahead of the target would hide that term, which Eq. 4 without the draft term puts at 1.47→1.72× on OpenAGI and 1.46→1.66× on TaskBench and at a few hundredths on the tool benchmarks. Verification issues up to k+1k+1 target generations per round (1.16× the sequential completion tokens on τ2\tau^2-bench), so the method trades compute for latency. Test sets are 40–63 tasks; task-level bootstrap intervals of the pooled ratio are 0.15–0.30 wide (Table 9), so differences of a few hundredths between configurations are not resolved by these runs. The online experiment of § 4.5 makes one pass over each benchmark’s training split; retraining on the whole buffer costs more with every batch, and the continual variant that fixes this cost dipped once on OpenAGI before recovering, which we have not studied further.

Benchmark implementation details

All four benchmarks share the same loop (§ 3.1) and the same acceptance test: a proposal is accepted if its canonical string equals the canonical string of the target’s action on the same context. Canonical strings are produced by the benchmark’s parser from the raw response; a response that does not parse (no action, several actions where one is required, an unknown tool, or arguments that violate the tool schema) never matches. The target decodes greedily (temperature 0, seed 0) in every end-to-end run. Table 15 lists the per-benchmark settings; the paragraphs below give the formats.

OpenAGITaskBenchτ2\tau^2-benchBFCL multi-turn
task typetool-selection plantool calls with argsticket-driven supportmulti-turn function calling
tools14 + TERMINATEDailyLife APIs44per-task catalog
target formatReAct, <tool> tag with tool nameReAct, <tool> tag with name {json}single-call JSON, guided<tool_call> tags, ordered group
target reasoningthought ≤\leq 512 tok.thought ≤\leq 512 tok.on, budget 2,048 (in budget)on, budget 4,096 (in budget)
target action budget32 tok.128 tok.
draft formatdirect, tool namedirect, name+argsgrammar, JSON callgrammar, call group / <respond/>
draft budget32 tok.128 tok.512 tok.512 tok.
observationnone (plan-first)none (plan-first)tool result (local backend)tool result (cloned runtime)
segment boundarytask endtask endtask end (done)user turn
kk3322
max steps12126020 per turn
train / test tasks250 / 63228 / 6060 (+14 val) / 40130 / 60
training pairs1,0901,1209321,254

Table 15. Per-benchmark settings of the end-to-end runs.

OpenAGI. The agent selects, one step at a time, which of 14 domain-expert tools to apply to a task description ([6]), and emits TERMINATE when the plan is complete. The target runs ReAct: a thought of at most 51 tokens followed by an action of at most 32 tokens in the form <tool>Image Denoising</tool>; the parser takes the last tag pair so that a preamble naming other tools does not win over the committed action. The canonical action is the tool name. Steps do not observe tool outputs, so the context of step ii is the task and the committed actions a<ia_{<i} (the target’s thoughts are not part of the context and are not shown to the draft). A task ends at TERMINATE or after 12 steps. The 313 tasks are split by task into 250 training and 63 test tasks (seed 42); running the target once over the training tasks yields 1,090 (context, action) pairs, and the test tasks give 263 held-out contexts for the offline agreement in Table 7. The draft receives the same context rendered as a direct prompt and answers with the action tag only.

TaskBench. We use the DailyLife API subset of TaskBench [19], where each step is a tool call with JSON arguments, or TERMINATE; for example

<tool>apply_for_passport({"country":"Germany"})</tool>

The 300 tasks were split 240 / 60 by task before any model call. The target runs ReAct as on OpenAGI (thought ≤512\le512 tokens, action ≤128\le128 tokens). The parser is strict: the response must contain exactly one action, the tool must exist, the argument names must equal the schema’s parameter set, and every argument value must be a string; anything else is a parse or schema failure and cannot match. The canonical action is name({sorted-key JSON}). The training set is derived deterministically from the target’s raw responses on the training tasks (228 tasks with a valid trajectory, 1,120 pairs; 1,011 / 109 split by task for validation); the same derivation on the test tasks gives 57 tasks / 277 contexts for offline agreement, and all 60 test tasks are run end to end. No test task’s tool sequence occurs in training.

τ2\tau^2-bench (telecom domain). We use the telecom domain of τ2\tau^2-bench [2] in its solo configuration: there is no simulated user; the agent works from the task ticket, a policy document, and 44 tools whose implementations run against the benchmark’s local state. We compact the policy text (same rules, shorter wording) so that contexts fit the serving window; the compact policy is identical for both arms and both models. The target receives the tool schemas natively and must emit exactly one call per step as a JSON object {"name": ...,"arguments": ...}, constrained by a oneOf schema over the 44 tools (guided decoding), with reasoning enabled and a 2,048-token budget; a task ends with the done call or after 60 steps, and success is the benchmark’s own reward function (evaluate_simulation, solo mode). The canonical action is the JSON object with sorted keys. Training and validation pairs were collected from the target at its default sampling for this mode (temperature 0.6, top-p 0.95, top-k 20, seed 0); end-to-end runs use temperature 0. The draft sees the same context rendered as a direct prompt and decodes a <tool>{json}</tool> block under a grammar derived from the same schemas (512-token budget, no reasoning). Each proposal is executed in a cloned environment branch so that the next proposal sees its observation; a rejected branch is discarded.

BFCL multi-turn. We use the multi-turn split of the Berkeley Function Calling Leaderboard [18], 130 training and 60 test tasks. Each task is a conversation; in each user turn the agent issues one or more ordered groups of function calls and ends the turn with a natural-language reply. The target emits calls as <tool_call>{json}</tool_call> tags (several tags form one ordered group, which is one decision), with reasoning enabled, a 4,096-token budget, and at most 20 decisions per turn. The draft predicts the next decision as <tool>[{call},...]</tool> or the literal <respond/>, decoding under a GBNF grammar built from the tools visible in the context (512-token budget, no reasoning); it never predicts reply text. A decision matches when the ordered call group is identical after canonicalization (JSON with sorted keys) or when both sides end the turn. Proposals execute in a cloned tool runtime (deep-copied instances); the committed branch’s state is the one the next turn sees. User turns are segment boundaries: at the end of each turn a width-1 probe lets the target confirm the turn end. Official success is computed by the official BFCL evaluator on the final state and responses. Verification uses prefix-ordered cancellation (App. I); the 60 test tasks were run twice end to end, one task at a time. On the 10-task development split, run twice at each depth before the test runs, the speculative arm was faster at k=1k=1 and k=2k=2 (1.14/1.23×\times and 1.18/1.24×\times) but completed fewer tasks (9 against 14 at k=1k=1, 13 against 14 at k=2k=2); we selected k=2k=2 and report the test split, where success was higher in both passes (Table 9).

Trace-replay predictor and idle-time accounting {#sec:Trace-replay predictor and idle-time accounting}

Inputs. The predictor of § 4.4 uses (i) the sequential arm’s per-step generation times, grouped by segment; (ii) the per-position hit rates qjq_j; and (iii) the mean draft time per round from the speculative arm’s draft records. It uses no timing from the speculative arm’s verifications.

Replay. For every segment of every task, the replay walks the sequential steps in order. At the start of a round with rr steps remaining it draws the number of leading hits AA from independent Bernoulli trials with rate q1q_1, capped at min⁡(k,r−1)\min(k, r - 1); the round commits A+1A+1 steps and its wait is the maximum of those steps’ sequential generation times. The predicted β\beta is the sum of round waits divided by the number of rounds times tgent_{\mathrm{gen}}, averaged over 50 replays. The commits per round cc in Table 10 is the measured value (Eq. (3) with the measured qjq_j and ee); the i.i.d. column uses the replay’s own AA instead. Table 16 lists the measured qjq_j and ee for the nine configurations.

benchmarkdraftkkq1q_1q2q_2q3q_3q4q_4q5q_5eecc
OpenAGItrained 0.6B30.710.440.28––0.382.05
OpenAGItrained 0.6B10.74––––0.201.54
OpenAGItrained 0.6B50.700.470.310.140.080.462.25
OpenAGIuntrained 0.6B30.150.000.00––0.011.14
OpenAGI32B-direct30.700.500.33––0.342.19
TaskBenchtrained 0.6B30.660.340.18––0.301.88
TaskBench32B-direct30.740.500.33––0.362.21
τ2\tau^2-benchtrained 0.6B20.640.35–––0.111.88
BFCLtrained 0.6B20.380.07–––0.001.45
Draft-size study, common serving configuration (Sec. 4.3)
OpenAGItrained 0.6B30.690.440.27––0.372.04
OpenAGItrained 1.7B30.740.500.33––0.372.20
OpenAGItrained 4B30.790.500.31––0.342.26
TaskBenchtrained 0.6B30.670.370.20––0.301.94
TaskBenchtrained 1.7B30.690.420.28––0.342.05
TaskBenchtrained 4B30.710.430.27––0.312.10

Table 16. Measured per-position hit rates qj=Pr⁡[A≥j]q_j = \Pr[A \ge j], end-of-segment loss ee, and committed steps per round c=1+∑jqj−ec = 1 + \sum_j q_j - e. A dash marks a position beyond the row’s kk.

Tool terms. With a delay δ\delta added to every executed tool step and τ=δ/tgen\tau= \delta/t_{\mathrm{gen}}, the sequential arm pays τ\tau (in target steps) on every step that executes a tool. A round pays it for the proposals’ tools, which run while proposing and are part of the measured draft term DD, and for every tool step the target itself executes. Eq. (4) becomes S=c(1+fτ)/(β+D+gτ)S = c(1 + f\tau)/(\beta+ D + g\tau), with ff the share of sequential steps that execute a tool and gg the number of tool steps per round that the target executes. On τ2\tau^2-bench every step but the final one executes a tool and each round ends with one target action, and we use f=g=1f = g = 1. On BFCL, turn ends execute no tool (f=0.62f = 0.62), accepted proposals are adopted rather than executed again, so only the target’s corrections and bonus actions count (g=0.44g = 0.44–0.450.45), and DD is the rollout time per round, which contains the proposals’ tool steps.

Decomposition of the speculative arm. For each round we record the wall-clock of every target verification and the round’s total verification wall-clock. The speculative arm’s task time then decomposes as

spec=∑roundsmax⁡usedwall+idle+draft+residual,\mathrm{spec} = \sum_{\mathrm{rounds}} \max_{\mathrm{used}} \mathrm{wall} + \mathrm{idle} + \mathrm{draft} + \mathrm{residual},

where “used” are the verifications whose result the round consumed, idle is ∑rounds(verification wall−max⁡usedwall)\sum_{\mathrm{rounds}}(\mathrm{verification\ wall} - \max_{\mathrm{used}}\mathrm{wall}), i.e. time spent waiting for verifications that were already discarded, draft is the summed draft time, and residual covers tool execution and bookkeeping. With prefix-ordered cancellation the idle time is 0 s of 199 s on OpenAGI, 0 s of 400 s on TaskBench, 3 s of 4,367 s on τ2\tau^2-bench and 14 s of 11,132 s on BFCL, and at most 4 s in every other row of Table 10. The target higher-mode runs waited for discarded verifications: 9 s of 205 s (OpenAGI), 12 s of 391 s (TaskBench) and 552 s of 4,882 s (τ2\tau^2-bench) for the trained draft, 9 s of 267 s and 16 s of 481 s for 32B-direct on OpenAGI and TaskBench, and 242 s of 544 s for the untrained draft. Re-running every row with cancellation moved the main speedups from 1.46, 1.37 and 1.41× to 1.51, 1.37 and 1.58×, the untrained draft from 0.55× to 0.98×, 32B-direct from 1.12 and 1.11× to 1.16 and 1.13×, and OpenAGI at k=1k=1 and k=5k=5 from 1.30 and 1.48× to 1.34 and 1.57×. Residual is at most 83 s (BFCL). “No idle” in Table 10 is seq/(spec − idle).

Concurrency cost. To check assumption (b) of § 3.2 we compare milliseconds per generated token in the sequential arm with the same quantity over the used verifications of the speculative arm: 25.5 vs. 26.7 (OpenAGI), 25.5 vs. 26.3 (TaskBench), 26.0 vs. 26.7 (τ2\tau^2-bench), 26.1 vs. 26.4 (BFCL). Tokens per step are unchanged on three benchmarks and 5% lower on τ2\tau^2-bench.

Serving configuration

All runs use vLLM on one NVIDIA H100 (80 GB). The target is Qwen3-32B (bf16, tensor parallel 1) and the draft is Qwen3-0.6B (bf16) with a LoRA adapter of rank 64 served through vLLM’s LoRA support (--enable-lora, --max-lora-rank 64); both servers run on the same GPU with the memory fractions in Table 17. Prefix caching is enabled on both servers, and the cache is reset through the development endpoint /reset_prefix_cache before each arm so that neither arm reuses the other’s KV cache. Requests are OpenAI-compatible chat completions with temperature 0 and seed 0; τ2\tau^2-bench and BFCL use the xgrammar guided decoding backend and the qwen3 reasoning parser.

Common configurations of the size study. The rows of Table 9 serve each benchmark’s three drafts in one configuration that fits the 4B draft beside the target: target / draft memory fractions 0.82 / 0.14 on OpenAGI and TaskBench, 0.83 / 0.13 with a 12,288-token context on τ2\tau^2-bench, and 0.84 / 0.135 with a 15,360-token context on BFCL, all with prefix-ordered cancellation; the Gemma target uses the same configurations.

The Gemma target. Gemma-4-31B-it runs with FP8 weights on one H100: in bf16 it leaves a KV cache of 7,500 tokens at 85% of the GPU, too few for k+1k+1 concurrent verifications beside a draft. Its request settings are those of the Qwen3 runs. Gemma departs from the prescribed action syntax more often than Qwen3 (Markdown fences, its native tool-call markup, keyword-argument calls on TaskBench, several calls in one decision on τ2\tau^2-bench); a surface-syntax normalization rewrites these forms into the prescribed one before parsing, is applied identically to collection and to both arms, and every rewrite is counted (33 of the 949 parsed actions of a TaskBench run).

Verification requests. The k+1k+1 verification contexts of a round are issued as concurrent HTTP requests to the target server. In the gather mode of our earlier runs (no row of Table 10 uses it), the round waits for all k+1k+1 responses before committing; the time spent waiting for responses that the first mismatch has already made irrelevant is the idle term of App. H. In the prefix-ordered mode used for every run we report, responses are consumed in prefix order; as soon as context ii mismatches, the client closes the connections of contexts i+1,…,ki+1,\ldots,k, which makes vLLM abort those requests, and the round commits without waiting for them. The mode changes only when the round returns, not what it commits.

Timing protocol. The test tasks of a shard are run first sequentially (target only) and then speculatively on the same node and the same servers, with a cache reset in between; the reported speedup is the pooled ratio of the summed whole-task wall-clocks. OpenAGI was additionally run with prefix caching disabled on both servers as a control (1.35×\times vs. 1.46×\times with caching, in the earlier gather-mode run). In Table 9, the Qwen3 OpenAGI and TaskBench rows pool two independent passes over the test tasks (both passes of a task are attached to it in the bootstrap); τ2\tau^2-bench is run in two shards of 20 tasks and BFCL in three shards of 20, each sequential then speculative; the Gemma rows are single passes. The main runs of Table 10 were repeated once on τ2\tau^{2}-bench and BFCL (App. § 21).

Segment truncation by task length

Table 18 buckets the tasks of the main runs by length. The truncation loss ee behaves as Eq. (3) says: it falls from 0.52 on three-step OpenAGI tasks to 0.30 on tasks of six or more steps, and from 0.20 to 0.07 across τ2\tau^{2}-bench’s length range. The per-bucket speedup does not fall with it, because task length and acceptance are not independent: short OpenAGI tasks are also the ones the draft predicts best (∑jqj\sum_j q_j 1.66 against 1.10 on the longest tasks), and the longest TaskBench tasks are where acceptance collapses (∑jqj\sum_j q_j 0.77, cc 1.65, 1.14×). A prediction that replays each bucket with the run-wide hit rates captures the truncation effect but not this correlation, and misses by up to 0.4 in the extreme buckets, whereas the run-level prediction is within 0.10. The truncation term is therefore visible in the data, and the benchmarks’ short tasks cost less than ee alone suggests because the draft is most often right on them.

benchmarkstepstasksee∑jqj\sum_j q_jccspeedup meas.speedup pred.
OpenAGI3150.521.662.141.54×1.35×
OpenAGI4210.311.462.151.52×1.39×
OpenAGI5150.401.542.141.60×1.57×
OpenAGI≥6\ge690.301.101.801.39×1.55×
TaskBench≤4\le4270.381.291.911.48×1.37×
TaskBench5160.401.402.001.49×1.52×
TaskBench670.321.532.211.50×1.50×
TaskBench≥7\ge7100.120.771.651.14×1.52×
τ2\tau^{2}-bench≤9\le990.200.951.751.47×1.28×
τ2\tau^{2}-bench10–1390.121.081.961.65×1.51×
τ2\tau^{2}-bench14–17100.110.981.871.66×1.70×
τ2\tau^{2}-bench≥18\ge18120.070.961.891.55×1.72×

Table 18. Segment truncation by task length. Tasks of the main runs bucketed by their sequential length. ee (Eq. (3)), the hit-rate sum ∑jqj\sum_j q_j and cc are measured per bucket; the prediction replays the bucket’s sequential traces with the run-wide hit rates truncated at the task end, so it carries the truncation effect only. Buckets hold 7–27 tasks, so individual ratios are noisy.

Transfer across benchmarks

Table 19 scores each trained 0.6B draft, and the untrained base, on the held-out contexts of every benchmark with that benchmark’s evaluator (Table 7). All twenty cells come from one job. The diagonal and the base row were measured again there; they differ from Table 7 by at most 0.5 points, as repeated evaluations of the same draft do (the size study measured 75.4 and 74.7, Table 14).

Online training details

Stream and servers. The training tasks of the benchmark are shuffled once with a fixed seed and run in batches through the speculative system (target and draft on one GPU, the serving configuration of App. § 17). On OpenAGI each batch runs both arms. On τ2\tau^{2}-bench the stream runs the speculative arm only; the sequential arm on the same training tasks was run separately in the same serving configuration. Figure 5b reports, for both benchmarks, sequential time per step over speculative time per committed step on each batch. Training runs on a second GPU while the servers wait between batches. The new adapter is loaded into the running draft server by name through its runtime adapter endpoint, and the next batch proposes with it. Every measurement on the stream is sequential: batch bb is never seen by the adapter that serves it.

Pairs. On OpenAGI the commits of a batch are the (context, target action) pairs directly, with duplicate (task, step) entries removed. τ2\tau^{2}-bench records keep only hashes of the prompts, so the pairs are rebuilt by replaying the committed actions in the benchmark environment, exactly as the collection pass builds a step; every rebuilt prompt is checked against the hash the run recorded for the draft’s request at that step (898 pairs, no mismatch).

Recipe. The adapter of every version is trained from the base with the recipe of Table 13. Checkpoint selection uses a task-level 10% carve of the buffer on OpenAGI and the frozen 14 validation tasks on τ2\tau^{2}-bench. The τ2\tau^{2}-bench validation pairs were collected with the target sampling at temperature 0.6, while the commits of the running system come from the verification setting (temperature 0); the agreement of every τ2\tau^{2}-bench draft in this paper, offline or online, is measured on the same validation labels, so the curves are comparable, and the end-to-end acceptance is the measure under the verification setting.

Continual variant. Each version continues the previous adapter for two epochs on the new batch’s pairs plus an equal-size uniform sample of the earlier pairs, with the learning rate and rank of the recipe; the first version is a fresh adapter on the first batch. The replay ratio and the number of epochs were not tuned.

Endpoint. The final adapter is measured on the test split with the protocol of Table 9 (τ2\tau^{2}-bench: two shards of 20 tasks, each sequential then speculative, on separate server pairs). Table 21 lists the agreement of every version and the update times.

version12345678910update time
OpenAGI, retrain on buffer53.058.867.069.673.374.773.472.874.174.027–73 s
OpenAGI, continual48.761.665.769.863.569.270.872.575.974.922 s
τ2\tau^{2}-bench, retrain on buffer33.657.558.458.464.666.4––––3–18 min
τ2\tau^{2}-bench, continual28.357.154.959.763.363.3––––3–6 min

Table 21. Online training: agreement of each adapter version (offline exact match on the held-out contexts, %). OpenAGI: 263 test contexts, one version per 25 training tasks; τ2\tau^{2}-bench: 226 validation contexts, one version per 10 tasks, so its 60 training tasks give six versions. Offline drafts: 75.0 (OpenAGI) and 63.7 (τ2\tau^{2}-bench). Update time is the time from the end of a batch to the loaded adapter (buffer build and training).

Task success and trajectory identity

Table 22 lists task outcomes for every configuration in Table 9. τ2\tau^2-bench and BFCL use the benchmark’s official success; OpenAGI and TaskBench have no task-level success metric beyond termination, and the count is the number of runs that terminated. The Qwen3 OpenAGI and TaskBench counts are over two runs of 63 and 60 tasks. The two passes of the Qwen3 τ2\tau^2-bench main run gave 22 and 22 sequential against 21 and 20 speculative successes, and the two passes of the BFCL main run 34 and 34 against 37 and 35. Across the 12 tool-benchmark size configurations and these four repeat comparisons, official task success increases in 8 cases, decreases in 5, and is unchanged in 3. Differences are at most three tasks per comparison. The 12 planning-benchmark comparisons instead count normal termination: 3 decrease and 9 are unchanged.

benchmarkQwen3-32B target sequentialQwen3-32B target speculative 0.6BQwen3-32B target speculative 1.7BQwen3-32B target speculative 4BGemma-4-31B target sequentialGemma-4-31B target speculative 0.6BGemma-4-31B target speculative 1.7BGemma-4-31B target speculative 4B
OpenAGI12612612612663636363
TaskBench11611411511460606060
τ2\tau^2-bench2223242139404040
BFCL multi-turn3434363448474748

Table 22. Task outcomes per arm for the configurations of Table 9. Counts denote normal termination on OpenAGI and TaskBench, and official task success on τ2\tau^2-bench and BFCL. The sequential count is the same across the three draft-size comparisons.

Table 23 compares whole trajectories. The target run alone is reproducible: every pair of target-only runs of the same configuration commits identical decisions on every task. Speculative runs are not, mainly because verification decodes several contexts together and the engine’s floating-point results depend on which requests share a batch. On the planning benchmarks, where a target step takes 1–2 s, 83–96% of the speculative trajectories are identical to the target-only one. On the tool benchmarks, where a step reasons for 10–12 s, a small numerical difference changes some decision on most tasks, and the trajectory differs from then on; two speculative runs also differ from each other. Every one of the 938 speculative task runs in Table 23 passed the harness’s commit audit, which replays the task and checks that each committed action is the target’s output on the context in which it was committed.

Serialized verification. To separate batching from other effects, we reran speculation with the target server limited to one sequence at a time, so that every verification request is decoded alone, as in the target-only run (TaskBench: 60 tasks, both arms; τ2\tau^2-bench: the first 20 test tasks, compared with the target-only arm of the main run). The limit does not change the target-only run (60 of 60 TaskBench tasks identical). The speculative trajectories then match the target-only ones on 57 of 60 TaskBench tasks, against 50 of 60 with concurrent verification, and on 8 of 20 τ2\tau^2-bench tasks, against 0 of 20; every commit passes the audit. Batching thus accounts for most of the divergence but not for all of it; we did not identify the other source within the serving engine.

References

  1. [1]Huajun Bai, Weiwei Lv, Huichuan Zheng, Youyou Lu, and Jiwu Shu. SPORK: Self-speculative forking to accelerate agentic LLM inference. arXiv:2607.03333, 2026.arxiv.org/abs/2607.03333
  2. [2]Victor Barres, Honghua Dong, Soham Ray, Xujie Si, and Karthik Narasimhan. τ²-Bench: Evaluating conversational agents in a dual-control environment. arXiv:2506.07982, 2025.arxiv.org/abs/2506.07982
  3. [3]Tianle Cai, Yuhong Li, Zhengyang Geng, Hongwu Peng, Jason D. Lee, Deming Chen, and Tri Dao. Medusa: Simple LLM inference acceleration framework with multiple decoding heads. In International Conference on Machine Learning (ICML), 2024.arxiv.org/abs/2401.10774
  4. [4]Charlie Chen, Sebastian Borgeaud, Geoffrey Irving, Jean-Baptiste Lespiau, Laurent Sifre, and John Jumper. Accelerating large language model decoding with speculative sampling. arXiv preprint arXiv:2302.01318, 2023.arxiv.org/abs/2302.01318
  5. [5]Hao Mark Chen, Jinnan Guo, Wayne Luk, and Hongxiang Fan. AOSpec: Action and observation co-speculation for low-latency agent serving. arXiv:2608.00881, 2026.arxiv.org/abs/2608.00881
  6. [6]Yingqiang Ge, Wenyue Hua, Kai Mei, Jianchao Ji, Juntao Tan, Shuyuan Xu, Zelong Li, and Yongfeng Zhang. OpenAGI: When LLM meets domain experts. In Advances in Neural Information Processing Systems (NeurIPS), Datasets and Benchmarks Track, 2023.arxiv.org/abs/2304.04370
  7. [7]Yilin Guan, Qingfeng Lan, Fei Sun, Dujian Ding, Devang Acharya, Chi Wang, William Yang Wang, and Wenyue Hua. Dynamic speculative agent planning. In International Conference on Learning Representations (ICLR), 2026.arxiv.org/abs/2509.01920
  8. [8]Fenglu Hong, Ravi Raju, Jonathan Lingjie Li, Bo Li, Urmish Thakker, Avinash Ravichandran, Swayambhoo Jain, and Changran Hu. Training domain draft models for speculative decoding: Best practices and insights. arXiv:2503.07807, 2025.arxiv.org/abs/2503.07807
  9. [9]Wenyue Hua, Mengting Wan, Jagannath Shashank Subramanya Sai Vadrevu, Ryan Nadel, Yongfeng Zhang, and Chi Wang. Interactive speculative planning: Enhance agent efficiency through co-design of system and user interface. In International Conference on Learning Representations (ICLR), 2025.arxiv.org/abs/2410.00079
  10. [10]Zixiao Huang, Wen Zeng, Tianyu Fu, Tengxuan Liu, Yizhou Sun, Ke Hong, Xinhao Yang, Chengchun Liu, Yan Li, Quanlu Zhang, Guohao Dai, Zhenhua Zhu, and Yu Wang. Reducing latency of LLM search agent via speculation-based algorithm–system co-design. arXiv:2511.20048, 2025.arxiv.org/abs/2511.20048
  11. [11]Jiabaо Ji, Yujian Liu, Li An, Rohit Jain, Gungor Polatkan, Siyu Zhu, and Shiyu Chang. Speculate while you reason: Teaching agents to predict their next tool call via joint agent-speculator RL. arXiv:2607.25816, 2026.arxiv.org/abs/2607.25816
  12. [12]Yaniv Leviathan, Matan Kalman, and Yossi Matias. Fast inference from transformers via speculative decoding. In International Conference on Machine Learning (ICML), 2023.arxiv.org/abs/2211.17192
  13. [14]Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. EAGLE: Speculative sampling requires rethinking feature uncertainty. In International Conference on Machine Learning (ICML), 2024.arxiv.org/abs/2401.15077
  14. [15]Xiaoxuan Liu, Lanxiang Hu, Peter Bailis, Alvin Cheung, Zhijie Deng, Ion Stoica, and Hao Zhang. Online speculative decoding. In International Conference on Machine Learning (ICML), 2024.arxiv.org/abs/2310.07177
  15. [16]Zeyu Liu, Souvik Kundu, and Peter A. Beereel. Speculative macro commit for faster tool-using agents. In IEEE International Workshop on Machine Learning for Signal Processing (MLSP), 2026. To appear.arxiv.org/abs/2609.03236
  16. [17]Daniel Nichols, Prajwal Singhania, Charles Jekel, Abhinav Bhatele, and Harshitha Menon. Optimizing agentic language model inference via speculative tool calls. arXiv:2512.15834, 2025.arxiv.org/abs/2512.15834
  17. [18]Shishir G. Patil, Huanzhi Mao, Fanjia Yan, Charlie Cheng-Jie Ji, Vishnu Suresh, Ion Stoica, and Joseph E. Gonzalez. The Berkeley function calling leaderboard (BFCL): From tool use to agentic evaluation of large language models. In International Conference on Machine Learning (ICML), 2025.
  18. [19]Yongliang Shen, Kaitao Song, Xu Tan, Wenqi Zhang, Kan Ren, Siyu Yuan, Weiming Lu, Dongsheng Li, and Yueting Zhuang. TaskBench: Benchmarking large language models for task automation. In Advances in Neural Information Processing Systems (NeurIPS), Datasets and Benchmarks Track, 2024.arxiv.org/abs/2311.18760
  19. [20]Yifan Sui, Han Zhao, Rui Ma, Zhiyuan He, Hao Wang, Jianxun Li, Kaiqiang Xu, Kai Chen, and Yuqing Yang. Parallelizing tool execution and LLM generation for low-latency agent serving. arXiv:2603.18897, 2026.arxiv.org/abs/2603.18897
  20. [21]Naimeng Ye, Arnav Ahuja, Georgios Larkovias, Yunan Lu, Kostis Kaffes, and Tianyi Peng. Speculative actions: A lossless framework for faster agentic systems. In International Conference on Learning Representations (ICLR), 2026.arxiv.org/abs/2510.04371
  21. [22]Zhiheng Zhang, Mujie Xu, Feiyu Sun, and Zhixin Zhang. OoO-Spec: Out-of-order semantic speculation for fast tool calling. arXiv:2608.00814, 2026.arxiv.org/abs/2608.00814
  22. [23]Shuzhang Zhong, Baotong Lu, Qi Chen, Chuanjie Liu, Fan Yang, and Meng Li. DualSpec: Accelerating deep research agents via dual-process action speculation. arXiv:2603.07416, 2026.arxiv.org/abs/2603.07416
  23. [24]Yongchao Zhou, Kaifeng Lyu, Ankit Singh Rawat, Aditya Krishna Menon, Afshin Rostamizadeh, Sanjiv Kumar, Jean-François Kagy, and Rishabh Agarwal. DistillSpec: Improving speculative decoding via knowledge distillation. In International Conference on Learning Representations (ICLR), 2024.arxiv.org/abs/2310.08461

Paper details

vlnc:W_jd8k5d7p
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 3

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Generative AI tools

View statement
Looking for related papers…
Contents