Trajectory-Triggered Sparse Collaborative Decoding
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
Trajectory-Triggered Sparse Collaborative Decoding Amit Ranjan Trivedi1 , Sruthikesh Surineni2 , Kyong Ho Lee2 , Mohit Mittal2 , Steven Li2 , Rex Hill2 1 University of Illinois Chicago 2 Meta amitrt@uic.edu
Abstract
arXiv:2610.23613v1 [cs.CL] 16 Oct 2026
Dense assistance methods such as speculative decoding repeatedly verify draft tokens with a target model, keeping target computation coupled to generation. We study sparse collaborative decoding, where a draft model generates most tokens and a target model is invoked only for short corrective segments. The key problem is deciding when to call the target. We show that local uncertainty is a weak trigger: entropy, negative log-likelihood, logit margin, top-k mass, and velocity features give nearchance failure prediction, with AUC 0.50–0.53. In contrast, aggregate trajectory-shape features over the draft confidence path reach AUC 0.86 using a lightweight logistic predictor trained only from draft correctness labels. This induces a trigger-timing tradeoff: early calls have more leverage but weaker evidence, while later calls have stronger evidence but less ability to redirect the trajectory. Used online, learned sparse collaborative decoding improves over the best open-loop schedule by +5.3 to +20.0 accuracy points across five GSM8K draft-target pairs. On MATH-500, it gains 7.0–13.5 points when early prediction and target competence align, but loses when either is weak. On StrategyQA, it improves over open-loop by 5.0–8.3 points, showing transfer beyond arithmetics.
1
Introduction
Small language models reduce inference cost, latency, and memory use, but remain unreliable on multi-step reasoning tasks. Stronger models are more reliable, but require substantially more storage and computation, motivating small-large collaboration at inference time. Existing methods spend target-model computation coarsely. Speculative decoding repeatedly verifies draft tokens with a target model, preserving target-model behavior but coupling target computation to generation throughout decoding (Leviathan et al., 2023; Chen et al., 2023a). Cascades route entire examples to a
Figure 1: Trajectory-triggered sparse collaborative decoding. A draft model generates most of the reasoning trajectory, while a stronger target model is invoked only at selected points. Triggers use the evolving confidence trajectory rather than fixed schedules or local uncertainty spikes. Early calls have higher leverage but weaker evidence; later calls have less leverage.
larger model before generation (Chen et al., 2023b). These methods either spend target computation continuously or decide only before generation; they do not ask whether the current partial trajectory would benefit from a short target-generated correction. We study when target computation should be spent inside the trajectory. We address this question through sparse collaborative decoding. A draft model generates most tokens, while a stronger target model is invoked only for short corrective text segments, after which generation returns to the draft. The intervention is purely textual: the target segment is appended to the visible context, and no logits, hidden states, attention activations, or parameters are modified. This makes the setting compatible with black-box targets and API-based deployment. The central problem is target-call placement. Calling too early can waste target computation on trajectories the draft would have solved alone. Call-
ing too late leaves little ability to redirect an already committed trajectory. A natural trigger is local uncertainty, such as high entropy, low margin, high negative log-likelihood, or rapidly changing confidence at the current token. We find that this signal is unreliable: across our reasoning settings, per-token uncertainty and velocity features provide near-chance prediction of final failure. A draft can be locally confident on a wrong path, or locally uncertain while still recoverable. Meanwhile, we find that trajectory shape is a stronger signal. We summarize the draft confidence path using aggregate features of entropy, negative log-likelihood, margin, probability concentration, temporal variation, and position-dependent behavior. A lightweight logistic predictor over these features reaches AUC 0.86 for failure prediction. Used online, this predictor estimates failure risk from the partial trajectory and calls the target when risk crosses a threshold. The target then generates a bounded corrective segment, and the draft resumes. This creates a trigger-timing tradeoff : early calls have more leverage but weaker evidence, while later calls have stronger evidence but less ability to redirect the trajectory. Our contributions are threefold. First, we show that local uncertainty is a weak intervention trigger, while aggregate confidence-trajectory features provide a much stronger failure signal. Second, we convert this signal into an online sparse collaborative decoding policy that decides where to spend target computation inside a draft trajectory. Third, we evaluate against draft-only, target-only, selfconsistency, posthoc rewriting, cascade routing, open-loop SCD, and speculative decoding. Across five GSM8K draft-target pairs, learned triggering improves over the best open-loop schedule by 5.3 to 20.0 accuracy points. It also transfers to StrategyQA and improves on MATH-500 when early prediction and target competence align. The results show that efficient small-large reasoning depends not only on access to a stronger model, but on placing bounded target calls when they are reliable enough to justify and early enough to matter.
2
Background and Related Work
Test-time reasoning and compute allocation. Reasoning often improves with additional inference-time computation. Chain-of-thought prompting (Wei et al., 2022; Kojima et al., 2022), self-consistency (Wang et al., 2022), and search-
based methods (Yao et al., 2023) spend compute through longer outputs, repeated samples, or branching trajectories. Adaptive-compute methods allocate resources under cost constraints (Chen et al., 2023b; Li et al., 2025; Yang et al., 2025). Comparatively, we ask when a stronger model should be invoked within reasoning trajectory. Small-large model collaboration. Speculative decoding lets a draft model propose tokens that a target model verifies, improving latency while preserving the target distribution (Leviathan et al., 2023; Chen et al., 2023a). Its goal is target-output parity; ours is task accuracy under sparse target access. Cascades route hard examples to larger models before generation (Chen et al., 2023b), while posthoc rewriting revises only after draft completion. Our method instead decides during generation, using the evolving trajectory. Uncertainty and failure prediction. Local uncertainty is a natural intervention signal. Entropy, token likelihood, logit margin, and confidence change are widely used in selective prediction, abstention, early exiting, and adaptive inference (Geifman and El-Yaniv, 2017; Kadavath et al., 2022; Kong et al., 2022; Schuster et al., 2022). In multistep reasoning, however, local uncertainty can mislead: a model can be confident on a wrong path or uncertain while still recoverable. We therefore distinguish token-level uncertainty from trajectorylevel failure prediction, and show that aggregate confidence paths are more predictive. Decoding interventions and trajectory sensitivity. Inference-time steering modifies generation through prompts, logits, activations, or continuous prefixes (Dathathri et al., 2019; Krause et al., 2021; Li and Liang, 2021; Turner et al., 2023). Model editing modifies parameters or internal representations (Ilharco et al., 2022). Our intervention is textual and sparse: the target produces a short segment, it is appended to the draft context, and the draft resumes. Prior work shows that early prompts and prefixes can strongly affect later generations (Zhao et al., 2021; Zhou et al., 2022; Sun et al., 2025; Song et al., 2025). We study the complementary control problem: early intervention has higher leverage, while later intervention has stronger evidence, motivating learned triggers than schedules.
3
Problem Setup
We consider a draft model Md and a stronger target model Mt . Given input x, the draft generates a
reasoning trajectory y1:T . The goal is to improve final-answer accuracy while limiting target use. In sparse collaborative decoding, the draft generates most tokens and the target is invoked only at selected intervention points. If a trigger fires after y1:t , the target generates a short segment z1:J ∼ Mt (· | x, y1:t ). This segment is appended to the visible context, and the draft resumes from (x, y1:t , z1:J ). The intervention is purely textual: no logits, hidden states, attention activations, or parameters are modified. This makes the mechanism compatible with black-box targets and distinct from speculative decoding and steering. Let st denote the observable draft state at step t, including token probabilities, entropy, logit margins, and their history. A trigger policy π maps this state to at = π(st ) ∈ {0, 1}, where at = 1 calls the target. The central problem is to design π so that target calls occur when they are likely to improve the final answer, not merely when the draft appears locally uncertain. We compare seven policies. Draft-only uses Md throughout, and target-only uses Mt directly. Openloop SCD calls the target at fixed positions or prefix lengths, while closed-loop SCD uses the partial draft trajectory to decide when help is needed. Cascade routing sends predicted hard examples to the target as whole-example queries. Posthoc rewriting asks the target to revise a completed draft answer. Self-consistency samples multiple draft trajectories. We report final-answer accuracy, target calls, target-generated tokens, and wall-clock time when available. We also track rescue rate, the fraction of draft-wrong examples corrected, and break rate, the fraction of correct examples made wrong.
4
Trajectory-Level Failure Prediction
A trigger policy must predict whether the draft trajectory is likely to fail. The simplest approach is local uncertainty at the current decoding step. We record entropy Ht , negative log-likelihood NLLt , logit margin Mt , top-k probability mass, and shortwindow velocity features. These are natural intervention signals, but weak predictors of final correctness. As shown in Table 1, individual per-token signals on GSM8K with Qwen-1.5B are close to chance: entropy and NLL reach only AUC 0.531 and 0.528, while velocity features are uninformative. A draft can be locally confident on an incorrect path, or locally uncertain while recoverable. We therefore predict failure from the shape of
Table 1: Failure prediction on GSM8K with Qwen-1.5B. Local token-level signals are weak, while aggregate trajectory-shape features are strongly predictive. Signal or feature set
AUC
Type
Entropy Ht NLL NLLt Margin Mt Entropy velocity NLL velocity Margin velocity
0.531 0.528 0.474 0.503 0.499 0.498
local local local local change local change local change
0.803 0.747–0.803 0.864
trajectory trajectory trajectory
Best single trajectory feature Top trajectory features All trajectory features
the confidence trajectory rather than from a single token. For each base signal, we summarize mean, extrema, percentiles, slope, variance, and positiondependent behavior over the observed draft prefix. The resulting feature vector has about 85 dimensions, with the full list in Appendix D. A lightweight logistic predictor over these trajectoryshape features reaches AUC 0.864. Strong individual features include top-5 mass statistics, entropy variation, maximum entropy, and NLL percentiles. The largest learned weights involve log-margin slope, absolute margin-velocity slope, log-margin variation, and top-5 mass statistics, indicating that failures are marked by declining separation, increasing volatility, and weaker probability concentration, not by isolated uncertainty spikes. A complementary time-frequency diagnostic supports the same conclusion. Figure 2 shows wavelet transforms of logit-margin-derived signals. Incorrect trajectories show elevated early midfrequency oscillations, consistent with unresolved competition between reasoning paths, whereas correct trajectories consolidate more smoothly. This supports aggregate trajectory-shape features over one-step uncertainty thresholds. Prediction quality also depends on when the trigger must fire. On GSM8K, the Qwen-1.5B predictor rises from AUC 0.60 at 16 tokens to 0.82 at 128 tokens and 0.86 on the full trajectory. Table 2 shows the broader pattern. GSM8K predictors reach AUC@128 near or above 0.7 across drafts. MATH-500 predictors remain much weaker at the same point, around 0.57–0.59, even though their full-trajectory AUC reaches 0.73–0.78. Early reliability conflicts with intervention leverage. We perturb the draft prefix at different token positions and measure the flip rate, the fraction of examples whose final decoded sequence changes.
Figure 2: Time-frequency view of trajectory instability. Wavelet transforms of logit-margin-derived signals show elevated mid-frequency oscillations for incorrect trajectories, consistent with unresolved competition between reasoning paths before commitment. Correct trajectories show smoother consolidation. Table 2: Early predictor reliability across draft and dataset pairs. AUC@128 is the operational quantity for online triggering; full AUC is more relevant to posthoc or cascade policies. Draft
Dataset
Fail% @16 @128 Full
Qwen 1.5B GSM8K Llama 1B GSM8K Qwen 0.5B GSM8K
26 52 52
0.60 0.61 0.63
0.82 0.76 0.69
0.86 0.80 0.78
Qwen 0.5B MATH-500 Llama 1B MATH-500 Qwen 1.5B MATH-500
76 86 58
0.45 0.56 0.50
0.57 0.59 0.58
0.75 0.73 0.78
Figure 3 shows that single-token and eight-token perturbations are most influential early and decay with position. Larger perturbations raise flip rate but preserve this trend. Early tokens have greater downstream influence, while later interventions have stronger evidence but less ability to redirect. Overall, the predictor supplies a usable but timedependent control signal where early scores are noisy but actionable, while later scores are more reliable but may arrive after the trajectory has become difficult to redirect. The next section converts this partial-trajectory predictor into an online trigger that decides when to spend a bounded number of target calls and target-generated tokens.
5
Learning Sparse Intervention Triggers
We convert the trajectory predictor into an online target-call policy. A small calibration set is decoded with the draft model to collect step-level statistics and final-answer correctness labels. We train a logistic predictor gψ on the trajectory-shape features from Section 4. At test time, the same feature extractor is applied to the observed trajectory. At step t, let ϕt = ϕ(x, y1:t ) denote features
Figure 3: Intervention leverage decreases with decoding position. We perturb the draft prefix at different token positions and measure whether the final decoded sequence changes. Single-token and eight-token perturbations are most influential early and decay with position. Eight-token perturbations raise the absolute flip rate but preserve the same trend. This supports the trigger-timing tradeoff: early calls have greater influence but weaker evidence, while later calls have stronger evidence but less ability to redirect.
computed from the draft confidence path. The trigger score is rt = gψ (ϕt ), where larger values indicate higher predicted failure risk. The controller calls the target when rt ≥ θ, subject to warmup W , cooldown C, and target-call budget B. The threshold θ may be fixed or position-dependent to account for the tradeoff between early leverage and later evidence. To prevent cascading trigger loops, where a low-confidence target resumption immediately re-fires the policy, the controller enforces token cooldown C and target-call budget B per trajectory. Thus, once control returns to the draft, the trajectory must progress through a mandatory evaluation window before the predictor fires again. When the trigger fires, the target generates a bounded text segment z1:J ∼ Mt (· | x, y1:t ), where J is the per-call segment length. The segment is appended to the visible context, and the draft resumes from (x, y1:t , z1:J ). The intervention remains purely textual: no logits, hidden states, attention, or model parameters are modified. The predictor estimates draft failure only; it does not use target outputs, rewards, or intervention outcomes. This separates trigger quality from target behavior: the trigger must find states where help is useful, and the target must improve the fired context. The main deployment knobs are J, B, and θ. Segment length J trades cost for corrective reach, budget B limits repeated target use, and threshold θ controls selectivity. Effective policies are therefore not simply aggressive; they wait for enough trajectory-level evidence while leaving enough remaining generation to affect the answer.
Table 3: Open-loop SCD on GSM8K. Per-K marginals average over schedule positions P . Best cell reports the best position for each prefix length. Draft
6
K Mean acc Tgt tok Best cell
Draft
J Best acc Rescue Break Tgt tok
Qwen 1.5B 8 Qwen 1.5B 32 Qwen 1.5B 64 Qwen 1.5B 128
75.8 78.6 80.5 84.9
8.3 33.2 65.9 126.2
77.2 81.5 83.5 86.5
Qwen 1.5B 8 Qwen 1.5B 32 Qwen 1.5B 64 Qwen 1.5B 96
80.8 87.5 91.0 91.8
10.8 15.2 17.5 18.2
4.5 2.2 1.0 1.0
33.9 97.6 122.3 141.3
Llama 1B Llama 1B Llama 1B Llama 1B
48.8 55.4 60.6 70.8
8.4 30.9 59.6 110.8
50.0 58.8 63.2 75.0
Llama 1B Llama 1B Llama 1B Llama 1B
50.5 77.8 85.0 88.8
11.8 33.2 40.0 42.5
9.0 3.2 2.8 1.5
49.4 151.7 182.9 195.1
8 32 64 128
Experiments
Setup. We evaluate on GSM8K (Cobbe et al., 2021), MATH-500 (Hendrycks et al., 2021), and AIME-2024 using exact-match answer accuracy. GSM8K is the main controlled setting, MATH-500 tests harder symbolic reasoning, and AIME-2024 is a stress case where target models are near floor. Drafts include Qwen2.5-0.5B and Qwen2.5-1.5B (Yang et al., 2024), and Llama-3.2-1B (Grattafiori et al., 2024); targets are gpt-4o-mini and gpt-4o. Draft decoding is greedy.1 For each draft-dataset pair, we collect draft-only logs, train the trajectoryshape predictor from Section 4, and deploy the learned trigger without using target outputs. We compare seven policies: draft-only, targetonly, self-consistency, posthoc rewrite, cascade routing, open-loop SCD, and learned-trigger closed-loop SCD. Open-loop SCD uses the same text-injection primitive as our method but fixes the insertion schedule. Cascade routes predicted hard examples to the target as whole-example queries. Posthoc rewrite applies the predictor after draft completion and asks the target to revise. The appendix reports full K × P open-loop heatmaps. Open-loop SCD is a strong baseline. Open-loop SCD is the closest baseline because it uses the same target text insertion as learned-trigger SCD; only call placement differs. Table 3 shows that fixed target insertion already gives large gains on GSM8K: Qwen-1.5B reaches 86.5%, and Llama1B reaches 75.0%. However, rigid schedules can also harm weaker drafts. Blindly injecting J = 32 1
Table 4: Closed-loop J-sweeps on GSM8K. Each row reports the best accuracy at that segment length over tested thresholds.
Each result cell uses n = 200 examples (except StrategyQA at n = 300 and the Q9 generalization triples at n = 200) and a single fixed seed; the binomial standard error at n = 200 is at most ±3.5pp at 50% accuracy and ±1.6pp at 90%, so the +5pp closed-loop-vs-open-loop gaps we report are well outside the single-seed noise band. Reported triples reuse the same example list across methods for paired comparison.
8 32 64 96
target tokens drops Llama-1B mean accuracy to 30.9%, suggesting that fixed insertions can disrupt the draft’s internal plan. Learned triggering is therefore evaluated against a strong target-prefix baseline, not only against draft-only decoding. Open-loop spends target tokens on every example, including trajectories the draft would have solved alone, and cannot adapt when different examples drift at different positions. Learned triggering keeps the same target-text primitive but decides which trajectories and positions receive target help. Learned triggers improve the accuracy-cost frontier. Table 4 summarizes closed-loop Jsweeps on GSM8K. Segment length J controls intervention reach: very short target segments are cheap but often incomplete, while longer segments improve accuracy until target use saturates. For Qwen-1.5B, closed-loop beats the interpolated open-loop frontier in 16 of 21 tested cells, ties in 3, and loses in 2. For Llama-1B, it wins in 13 of 21 cells. Losses occur mainly at small J, where fired target segments are too short to repair the trajectory. The Llama gain is larger because its draft baseline is weaker. We also test whether target calls redirect the trajectory rather than merely adding helpful tokens near the end. Figure 4 plots representative cumulative alignment traces. Draft-only decoding drifts away from the target-guided trajectory and does not recover. Triggered insertions occur after alignment degradation and produce rapid recovery, supporting the mechanism behind the J-sweep. Thresholds control selectivity and cost. The trigger threshold controls the accuracy-cost point. Lower thresholds fire more often and use more target tokens; higher thresholds save target use but miss recoverable failures. We therefore also test a position-dependent schedule, where θ(t) linearly interpolates from an early threshold θe to a late
Table 6: Generalization across math and stress-test triples. Parentheses report average target-generated tokens per example. Draft
Figure 4: Closed-loop intervention recovers trajectory alignment. We plot cumulative BLEU (Papineni et al., 2002) between the draft trajectory and a targetguided reference. Draft-only decoding drifts and does not recover. Triggered target insertions occur after alignment degradation and induce rapid recovery, showing that sparse calls can redirect the trajectory. Table 5: Position-dependent threshold sweeps on GSM8K with J = 96. θe and θl are early- and lateregion thresholds. Lower thresholds fire more often, increasing rescue and target use. Draft
θe
θl
Acc Rescue Tgt tok
Qwen 1.5B 0.5 0.3 92.2 Qwen 1.5B 0.5 0.5 90.8 Qwen 1.5B 0.7 0.7 88.0
19.0 18.0 14.8
151.6 135.1 90.7
0.3 0.5 90.0 0.5 0.5 86.0 0.7 0.7 77.2
44.0 41.2 32.0
232.0 195.7 136.9
Llama 1B Llama 1B Llama 1B
threshold θl . This allows the controller to use different selectivity before and after more trajectory evidence has accumulated. Table 5 shows representative sweeps at J = 96. The effect is draft-dependent. On Qwen-1.5B, position dependence is directionally useful but small, with gains over the constant θ = 0.5 setting within standard error in the full sweep. On Llama-1B, threshold choice matters much more where aggressive early firing yields large gains because the weaker draft has many more recoverable failures. Thus θe , θl should be treated as deployment knobs, not universal constants. Generalization across tasks. Table 6 evaluates math reasoning and target-floor regimes. Learnedtrigger SCD wins on all five GSM8K triples, improving over the best open-loop schedule by +5.3 points (Qwen-1.5B + gpt-4o-mini) to +20.0 points (Qwen-0.5B + gpt-4o-mini). The gain scales inversely with draft capacity: smaller drafts have more recoverable failures, so a well-timed target call closes a larger fraction of the draft-to-target gap. This is a deployment-relevant property: the method’s value grows precisely in the small-model
Target
D-only
Best OL
Best CL
GSM8K Qwen 1.5B 4o-mini Llama 1B 4o-mini Qwen 0.5B 4o-mini Qwen 0.5B 4o Llama 1B 4o
74.5 47.8 48.0 48.0 45.0
86.5 (104) 91.8 (141) 75.0 (91) 88.8 (195) 69.5 (118) 89.5 (224) 72.5 (116) 91.0 (196) 68.5 (66) 86.5 (192)
MATH-500 Llama 1B 4o-mini Llama 1B 4o Qwen 0.5B 4o Qwen 0.5B 4o-mini Qwen 1.5B 4o-mini
14.0 14.0 24.5 24.5 42.5
19.5 (118) 30.5 (620) 21.5 (115) 35.0 (562) 34.5 (129) 41.5 (536) 37.5 (130) 32.0 (612) 46.5 (129) 42.0 (525)
regime that motivates sparse collaboration. On MATH-500, it wins on three of five triples, with +7.0 to +13.5 point gains. The two MATH losses occur for Qwen drafts paired with gpt-4o-mini. As shown in the appendix predictor-reliability table, operational AUC@128 on MATH-500 remains near chance (0.57–0.59), well below GSM8K (0.76– 0.82). Because symbolic math evidence accumulates more slowly, the trigger fires from noisier trajectory data and hands compromised contexts to a target that cannot reliably repair them. On AIME-2024, target models are near floor, leaving little capability to allocate. The MATH rows isolate the target-competence limit. Qwen-0.5B MATH uses the same draft and predictor in both target settings. Replacing gpt4o-mini with gpt-4o flips closed-loop from a −5.5 point loss to a +7.0 point gain. Thus failure is not explained by the trigger alone: early firing must be paired with a target that can repair the fired context. Generalization to commonsense reasoning. To test whether gains are specific to arithmetic, we evaluate on StrategyQA (Geva et al., 2021), a multi-hop commonsense yes/no benchmark with shorter trajectories and no numeric answer extraction. Table 7 shows that closed-loop SCD wins on all three gpt-4o-mini draft-target triples, improving over the best open-loop cell by +5.0 to +8.3 points and over draft-only by +8.3 to +20.4 points. The strongest transfer case is Llama-1B, where closed-loop improves from a 48.3% draft baseline to 68.7%, adding +8.0 points over openloop. Because StrategyQA trajectories are shorter than GSM8K, we scale the warmup window W and baseline threshold sequence proportionally to the task’s maximum sequence length, without manual
Table 7: Generalization to commonsense multi-hop QA on StrategyQA (n = 300). All rows use gpt-4o-mini. Draft Qwen 0.5B Llama 1B Qwen 1.5B
D-only Best OL Best CL 50.0 48.3 52.3
50.0 60.7 62.3
Table 8: Seven-method comparison on Llama-1B with gpt-4o-mini on GSM8K. Closed-loop SCD gives the best accuracy below target-only.
∆
58.3 +8.3 68.7 +8.0 67.3 +5.0
feature re-engineering. Posthoc, cascade, and standard baselines. Posthoc rewrite tests whether target help can be delayed until draft completion. It is dominated by in-trajectory intervention: the best posthoc setting reaches 76.2% for Qwen-1.5B and 59.8% for Llama-1B, versus 91.8% and 88.8% for closedloop SCD. Short rewrite budgets can also break correct drafts through incomplete revisions. Cascade is stronger because it routes predicted hard examples directly to the target. On Llama1B with gpt-4o-mini on GSM8K, cascade reaches 87.8%, close to closed-loop at 88.8%, showing that the predictor explains much of the gain. The remaining gain comes from intervening inside the draft trajectory rather than discarding draft computation. Table 8 compares all seven methods on this triple. Self-consistency drops accuracy from 47.8% to 46.5%. Open-loop confirms that target text helps, but learned triggering adds another +13.8 points. Closed-loop recovers about 89% of the draft-totarget gap, reaching 88.8% against a 93.8% targetonly reference. Its wall-clock time is 7.8s versus 6.8s for target-only because API deployment requires multiple network round-trips and generation resets. With local weights or unified serving, this handshake overhead should decrease. The +1.0 point over cascade is small but structurally meaningful. Cascade commits the whole example to the target once flagged, discarding draft computation and paying the full target sequence length. Closed-loop SCD keeps the draft as the default generator and pays only for bounded fired segments: cascade uses 1.00 target call of mean length 184.8 tokens, whereas closed-loop uses 2.27 shorter calls averaging 86 tokens each. When the failing region is only part of the trajectory, as on most GSM8K cases, in-trajectory intervention is preferable to whole-example escalation. Cascade and closed-loop share the trigger; they differ in what they hand to the target. Failure modes and deployment rule. Closedloop failures expose two bottlenecks. The first is predictor-side: when early AUC is weak, the trigger
Method
Acc Tgt tok Calls Wall s
Draft-only Target-only Self-consistency k = 5 Posthoc rewrite Open-loop SCD Cascade Closed-loop SCD
47.8 93.8 46.5 59.8 75.0 87.8 88.8
0.0 274.5 0.0 147.6 90.6 184.8 195.1
0.00 1.00 0.00 0.61 0.90 0.61 2.27
9.0 6.8 49.4 10.0 6.3 10.5 7.8
Table 9: Predictor-side failure mode. Triples where the early trigger is unreliable lose under closed-loop SCD, while triples with AUC@128 ≥ 0.70 win. Pairs identical drafts on different targets isolate the predictor effect (rows 3-4). Draft
Dataset
AUC @128 Full AUC
∆CL-OL
Qwen 1.5B GSM8K Llama 1B GSM8K Qwen 0.5B GSM8K
0.82 0.76 0.69
0.86 0.80 0.78
+5.3 +13.8 +20.0
Qwen 0.5B MATH-500 Qwen 0.5B MATH-500 Qwen 1.5B MATH-500 Llama 1B MATH-500
0.57 0.57 0.58 0.59
0.75 0.75 0.78 0.73
−5.5 (4o-mini) +7.0 (4o) −4.5 +11.0
fires with too little evidence or after the draft has already committed. In this regime, the same signal is better suited to cascade or posthoc routing. The second is target-side: even a well-timed trigger can hurt if the target continuation is uncertain, too long, or inconsistent with the draft’s current plan. Such segments overwrite rather than correct. Table 9 shows the predictor-side picture: every triple with AUC@128 ≥ 0.70 wins, every triple below it relies on the target gate to recover. The Qwen-0.5B MATH-500 row appears twice because the same predictor is paired with two targets: holding the predictor fixed and only swapping gpt-4omini → gpt-4o flips a −5.5pp loss into a +7.0pp gain, confirming both gates are needed. Table 10 shows the target-side effect directly: degrading interventions have higher NLL and entropy, lower maximum probability and margin, and more uncertain text. Thus closed-loop failure is not only trigger error; the target must also produce bounded, reliable continuations. Table 11 further shows that target-only accuracy is insufficient. Holding the draft, predictor, and closed-loop parameters fixed, gpt-4o gives the best closed-loop accuracy even though gpt-4.1 has higher target-only accuracy. The difference is intervention behavior: gpt-4o produces shorter continuations, while the
Table 10: Target behavior at intervention time. Degrading interventions are less confident and more uncertain than recovery interventions.
Table 12: SD vs. SCD on SD-feasible Qwen pairs. Cells report accuracy / target tokens. Target is Qwen-14B. Method
Metric
Recovery Degradation
Mean NLL ↓ Mean entropy ↓ Mean max prob ↑ Mean margin ↑ Hedging terms Incomplete computation
0.162 0.336 0.877 0.795 4.1 0.8
0.200 0.413 0.854 0.765 38.2 22.0
Table 11: Target capability is not enough. Same draft, predictor, and closed-loop parameters; only the target changes. Tok is mean target tokens per intervention. Data
Target
T-only
CL Deg.
Tok
GSM8K 4o-mini GSM8K 4.1-mini GSM8K 4o GSM8K 4.1
94.5 87.0 97.5 84.0 95.0 91.0 96.5 79.5
MATH MATH MATH MATH
69.5 49.0 5.0 405.0 72.0 37.5 12.0 493.4 71.0 53.5 4.5 360.5 71.5 40.5 10.5 482.1
4o-mini 4.1-mini 4o 4.1
1.5 142.7 4.5 240.9 2.0 122.9 7.0 346.2
gpt-4.1 family produces longer segments that overwrite more draft context and degrade correct drafts. These results suggest a simple two-knob deployment rule. Use closed-loop SCD when both hold: AUC @128 ≥ 0.70
|
{z
predictor gate
}
and
τ̄intv τ̄target-only {z |
≤ 1.2, }
target gate
(1) where τ̄intv is mean target tokens per intervention and τ̄target-only is mean standalone target completion length. If the predictor gate fails, the same risk score should drive cascade or posthoc routing instead. If the target gate fails, use a terser target, reduce J, or fall back to open-loop SCD. Across the 14+3 deployment triples in Tables 6 and 7, Equation (1) selects gpt-4o for every winning cell and correctly rules out the two MATH losses. Predictor and target gates are both necessary. The failures are not explained by trigger quality alone. In Table 9, the same Qwen-0.5B MATH predictor has low AUC@128 in both target settings, yet swapping gpt-4o-mini for gpt-4o flips closed-loop SCD from a −5.5 point loss to a +7.0 point gain. Conversely, Tables 10 and 11 shows that higher target-only accuracy does not guarantee better intervention: models with longer or more uncertain continuations degrade more correct drafts. Thus sparse collaboration requires a reliable early trig-
GSM8K 1.5B
MATH 0.5B
1.5B
0.5B
Draft 73.5 / 0 48.0 / 0 50.0 / 0 29.5 / 0 OL-SCD 83.5 / 87 69.5 / 109 57.5 / 95 38.0 / 125 CL-SCDlow 87.5 / 120 88.5 / 409 55.5 / 198 27.0 / 336 CL-SCDbest 92.0 / 330 91.0 / 501 – – SD 93–95 / 244 94–95 / 244 70.5–74 / 556 70.5–71.5 / 558 Target 94.0 / 1280 93.5 / 512 48.0 / 507 48.0 / 507
ger and a bounded target response, not simply a stronger target model. Relation to speculative decoding. Speculative decoding (SD) is the closest dense draft-target baseline, but it optimizes a different regime. SD preserves target-output parity through per-token rejection sampling, which requires shared tokenization and access to the target model’s full per-token distribution (Leviathan et al., 2023; Chen et al., 2023a). These requirements exclude our main API-target setting, where gpt-4o-mini and gpt-4o return text but not full target logits. We therefore compare to SD only where it is well-defined: open-weight Qwen draft-target pairs with shared tokenization and full logit access. Table 12 shows the resulting separation. In this SD-feasible regime, SD is the strongest parity-preserving baseline and approaches target-level accuracy through dense verification. SCD instead provides sparse text-correction operating points that do not use target logits. It can run below the full-verification budget, while SD has no partial analogue because it must verify the generated sequence. More importantly, the API-target triples in our main experiments fall outside SD’s assumptions, making SCD the applicable mechanism for selective black-box target assistance.
7
Conclusion
We studied sparse collaborative decoding, where a draft model generates most tokens and a stronger target model provides short corrective segments. The central problem is target-call placement. Local uncertainty is a weak failure predictor, while aggregate trajectory-shape features provide a stronger online signal. Learned triggers improve over fixed schedules on GSM8K and transfer to StrategyQA when early prediction and target competence align. The results show that sparse collaboration requires both a reliable early trigger and bounded target continuations. SCD offers a trajectory-aware alternative to dense verification, allocating target computation only when it can change the reasoning.
8
Limitations
Sparse collaborative decoding has several limitations. First, the trigger is task-, draft-, and distribution-dependent. A predictor calibrated on one reasoning distribution may not transfer unchanged to harder tasks, longer contexts, or domains with different error structure. This is visible on MATH-500, where full-trajectory prediction remains useful but early prediction is weaker, making online intervention less reliable. In such cases, the same risk signal may be better suited to cascade or posthoc routing. Second, target behavior matters as much as target capability. High target-only accuracy does not guarantee useful intervention: long, uncertain, hedged, or inconsistent continuations can overwrite rather than correct the draft trajectory. Deployment therefore requires calibration of threshold, segment length, cooldown, call budget, and target choice. Third, SCD is not a replacement for speculative decoding. When shared tokenization and full target logits are available, and the objective is target-output parity or latency reduction, speculative decoding remains the appropriate dense verification method. SCD instead targets selective black-box or API-based assistance, where target logits are unavailable and task accuracy under limited target access is the main goal. Fourth, the evaluation is limited to exact-match reasoning benchmarks. Answer extraction and normalization can affect symbolic datasets, and the results may not directly transfer to long-form generation, dialogue, tool use, multilingual tasks, or domains where errors are not captured by final-answer accuracy. Finally, the controller is intentionally lightweight. We use aggregate trajectory-shape features and a logistic predictor to isolate the value of trajectory-level failure prediction. Richer policies could jointly optimize trigger timing, segment length, target selection, and stopping behavior, but would introduce more training cost, hyperparameter sensitivity, and risk of overfitting. Potential risks. Sparse collaborative decoding can increase user trust in outputs that remain incorrect, especially when target interventions appear to repair a reasoning trajectory but do not fix the final answer. It may also increase reliance on black-box target models whose behavior is difficult to audit. In high-stakes settings, SCD should therefore be used with external validation, calibrated abstention, and task-specific safety checks rather than as an automatic correctness guarantee.
References Charlie Chen, Sebastian Borgeaud, Geoffrey Irving, Jean-Baptiste Lespiau, Laurent Sifre, and John Jumper. 2023a. Accelerating large language model decoding with speculative sampling. arXiv preprint arXiv:2302.01318. Lingjiao Chen, Matei Zaharia, and James Zou. 2023b. Frugalgpt: How to use large language models while reducing cost and improving performance. arXiv preprint arXiv:2305.05176. Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, and 1 others. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168. Sumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung, Eric Frank, Piero Molino, Jason Yosinski, and Rosanne Liu. 2019. Plug and play language models: A simple approach to controlled text generation. arXiv preprint arXiv:1912.02164. Yonatan Geifman and Ran El-Yaniv. 2017. Selective classification for deep neural networks. In Advances in Neural Information Processing Systems. Mor Geva, Daniel Khashabi, Elad Segal, Tushar Khot, Dan Roth, and Jonathan Berant. 2021. Did Aristotle use a laptop? A question answering benchmark with implicit reasoning strategies. Transactions of the Association for Computational Linguistics, 9:346– 361. Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad AlDahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, and 1 others. 2024. The Llama 3 herd of models. arXiv preprint arXiv:2407.21783. Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. 2021. Measuring mathematical problem solving with the MATH dataset. Advances in Neural Information Processing Systems (NeurIPS), Datasets and Benchmarks Track. Gabriel Ilharco, Marco Tulio Ribeiro, Mitchell Wortsman, Suchin Gururangan, Ludwig Schmidt, Hannaneh Hajishirzi, and Ali Farhadi. 2022. Editing models with task arithmetic. arXiv preprint arXiv:2212.04089. Saurav Kadavath, Tom Conerly, Amanda Askell, Tom Henighan, Dawn Drain, Ethan Perez, Nicholas Schiefer, Zac Hatfield-Dodds, Nova DasSarma, Eli Tran-Johnson, and 1 others. 2022. Language models (mostly) know what they know. arXiv preprint arXiv:2207.05221. Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. 2022. Large language models are zero-shot reasoners. Advances in
neural information processing systems, 35:22199– 22213. Jun Kong, Jin Wang, Liang-Chih Yu, and Xuejie Zhang. 2022. Accelerating inference for pretrained language models by unified multi-perspective early exiting. In Proceedings of the 29th International Conference on Computational Linguistics, pages 4677–4686. Ben Krause, Akhilesh Deepak Gotmare, Bryan McCann, Nitish Shirish Keskar, Shafiq Joty, Richard Socher, and Nazneen Fatema Rajani. 2021. Gedi: Generative discriminator guided sequence generation. In Findings of the Association for Computational Linguistics: EMNLP 2021, pages 4929–4952. Yaniv Leviathan, Matan Kalman, and Yossi Matias. 2023. Fast inference from transformers via speculative decoding. In International Conference on Machine Learning, pages 19274–19286. PMLR. Xiang Lisa Li and Percy Liang. 2021. Prefix-tuning: Optimizing continuous prompts for generation. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 4582– 4597. Zheng Li, Qingxiu Dong, Jingyuan Ma, Di Zhang, Kai Jia, and Zhifang Sui. 2025. Selfbudgeter: Adaptive token allocation for efficient llm reasoning. arXiv preprint arXiv:2505.11274. Kishore Papineni, Salim Roukos, Todd Ward, and WeiJing Zhu. 2002. BLEU: a method for automatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, pages 311–318. Tal Schuster, Adam Fisch, Jai Gupta, Mostafa Dehghani, Dara Bahri, Vinh Q Tran, Yi Tay, and Donald Metzler. 2022. Confident adaptive language modeling. In Advances in Neural Information Processing Systems. Feifan Song, Shaohang Wei, Wen Luo, Yuxuan Fan, Tianyu Liu, Guoyin Wang, and Houfeng Wang. 2025. Well begun is half done: Low-resource preference alignment by weak-to-strong decoding. arXiv preprint arXiv:2506.07434. Yiliu Sun, Zicheng Zhao, Yang Wei, Yanfang Zhang, and Chen Gong. 2025. Well begun, half done: Reinforcement learning with prefix optimization for LLM reasoning. arXiv preprint arXiv:2512.15274. Alexander Matt Turner, Lisa Thiergart, Gavin Leech, David Udell, Juan J Vazquez, Ulisse Mini, and Monte MacDiarmid. 2023. Steering language models with activation engineering. arXiv preprint arXiv:2308.10248. Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. 2022. Self-consistency improves chain of thought reasoning in language models. arXiv preprint arXiv:2203.11171.
Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, and 1 others. 2022. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824– 24837. An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jingren Zhou, Junyang Lin, Kai Dang, and 24 others. 2024. Qwen2.5 technical report. arXiv preprint arXiv:2412.15115. Wenkai Yang, Shuming Ma, Yankai Lin, and Furu Wei. 2025. Towards thinking-optimal scaling of test-time compute for llm reasoning. arXiv preprint arXiv:2502.18080. Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Tom Griffiths, Yuan Cao, and Karthik Narasimhan. 2023. Tree of thoughts: Deliberate problem solving with large language models. Advances in neural information processing systems, 36:11809–11822. Zihao Zhao, Eric Wallace, Shi Feng, Dan Klein, and Sameer Singh. 2021. Calibrate before use: Improving few-shot performance of language models. In International conference on machine learning, pages 12697–12706. PMLR. Denny Zhou, Nathanael Schärli, Le Hou, Jason Wei, Nathan Scales, Xuezhi Wang, Dale Schuurmans, Claire Cui, Olivier Bousquet, Quoc Le, and 1 others. 2022. Least-to-most prompting enables complex reasoning in large language models. arXiv preprint arXiv:2205.10625.
A
Appendix Roadmap
The appendix is organized around the main claims. Sections B and C give implementation details and decoding procedures. Sections D and E describe the trajectory features and the reliability of the learned trigger as the observed prefix grows. Sections F to I provide additional evidence on schedule sensitivity, intervention count, prefix dynamics, and cross-task generalization. Section J analyzes target-side intervention quality. Section K reports an auxiliary draft-tuning experiment for target followability. Section L gives the extended speculative-decoding comparison. Sections 8, M and N summarize evaluation, statistical reporting, compute, and limitations.
B
Implementation Details
Table 13 lists the default decoding, triggering, and predictor-training settings. Unless otherwise stated, draft decoding is greedy. Closed-loop SCD
Table 13: Default hyperparameters for sparse collaborative decoding. Knob
Default
Decoding Open-loop prefix K 32 Segment length J 16 Max new tokens 1280
Main overrides
Table 14: Trajectory-shape features used by the failure predictor. For each base series, we compute the same seven prefix-level aggregates; adding trajectory length gives 12 × 7 + 1 = 85 features.
Sampling
greedy
Component open-loop sweep J ∈ {8, 32, 64, 96} Base series StrategyQA: 256 SELF - CONSISTENCY : T =0.7, Aggregates top-p=0.95, k=5
Trigger and budget Warmup W Cooldown C Call budget B Threshold θ Velocity window ∆
16 8 3 0.5 3
StrategyQA: 4 StrategyQA: 4 closed-loop sweeps θ ∈ [0.2, 0.8] fixed
Predictor training Calibration size Feature dimension L2 regularization CV folds Checkpoints
400 StrategyQA: 200 85 fixed 5×10−3 fixed 5 fixed 16–256, full fixed
uses bounded target-generated text segments and a lightweight trigger trained only from draft-side trajectory statistics and final-answer correctness labels.
C
Decoding Procedures and Baselines
All SCD variants use the same text-injection primitive: a target segment is appended to the visible context and the draft resumes generation. The variants differ only in call placement. OPEN - LOOP fixes a global insertion schedule, whereas CLOSED LOOP evaluates a learned failure predictor online. Closed-loop SCD. Given prompt x, draft D, target T , predictor gψ , threshold θ, segment length J, warmup W , cooldown C, and call budget B: 1. Initialize trajectory y, call counter ncalls = 0, and last-fire position tlast = −∞. 2. Generate the next draft token yt and record draft-side signals st , including entropy, NLL, margin, top-k mass, and their history. 3. If t < W , t − tlast < C, or ncalls ≥ B, continue draft decoding. 4. Otherwise compute trajectory features ϕt = ϕ(s1:t ) and risk score rt = gψ (ϕt ). 5. If rt ≥ θ, ask the target to generate a bounded segment z1:J ′ ∼ T (· | x, y), J ′ ≤ J, append it to the visible context, and resume draft decoding. 6. Stop when the draft emits EOS or the maximum generation length is reached.
Features
Scalar
{H, NLL, M, vH, vNLL, vM, |vH|, |vNLL|, |vM |, p1 , log M, top5} {max, min, mean, p10, p90, std, slope} trajectory length
Total
12 × 7 + 1 = 85
Open-loop SCD. Open-loop SCD removes the learned trigger. The draft first generates a fixed prefix of length P . The target then generates K tokens conditioned on the prompt and prefix. The generated target segment is appended to the context, and the draft completes the trajectory. Cascade and posthoc routing. Cascade and posthoc use the same trajectory-shape predictor as closed-loop SCD, but defer its use until after draft completion. Cascade sends predicted hard examples to the target as full-example queries. Posthoc rewriting asks the target to revise the completed draft. These baselines test whether the predictor is useful only as an example-level router or whether mid-trajectory intervention provides additional leverage.
D
Trajectory Features and Predictor Training
For each base series, we compute aggregate statistics over the observed prefix. Table 14 summarizes the resulting 85-dimensional feature vector: 12 base series times 7 aggregates, plus trajectory length. Predictor training. For each draft-dataset pair, we decode a calibration set with the draft model, record per-step uncertainty statistics and finalanswer correctness, sample truncated prefixes from each trajectory, standardize features, and train an L2-regularized logistic predictor with five-fold cross-validation. The predictor uses only draft-side traces and final correctness labels. It does not use target outputs or intervention outcomes, which separates trigger learning from target behavior. Feature interpretation. For Qwen-1.5B on GSM8K, the largest standardized weights are dominated by log-margin slope, margin-velocity variation, top-5 mass statistics, high entropy percentiles, and high NLL percentiles. This supports the main
Figure 5: Predictor reliability improves with trajectory length. GSM8K predictors cross the operational AUC = 0.70 gate earlier, while MATH-500 predictors remain weaker at comparable trigger positions. This explains why the same closed-loop mechanism is more reliable on GSM8K and more target-dependent on MATH500.
Figure 6: Closed-loop accuracy-cost frontier. Increasing segment length J improves closed-loop SCD until target use saturates. The learned trigger improves over the best open-loop points, especially for the weaker Llama-1B draft where more errors remain recoverable. Table 16: Full closed-loop J-sweep on GSM8K. Rsc = rescue rate, Brk = break rate, Tok = target tokens per example, Cls = target calls per example.
Table 15: Failure-prediction AUC at different prefix lengths. Bold marks the operational online-triggering point used in the main analysis. Draft
Data
@16 @32 @64 @96 @128 @256 Full
Qwen 1.5B GSM8K 0.60 0.63 0.71 0.79 Llama 1B GSM8K 0.61 0.65 0.67 0.71 Qwen 0.5B GSM8K 0.63 0.65 0.66 0.68
0.82 0.76 0.69
0.84 0.86 0.79 0.80 0.74 0.78
Qwen 0.5B MATH Llama 1B MATH Qwen 1.5B MATH
0.57 0.59 0.58
0.64 0.75 0.66 0.73 0.68 0.78
0.45 0.47 0.53 0.55 0.56 0.57 0.58 0.59 0.50 0.52 0.56 0.57
result: failures are marked by declining separation, increased volatility, and weaker probability concentration rather than isolated uncertainty spikes.
E
Predictor Reliability Over Trajectory Length
Figure 5 and Table 15 summarize how failureprediction reliability changes with available trajectory length. The main deployment rule requires a trigger that is reliable early enough to act, not merely accurate on completed trajectories. MATH500 reaches moderate full-trajectory AUC, but remains weak at early trigger points; by the time sufficient evidence accumulates, the draft may already have committed to an incorrect symbolic path.
F
Draft
Open-Loop and Closed-Loop Sweeps
Figures 6 and 7 and Tables 16 and 17 provide the full sweep results behind the compact main-text
J Acc Rsc Brk
Tok
Cls
Qwen 1.5B 8 80.8 10.8 Qwen 1.5B 32 87.5 15.2 Qwen 1.5B 64 91.0 17.5 Qwen 1.5B 96 91.8 18.2 Qwen 1.5B 128 91.5 18.0
4.5 33.9 1.21 2.2 97.6 1.78 1.0 122.3 2.06 1.0 141.3 2.18 1.0 153.8 2.22
Llama 1B Llama 1B Llama 1B Llama 1B Llama 1B
9.0 49.4 2.55 3.2 151.7 2.49 2.8 182.9 2.32 1.5 195.1 2.27 1.8 210.6 2.21
8 50.5 11.8 32 77.8 33.2 64 85.0 40.0 96 88.8 42.5 128 88.0 42.0
tables. They show why open-loop SCD is a strong baseline and why learned triggering improves over fixed schedules. Gains are not caused by simply adding more target tokens: very short target segments are too weak to repair the trajectory, while longer segments saturate and can increase overwrite risk.
G
Non-Monotonic Accuracy Under Increasing Target Interventions
Figure 8 shows that accuracy is not monotonic in the average number of target interventions per example. A small number of well-timed interventions can redirect unstable trajectories, while excessive intervention can overwrite useful draft state or fire after the controllable window has passed. TAP is an open-loop prefixing mechanism: the first K target-generated tokens are inserted before draft decoding continues, with K ∈ {8, 16, 32, 48}.
Table 17: Position-dependent threshold sweep at J = 96 on GSM8K. The best setting is mildly positiondependent for Qwen-1.5B and more strongly thresholdsensitive for Llama-1B. Draft / θe
θl 0.2
0.3
0.5
0.7
0.8
Qwen-1.5B 0.3 91.2 91.5 91.0 90.0 88.5 0.5 91.8 92.2 90.8 88.8 87.2 0.7 90.5 90.8 89.5 88.0 86.0 Llama-1B 0.3 89.2 89.8 90.0 84.5 80.0 0.5 87.0 87.5 86.0 81.0 78.0 0.7 80.5 80.0 77.5 77.2 73.0
Table 18: Attention entropy over decoding phases. Lower entropy indicates stronger attention concentration.
H Figure 7: Open-loop SCD depends on insertion position and segment length. Fixed schedules can improve accuracy, but the best insertion point depends on the draft and schedule. Learned triggering avoids committing to one global schedule across examples and instead adapts to trajectory-specific drift.
The x-axis in Figure 8 is the average number of target interventions per example, not a fixed perexample budget. It emerges from the trigger threshold, the evolving draft trajectory, and problem difficulty. Lower thresholds make the controller more aggressive. Across settings, moving from zero or very few interventions to a small number improves accuracy. After this point, additional calls have diminishing or negative returns: some fire after the draft has committed, and others inject target text into trajectories that were already correct or recoverable. TAP length and intervention frequency therefore control different parts of the same process. TAP shapes trajectory initialization, while closed-loop SCD controls when to reallocate target computation during decoding.
Condition
Early Mid Late 0–20 20–50 50–100
Target Draft Draft + K48 Draft + K96
2.446 2.791 3.079 3.206
2.568 3.028 3.176 3.172
2.650 3.178 3.192 3.075
Attention Dynamics under Target Prefixing
This appendix provides mechanistic evidence for how target-generated prefixes reshape draft attention dynamics. The goal is not to show copying, but to understand when prefix intervention changes reasoning commitment, attention concentration, and trajectory anchoring. Setup. All experiments use GSM8K with greedy decoding. The target is Qwen2.5-14B-Instruct, and the drafts are Qwen2.5-1.5B-Instruct and Qwen2.50.5B-Instruct. Attention statistics are computed on 100 GSM8K examples and averaged over 8 transformer layers. Generation length is fixed to 512 tokens. We analyze K = 48 and K = 96, representing moderate and stronger anchoring. Attention entropy. We measure per-token attention entropy X H=− pi log pi , i
where pi denotes normalized attention weights. Lower entropy indicates more concentrated attention. Table 18 shows that the draft alone has steadily increasing entropy, consistent with diffusion of attention over decoding. Prefixing with K = 48
Figure 8: Accuracy versus average target interventions. Results are shown for SVAMP and GSM8K with Qwen-0.5B and Qwen-1.5B drafts and a fixed Qwen-14B target. Curves correspond to different target-assisted prefix (TAP) lengths, where TAP=K injects the first K target tokens before draft decoding resumes. Accuracy improves with a small number of interventions, then saturates or declines when intervention becomes too aggressive. Table 19: Linear attention entropy slope per token. Negative slope indicates increasing attention concentration over time. Condition
Entropy slope
Target Draft Draft + K48 Draft + K96
+0.00254 +0.00484 +0.00141 −0.00164
state, after which the draft continues with altered attention dynamics.
I
Table 20: Prefix attention dominance and decay over decoding. Condition
Early ratio
Late ratio
Decay
Draft + K48 Draft + K96
0.855 0.863
0.635 0.651
−25.8% −24.6%
Table 21 reports the full cross-task grid summarized in the main paper. It separates broad GSM8K gains from the more conditional MATH-500 behavior. The full grid reinforces two conclusions. First, the largest gains occur for weaker drafts, where more errors remain recoverable. Second, MATH500 failures are selective rather than universal: the same draft can lose with a weaker or less bounded target but recover when paired with a target that can repair the fired context.
J stabilizes this trend but does not reverse it. In contrast, K = 96 produces a late-phase entropy decrease, suggesting more convergent attention dynamics rather than only a local prefix bias. Entropy slope. We summarize each trajectory by fitting a linear slope to attention entropy over decoding steps. Only K = 96 yields a negative entropy slope in Table 19, indicating increasing attention concentration over time. This supports the interpretation that longer target prefixes can transfer useful trajectory structure, not merely local token content. Prefix attention dominance. To test whether the effect is persistent copying from the target prefix, we measure the fraction of attention mass assigned to prefix tokens. Table 20 shows that both prefix lengths decay to similar late-stage prefix attention despite the longer K = 96 prefix. The effect is therefore not explained by persistent copying of target tokens. Target prefixing appears to shape the early trajectory
Full Cross-Task Generalization Grid
Target Behavior and Intervention Reliability
The main paper shows that trigger reliability is only one part of successful sparse collaboration. Here we analyze the second requirement: whether the target continuation is bounded, confident, and compatible with the current draft context. Figure 9 and Tables 22 and 23 show that target-only accuracy is not sufficient for good intervention behavior. The target ladder explains why target-only accuracy alone is not a reliable deployment criterion. Models with higher standalone accuracy can produce longer or more intrusive continuations, increasing degradation. Table 23 further shows that degradation cases have higher target uncertainty at injection time. This suggests that the target can be unreliable exactly when it is asked to repair the draft, and that target-side confidence can be used as an additional guardrail. Linguistic signatures and failure cases. Harmful interventions often contain hedging, metareasoning, or speculative phrasing rather than direct
Table 21: Full generalization grid. ∆CL−OL is best closed-loop minus best open-loop accuracy in percentage points. DRAFT- ONLY
best-OPEN - LOOP
best-CLOSED - LOOP
∆CL−OL
4o-mini 4o 4o 4o-mini 4o-mini
48.0 48.0 45.0 74.5 47.8
69.5 72.5 68.5 86.5 75.0
89.5 91.0 86.5 91.8 88.8
+20.0 +18.5 +18.0 +5.3 +13.8
4o-mini 4o-mini 4o 4o-mini 4o
24.5 14.0 14.0 42.5 24.5
37.5 19.5 21.5 46.5 34.5
32.0 30.5 35.0 42.0 41.5
−5.5 +11.0 +13.5 −4.5 +7.0
Data
Draft
Target
GSM8K GSM8K GSM8K GSM8K GSM8K
Qwen 0.5B Qwen 0.5B Llama 1B Qwen 1.5B Llama 1B
MATH MATH MATH MATH MATH
Qwen 0.5B Llama 1B Llama 1B Qwen 1.5B Qwen 0.5B
Table 22: Target ladder with rescue, degradation, and captured fraction. Cap is the fraction of the draft-to-target gap captured by closed-loop SCD. Data
Target
DRAFT- ONLY TARGET- ONLY CLOSED - LOOP
Rsc Deg
GSM8K 4o-mini GSM8K 4.1-mini GSM8K 4o GSM8K 4.1
73.5 73.5 73.5 73.5
94.5 97.5 95.0 96.5
87.0 15.0 84.0 15.0 91.0 19.5 79.5 13.0
MATH MATH MATH MATH
42.5 42.5 42.5 42.5
69.5 72.0 71.0 71.5
49.0 11.5 5.0 0.24 37.5 7.0 12.0 −0.17 53.5 15.5 4.5 0.39 40.5 8.5 10.5 −0.07
4o-mini 4.1-mini 4o 4.1
1.5 4.5 2.0 7.0
Cap 0.64 0.44 0.81 0.26
position-dependent thresholds, and task-specific answer normalization.
K
Figure 9: Target intervention behavior matters beyond target-only accuracy. Shorter target continuations are associated with better closed-loop accuracy. Stronger target-only models can degrade closed-loop performance when their continuations are long or overwrite the draft context.
computation. Successful interventions are more often assertive and computation-focused, with explicit numeric operations and direct deductive transitions. Manual inspection of degrading trajectories shows three recurring modes: target continuations that overwrite a partially correct draft plan, late triggers after the draft has committed to a wrong setup, and answer-format mismatches in symbolic tasks. These failures motivate shorter target continuations,
Draft Tuning for Target Followability
This section is not used in any main comparison. It reports an auxiliary experiment that asks whether a draft can be lightly adapted to better continue externally injected target prefixes. This is orthogonal to the trigger policy: the trigger decides when to inject target text, while followability tuning improves whether the draft can retain the injected trajectory after control returns to the draft. Motivation and objective. Open-loop and closedloop SCD rely on a target-to-draft handoff. Failures can arise even when the target segment is useful, if the draft later drifts away, overwrites the injected reasoning state, or fails to continue it coherently. Followability tuning is a lightweight offline adaptation that does not use task labels, final-answer correctness, rewards, or preference supervision. Given a prompt P and target-generated prefix T1:K , the draft is trained to treat the injected prefix as a valid trajectory state and continue coherently from it. Let Dθ denote the draft and T the target. For each prompt, we sample a target prefix T1:K and train a small adapter on the draft using L = λinj Linj + λcont Lcont .
Table 23: Target-side confidence as an intervention quality signal. Metrics are computed over the injected target segment. Recovery cases correct an unstable or incorrect draft trajectory; degradation cases worsen an otherwise correct or recoverable trajectory. Metric
Recovery
Degradation
Per-token averages during injection Mean NLL ↓ 0.162 Mean entropy ↓ 0.336 Mean max prob ↑ 0.877 Mean margin ↑ 0.795
0.200 0.413 0.854 0.765
Direction higher is worse higher is worse lower is worse lower is worse
Uncertainty flags: fraction of interventions with at least one flagged token High entropy > 3.0 0.2% 3.3% more frequent in degradation High NLL > 2.0 0.0% 1.6% more frequent in degradation
Table 24: Followability sweep on GSM8K. Draft: Qwen2.5-1.5B-Instruct. Target: Qwen2.5-14B-Instruct. Training uses Ktarget = 80; evaluation injects Kdraft = 32. Config
Acc
Lat. (ms)
No adapter
0.6200
9497.3
early r8 L1+ent early r8 L1 early r4 L1+ent early r4 L1
0.6650 0.6575 0.6425 0.6400
10388.1 10022.3 9637.5 9467.8
mid r8 L1+ent mid r8 L1 mid r4 L1+ent mid r4 L1
0.6450 0.6375 0.6325 0.6275
9992.0 10082.2 9835.2 9642.3
late r8 L1+ent late r8 L1 late r4 L1+ent late r4 L1
0.6375 0.6300 0.6275 0.6250
9590.1 9958.8 9804.4 10199.0
Here, Linj aligns the draft next-token distribution at the injection boundary, while Lcont aligns continuation behavior over subsequent tokens. The continuation loss is exponentially decayed with distance from the injection point. Adapter parameterization. We use low-rank adapters in the query and value projections of selected attention layers. The adapter parameters are less than 0.02% of the draft parameters. They are trained offline and frozen at inference time, adding no target calls and no target-side latency during decoding. Results. Figure 10 and Table 24 summarize the auxiliary followability results. On GSM8K, gains concentrate in early-to-mid layers; on SVAMP, gains peak in middle layers, consistent with longerhorizon retention. The best configuration improves GSM8K accuracy from 0.6200 to 0.6650. Early-layer adaptation is most effective, r = 8 generally outperforms
r = 4, and entropy regularization is mildly beneficial for early and middle placements. These results suggest that the target-to-draft handoff is governed by early computations that incorporate the injected prefix into the draft state.
L
Speculative Decoding Comparison
Figure 11 and Table 25 summarize the SD-feasible open-weight comparison. These results place SCD relative to the closest dense draft-target baseline, but do not imply that SCD should replace SD when SD assumptions hold. The table reports accuracy and mean target tokens per example for Qwen-family settings where SD is well-defined. MATH rows should be interpreted with the same exact-match extractor used throughout the paper; because symbolic formatting is more sensitive than GSM8K, the main conclusion is about deployment regime and target-token allocation rather than claiming an SD-over-target accuracy result. Where SD is feasible, it approaches target-level accuracy through dense verification. SCD should not be interpreted as an SD replacement in that regime. Instead, it provides sparse text-correction operating points and applies in black-box target settings where target logits are unavailable.
M
Datasets, Prompting, and Evaluation
GSM8K. We use the standard test split and exactmatch numeric answer extraction. Prompts ask the model to reason step by step and provide a final numeric answer. MATH-500. We evaluate exact-match answers extracted from boxed final responses. Because symbolic answers can have equivalent forms, MATH500 results are more sensitive to answer extraction than GSM8K.
Figure 10: Draft tuning for target followability. Left: layer-wise sensitivity on GSM8K, where gains concentrate in early-to-mid layers, suggesting stabilization near the target-to-draft handoff. Right: layer-wise sensitivity on SVAMP, where gains peak in middle layers, suggesting improved longer-horizon retention of injected trajectories.
Table 25: Extended SD-feasible comparison on Qwenfamily pairs. Tok is mean target tokens per example. Method
Figure 11: Speculative decoding and SCD occupy different regimes. In SD-feasible open-weight settings, speculative decoding provides the dense paritypreserving point. SCD provides sparse text-correction operating points and applies to black-box/API targets where target logits are unavailable.
StrategyQA. We evaluate 300 questions using a multi-hop yes/no prompting format. Answer extraction uses the final yes/no response.
N
Statistical Reporting and Compute
All main cells use paired example lists across methods. Most cells use n = 200, with StrategyQA using n = 300. At n = 200, the binomial standard error is at most 3.5 percentage points at 50% accuracy and 1.6 points near 90%. Larger closed-loop versus open-loop gains are unlikely to be explained by binomial noise alone; smaller differences should be interpreted cautiously. We report target tokens and calls as the primary cost measures, with wallclock time included where available.
Acc
Tok
Qwen-1.5B / GSM8K DRAFT- ONLY 73.5 OPEN - LOOP 83.5 CLOSED - LOOP low 87.5 CLOSED - LOOP best 92.0 SPEC - DECODE 93.0–95.0 TARGET- ONLY 94.0
0 87 120 330 244 1280
Qwen-0.5B / GSM8K DRAFT- ONLY 48.0 OPEN - LOOP 69.5 CLOSED - LOOP 88.5 CLOSED - LOOP best 91.0 SPEC - DECODE 94.0–95.0 TARGET- ONLY 93.5
0 109 409 501 244 512
Qwen-1.5B / MATH DRAFT- ONLY OPEN - LOOP CLOSED - LOOP SPEC - DECODE TARGET- ONLY
50.0 57.5 55.5 70.5–74.0 48.0
0 95 198 556 507
Qwen-0.5B / MATH DRAFT- ONLY OPEN - LOOP CLOSED - LOOP SPEC - DECODE TARGET- ONLY
29.5 38.0 27.0 70.5–71.5 48.0
0 125 336 558 507
Related documents
- SpecKV: Adaptive Speculative Decoding with Compression-Aware Gamma Selection#155233
- AdaFlash: Adaptive Speculative Decoding via On-Policy Distilled Diffusion Drafters#386869
- Overfitting Mitigation via Singular Value Decomposition in Minimum Bayes Risk Decoding#821107
- MineDraft: A Framework for Batch Parallel Speculative Decoding#821432
- Entropy-Aware Token Rejection for Improving Speculative Decoding#793540
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive