TAPS: Task Aware Proposal Distributions for Speculative Sampling

Mohamad Zbib, Mohamad Bazzi, Ammar Mohanna, Hasan Abed Al Kader Hammoud, Bernard Ghanem

TL;DR

Speculative decoding speedups depend heavily on whether the lightweight draft model's training data matches the downstream task. This paper demonstrates that specialized draft models exhibit strong domain specialization and are far more effective when combined at inference time—via confidence routing or merged-tree verification—rather than blending their weights in parameter space.

What Problem Does This Paper Address?

Speculative decoding is a popular technique to accelerate large language model (LLM) inference. It uses a small, fast "draft" model to predict several future tokens, which a larger "target" model then verifies in parallel. If the draft model guesses correctly, the system accepts multiple tokens in a single forward pass, breaking the autoregressive bottleneck.

Figure 1: Schematic of the speculative decoding pipeline. Given contextual in- formation from the target LLM, the draft model generates latent proposed tokens, which are converted by the LM head and sampling module into multiple candidate future tokens. These candidates are provi- sional and are later verified by the target model. Importantly, the trainable compo- nent in this framework is the draft model, whose role is to efficiently approximate the target model’s next-token behavior while preserving the target model’s final output distribution after verification.

However, most draft models are trained on broad, generic datasets (like ShareGPT), leaving a critical gap in our understanding: how much does speculative decoding efficiency suffer when there is a domain mismatch between the draft model's training data and the actual workload? Furthermore, as the open-source ecosystem fills with specialized models, how should we combine multiple specialized drafters (e.g., one for math, one for chat) to handle diverse downstream tasks?

Methods

The authors systematically evaluate two state-of-the-art speculative decoding backbones: EAGLE-2 and HASS. They train lightweight (0.8B parameter) drafters on specialized datasets and explore three distinct strategies for combining these specialists:

  1. Checkpoint Averaging (Weight Merging): Linearly interpolating the parameters of the specialized draft models to create a single blended checkpoint.
  2. Confidence Routing: Generating separate draft trees from each specialist at inference time, scoring each tree by its mean node confidence, and sending only the highest-scoring tree to the target verifier.
  3. Merged-Tree Verification: Jointly verifying both draft trees by packing them under a shared root with a custom attention mask that prevents cross-subtree attention, allowing the verifier to evaluate both paths simultaneously.
Strategies for combining specialized draft models

Datasets

  • Training: MathInstruct (for mathematical reasoning) and ShareGPT (for general conversational data). They also mix these datasets to create "Mixed 35k+35k" and "Mixed 70k+70k" robustness baselines.
  • Evaluation: MT-Bench (conversational), alongside three reasoning-heavy math benchmarks: GSM8K, MATH-500, and SVAMP.

Key Insights and Ideas

  • Drafters Specialize Strongly: Tiny draft models exhibit clear domain specialization. A chat-trained drafter underperforms on math workloads, and a math-trained drafter struggles on chat workloads, directly impacting token acceptance lengths.
  • Weight Space Merging Fails: Naively averaging the weights of specialized drafters results in unstable behavior and poor token acceptance rates. The unique behaviors required for distinct domains are not preserved through simple parameter interpolation.
  • Confidence Beats Entropy for Routing: Draft confidence provides a much cleaner, benchmark-level routing signal than token entropy. While rejected tokens generally show higher entropy, entropy routing produces near-balanced, ambiguous splits across benchmarks.
  • The Depth Effect (Exploration vs. Exploitation): Speculative decoding is both task-aware and depth-aware. At shallow draft depths, mixed-data models perform well due to broader proposal coverage (exploration). However, as draft depth increases, the task-matched specialist becomes dominant because sustained token acceptance requires deep domain alignment (exploitation).

Key Results

The primary metric used is acceptance length (the average number of draft tokens accepted per verifier call).

Quantitative results of composition strategies
  • Clear Specialization: At temperature 0 under HASS, the ShareGPT drafter achieved an acceptance length of 3.98 on MT-Bench but only 4.09 on GSM8K. Conversely, the MathInstruct drafter hit 5.02 on GSM8K but dropped to 2.90 on MT-Bench.
  • Inference Composition Wins: Keeping specialists separate and combining them at inference time significantly outperforms weight averaging.
  • Merged Trees Dominate: Merged-Tree Verification yielded the highest acceptance length overall for both backbones, reaching an average acceptance length of 5.11 for HASS and 5.03 for EAGLE-2 at temperature 0.
  • Accurate Routing: Confidence routing successfully selected the MathInstruct drafter for 90.8% of GSM8K and 97.0% of MATH-500 examples, while routing to the ShareGPT drafter for 81.2% of MT-Bench prompts.

Limitations and Future Work

  • Scope of Evaluation: The study evaluates a single target model (Meta-Llama-3-8B-Instruct), two source domains, and four benchmarks. Testing on a wider variety of domains (e.g., code, law, medicine) remains future work.
  • No End-to-End Latency Benchmarks: The primary metric is acceptance length. While merged-tree verification maximizes token acceptance, it increases the size of the tree processed by the verifier. The paper does not establish the final wall-clock execution speedups or deployment trade-offs for this strategy.
  • Simple Routing: The routing policy relies on a simple, heuristic confidence score rather than a learned or cost-aware gating network.

Summary updated

Abstract

Speculative decoding accelerates autoregressive generation by letting a lightweight draft model propose future tokens that a larger target model then verifies in parallel. In practice, however, draft models are usually trained on broad generic corpora, which leaves it unclear how much speculative decoding quality depends on the draft training distribution. We study this question with lightweight HASS and EAGLE-2 drafters trained on MathInstruct, ShareGPT, and mixed-data variants, evaluated on MT-Bench, GSM8K, MATH-500, and SVAMP. Measured by acceptance length, task-specific training yields clear specialization: MathInstruct-trained drafts are strongest on reasoning benchmarks, while ShareGPT-trained drafts are strongest on MT-Bench. Mixed-data training improves robustness, but larger mixtures do not dominate across decoding temperatures. We also study how to combine specialized drafters at inference time. Naive checkpoint averaging performs poorly, whereas confidence-based routing improves over single-domain drafts and merged-tree verification yields the highest acceptance length overall for both backbones. Finally, confidence is a more useful routing signal than entropy: rejected tokens tend to have higher entropy, but confidence produces much clearer benchmark-level routing decisions. These results show that speculative decoding quality depends not only on draft architecture, but also on the match between draft training data and downstream workload, and that specialized drafters are better combined at inference time than in weight space.
BibTeX
@inproceedings{zbib2026taps,
  author = {Mohamad Zbib and Mohamad Bazzi and Ammar Mohanna and Hasan Abed Al Kader Hammoud and Bernard Ghanem},
  title = {{TAPS: Task Aware Proposal Distributions for Speculative Sampling}},
  booktitle = {SPIGM @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=b3M22Zalih},
}
Figure