Trajectory-Triggered Sparse Collaborative Decoding
Organizations: University of Illinois Chicago · Meta
Abstract
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- mass, and velocity features give near-chance 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.
Figures & tables
| Signal or feature set | AUC | Type |
| Entropy | 0.531 | local |
| NLL | 0.528 | local |
| Margin | 0.474 | local |
| Entropy velocity | 0.503 | local change |
| NLL velocity | 0.499 | local change |
| Margin velocity | 0.498 | local change |
| Draft | Dataset | Fail% | @16 | @128 | Full |
| Qwen 1.5B | GSM8K | 26 | 0.60 | 0.82 | 0.86 |
| Llama 1B | GSM8K | 52 | 0.61 | 0.76 | 0.80 |
| Qwen 0.5B | GSM8K | 52 | 0.63 | 0.69 | 0.78 |
| Qwen 0.5B | MATH-500 | 76 | 0.45 | 0.57 | 0.75 |
| Llama 1B | MATH-500 | 86 | 0.56 | 0.59 | 0.73 |
| Qwen 1.5B | MATH-500 | 58 | 0.50 | 0.58 | 0.78 |
| Draft | Mean acc | Tgt tok | Best cell | |
| Qwen 1.5B | 8 | 75.8 | 8.3 | 77.2 |
| Qwen 1.5B | 32 | 78.6 | 33.2 | 81.5 |
| Qwen 1.5B | 64 | 80.5 | 65.9 | 83.5 |
| Qwen 1.5B | 128 | 84.9 | 126.2 | 86.5 |
| Llama 1B | 8 | 48.8 | 8.4 | 50.0 |
| Llama 1B | 32 | 55.4 | 30.9 | 58.8 |
| Draft | Best acc | Rescue | Break | Tgt tok | |
| Qwen 1.5B | 8 | 80.8 | 10.8 | 4.5 | 33.9 |
| Qwen 1.5B | 32 | 87.5 | 15.2 | 2.2 | 97.6 |
| Qwen 1.5B | 64 | 91.0 | 17.5 | 1.0 | 122.3 |
| Qwen 1.5B | 96 | 91.8 | 18.2 | 1.0 | 141.3 |
| Llama 1B | 8 | 50.5 | 11.8 | 9.0 | 49.4 |
| Llama 1B | 32 | 77.8 | 33.2 | 3.2 | 151.7 |
| Draft | Acc | Rescue | Tgt tok | ||
| Qwen 1.5B | 0.5 | 0.3 | 92.2 | 19.0 | 151.6 |
| Qwen 1.5B | 0.5 | 0.5 | 90.8 | 18.0 | 135.1 |
| Qwen 1.5B | 0.7 | 0.7 | 88.0 | 14.8 | 90.7 |
| Llama 1B | 0.3 | 0.5 | 90.0 | 44.0 | 232.0 |
| Llama 1B | 0.5 | 0.5 | 86.0 | 41.2 | 195.7 |
| Llama 1B | 0.7 | 0.7 | 77.2 | 32.0 | 136.9 |
| Draft | Target | D-only | Best OL | Best CL |
| GSM8K | ||||
| Qwen 1.5B | 4o-mini | 74.5 | 86.5 (104) | 91.8 (141) |
| Llama 1B | 4o-mini | 47.8 | 75.0 (91) | 88.8 (195) |
| Qwen 0.5B | 4o-mini | 48.0 | 69.5 (118) | 89.5 (224) |
| Qwen 0.5B | 4o | 48.0 | 72.5 (116) | 91.0 (196) |
| Llama 1B | 4o | 45.0 | 68.5 (66) | 86.5 (192) |
| Draft | D-only | Best OL | Best CL | |
| Qwen 0.5B | 50.0 | 50.0 | 58.3 | +8.3 |
| Llama 1B | 48.3 | 60.7 | 68.7 | +8.0 |
| Qwen 1.5B | 52.3 | 62.3 | 67.3 | +5.0 |
| Method | Acc | Tgt tok | Calls | Wall s |
| Draft-only | 47.8 | 0.0 | 0.00 | 9.0 |
| Target-only | 93.8 | 274.5 | 1.00 | 6.8 |
| Self-consistency | 46.5 | 0.0 | 0.00 | 49.4 |
| Posthoc rewrite | 59.8 | 147.6 | 0.61 | 10.0 |
| Open-loop SCD | 75.0 | 90.6 | 0.90 | 6.3 |
| Cascade | 87.8 | 184.8 | 0.61 | 10.5 |
| Draft | Dataset | auc @128 | Full auc | |
| Qwen 1.5B | GSM8K | 0.82 | 0.86 | |
| Llama 1B | GSM8K | 0.76 | 0.80 | |
| Qwen 0.5B | GSM8K | 0.69 | 0.78 | |
| Qwen 0.5B | MATH-500 | 0.57 | 0.75 | (4o-mini) |
| Qwen 0.5B | MATH-500 | 0.57 | 0.75 | (4o) |
| Qwen 1.5B | MATH-500 | 0.58 | 0.78 |
| Metric | Recovery | Degradation |
| Mean NLL | 0.162 | 0.200 |
| Mean entropy | 0.336 | 0.413 |
| Mean max prob | 0.877 | 0.854 |
| Mean margin | 0.795 | 0.765 |
| Hedging terms | 4.1 | 38.2 |
| Incomplete computation | 0.8 | 22.0 |
| Data | Target | T-only | CL | Deg. | Tok |
| GSM8K | 4o-mini | 94.5 | 87.0 | 1.5 | 142.7 |
| GSM8K | 4.1-mini | 97.5 | 84.0 | 4.5 | 240.9 |
| GSM8K | 4o | 95.0 | 91.0 | 2.0 | 122.9 |
| GSM8K | 4.1 | 96.5 | 79.5 | 7.0 | 346.2 |
| MATH | 4o-mini | 69.5 | 49.0 | 5.0 | 405.0 |
| MATH | 4.1-mini | 72.0 | 37.5 | 12.0 | 493.4 |
| Method | GSM8K | MATH | ||
| 1.5B | 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-SCD low | 87.5 / 120 | 88.5 / 409 | 55.5 / 198 | 27.0 / 336 |
| CL-SCD best | 92.0 / 330 | 91.0 / 501 | – | – |
| SD | 93–95 / 244 | 94–95 / 244 | 70.5–74 / 556 | 70.5–71.5 / 558 |
Appendix figures & tables20 assets
Supplementary material from the paper’s appendix.
Appendix
| Knob | Default | Main overrides |
| Decoding | ||
| Open-loop prefix | open-loop sweep | |
| Segment length | ||
| Max new tokens | StrategyQA: | |
| Sampling | greedy | self-consistency : , top- , |
| Trigger and budget | ||
| Component | Features |
| Base series | |
| Aggregates | |
| Scalar | trajectory length |
| Total |
| Draft | Data | @16 | @32 | @64 | @96 | @128 | @256 | Full |
| Qwen 1.5B | GSM8K | 0.60 | 0.63 | 0.71 | 0.79 | 0.82 | 0.84 | 0.86 |
| Llama 1B | GSM8K | 0.61 | 0.65 | 0.67 | 0.71 | 0.76 | 0.79 | 0.80 |
| Qwen 0.5B | GSM8K | 0.63 | 0.65 | 0.66 | 0.68 | 0.69 | 0.74 | 0.78 |
| Qwen 0.5B | MATH | 0.45 | 0.47 | 0.53 | 0.55 | 0.57 | 0.64 | 0.75 |
| Llama 1B | MATH | 0.56 | 0.57 | 0.58 | 0.59 | 0.59 | 0.66 | 0.73 |
| Qwen 1.5B | MATH | 0.50 | 0.52 | 0.56 | 0.57 | 0.58 | 0.68 | 0.78 |
| Draft | Acc | Rsc | Brk | Tok | Cls | |
| Qwen 1.5B | 8 | 80.8 | 10.8 | 4.5 | 33.9 | 1.21 |
| Qwen 1.5B | 32 | 87.5 | 15.2 | 2.2 | 97.6 | 1.78 |
| Qwen 1.5B | 64 | 91.0 | 17.5 | 1.0 | 122.3 | 2.06 |
| Qwen 1.5B | 96 | 91.8 | 18.2 | 1.0 | 141.3 | 2.18 |
| Qwen 1.5B | 128 | 91.5 | 18.0 | 1.0 | 153.8 | 2.22 |
| Llama 1B | 8 | 50.5 | 11.8 | 9.0 | 49.4 | 2.55 |
| Draft / | |||||
| 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 | |||||
| Condition | Early | Mid | Late |
| 0–20 | 20–50 | 50–100 | |
| Target | 2.446 | 2.568 | 2.650 |
| Draft | 2.791 | 3.028 | 3.178 |
| Draft + K48 | 3.079 | 3.176 | 3.192 |
| Draft + K96 | 3.206 | 3.172 | 3.075 |
| Condition | Entropy slope |
| Target | |
| Draft | |
| Draft + K48 | |
| Draft + K96 |
| Condition | Early ratio | Late ratio | Decay |
| Draft + K48 | 0.855 | 0.635 | |
| Draft + K96 | 0.863 | 0.651 |
| Data | Draft | Target | draft-only | best- open-loop | best- closed-loop | |
| GSM8K | Qwen 0.5B | 4o-mini | 48.0 | 69.5 | 89.5 | |
| GSM8K | Qwen 0.5B | 4o | 48.0 | 72.5 | 91.0 | |
| GSM8K | Llama 1B | 4o | 45.0 | 68.5 | 86.5 | |
| GSM8K | Qwen 1.5B | 4o-mini | 74.5 | 86.5 | 91.8 | |
| GSM8K | Llama 1B | 4o-mini | 47.8 | 75.0 | 88.8 | |
| MATH | Qwen 0.5B | 4o-mini | 24.5 | 37.5 | 32.0 |
| Data | Target | draft-only | target-only | closed-loop | Rsc | Deg | Cap |
| GSM8K | 4o-mini | 73.5 | 94.5 | 87.0 | 15.0 | 1.5 | 0.64 |
| GSM8K | 4.1-mini | 73.5 | 97.5 | 84.0 | 15.0 | 4.5 | 0.44 |
| GSM8K | 4o | 73.5 | 95.0 | 91.0 | 19.5 | 2.0 | 0.81 |
| GSM8K | 4.1 | 73.5 | 96.5 | 79.5 | 13.0 | 7.0 | 0.26 |
| MATH | 4o-mini | 42.5 | 69.5 | 49.0 | 11.5 | 5.0 | 0.24 |
| MATH | 4.1-mini | 42.5 | 72.0 | 37.5 | 7.0 | 12.0 |
| Metric | Recovery | Degradation | Direction |
| Per-token averages during injection | |||
| Mean NLL | 0.162 | 0.200 | higher is worse |
| Mean entropy | 0.336 | 0.413 | higher is worse |
| Mean max prob | 0.877 | 0.854 | lower is worse |
| Mean margin | 0.795 | 0.765 | lower is worse |
| Uncertainty flags: fraction of interventions with at least one flagged token | |||
| Config | Acc | Lat. (ms) |
| No adapter | 0.6200 | 9497.3 |
| early r8 L1+ent | 0.6650 | 10388.1 |
| early r8 L1 | 0.6575 | 10022.3 |
| early r4 L1+ent | 0.6425 | 9637.5 |
| early r4 L1 | 0.6400 | 9467.8 |
| mid r8 L1+ent | 0.6450 | 9992.0 |
| Method | Acc | Tok |
| Qwen-1.5B / GSM8K | ||
| draft-only | 73.5 | 0 |
| open-loop | 83.5 | 87 |
| closed-loop low | 87.5 | 120 |
| closed-loop best | 92.0 | 330 |
| spec-decode | 93.0–95.0 | 244 |
Speculative Decoding
Speculative decoding accelerates generation by drafting multiple tokens and verifying them in parallel with a larger target model.
See all 308 papers