Research map / Large language models / Reasoning and chain of thought
Learning Harmonized Representations for Speculative Sampling
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Proposes HASS, a speculative sampling draft-model training method that combines a Top-K distillation loss (ranking-distillation inspired) with multi-step context-aligned training, built on EAGLE-2, yielding higher acceptance lengths and speedups on LLaMA2/3 models.
Problem
Speculative sampling draft models suffer from inconsistent context between training and decoding (feature-level exposure bias from using target hidden states unavailable at decode time) and from a mismatch between a full-vocabulary training objective and decoding that only cares about high-probabili
Approach
Add a Top-K distillation loss restricted to the target LLM's most probable tokens (inspired by ranking distillation from recommender systems), and train the draft model over multiple steps so that it conditions on its own previously generated features, with an attention mask that keeps training parallel and adds no inference overhead.
Key results
- On LLaMA2-Chat 7B (T=0), HASS reaches 3.24x mean speedup and 5.15 mean acceptance length vs. 2.81x and 4.61 for EAGLE-2.
- On LLaMA3-Instruct 70B, HASS achieves 4.05x mean speedup (T=0) vs. 3.37x for EAGLE-2.
- Across four LLaMA models, HASS reports 2.81x-4.05x speedups, 8%-20% over EAGLE-2, on NVIDIA H800 GPUs.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Add harmonized objective distillation and context alignment | EAGLE-2 · MT-bench, HumanEval, GSM8K mean; LLaMA2-Chat 7B, T=0 | speedup: 2.81x -> 3.24x | Helped |
| Add Top-K loss (w>0) (ablation) | HASS · MT-bench, HumanEval, GSM8K | acceptance length | Helped |
| Set Top-K loss weight to 0.5 rather than 0 (ablation) | HASS · MT-bench, HumanEval, GSM8K mean; LLaMA2-Chat 7B | acceptance length: 5.09 -> 5.17 | Helped |
| Use K=5 rather than K=1 (ablation) | HASS · MT-bench, HumanEval, GSM8K mean; LLaMA2-Chat 7B, T=1 | acceptance length: 4.82 -> 4.92 | Helped |
| Replace Top-K loss with BiLD loss (ablation) | HASS · MT-bench, LLaMA2-Chat 7B, T=0 | acceptance length: 4.99 -> 5.04 | Helped |
| Replace Top-K loss with BiLD loss (ablation) | HASS · MT-bench, LLaMA2-Chat 7B, T=1 | acceptance length: 4.84 -> 4.75 | Hurt |
| Add harmonized context alignment (3 steps) (ablation) | EAGLE-2 + Top-K · MT-bench, HumanEval, GSM8K mean; LLaMA2-Chat 7B, T=0 | acceptance length: 4.78 -> 5.15 | Helped |
| Increase context alignment from 3 to 5 steps (ablation) | HASS · MT-bench, HumanEval, GSM8K mean; LLaMA2-Chat 7B, T=0 | acceptance length: 5.15 -> 5.11 | Hurt |
| Reweight context-alignment step losses with beta=0.5 rather than beta=1.0 (ablation) | HASS · MT-bench, LLaMA3-Instruct 70B | acceptance length: 4.61 -> 4.65 | Helped |
| Reweight context-alignment step losses with beta=0.3 rather than beta=0.5 (ablation) | HASS · MT-bench, LLaMA3-Instruct 70B | acceptance length: 4.65 -> 4.63 | Hurt |
| Add token alignment by replacing training tokens with draft-generated tokens (ablation) | Feature-only context alignment · MT-bench, LLaMA2-Chat 7B | acceptance length: 4.72 -> 4.69 | Hurt |
| Increase draft-generated token replacement probability from 0.1 to 1.0 (ablation) | Feature and token alignment · MT-bench, LLaMA2-Chat 7B | acceptance length: 4.69 -> 4.20 | Hurt |
Surprising findings
- Feature-only context alignment outperforms adding draft-generated token alignment; adding token alignment degrades acceptance length.
- Using a fixed ShareGPT dataset, HASS trained on 1/4 of the data matches or beats EAGLE-2 trained on the full data.
Limitations
- Training cost grows with the number of alignment steps (extra n-1 draft forward passes), and 5 steps reduces acceptance length.
- Acceptance rate at the first speculation step can drop relative to EAGLE-2 on larger models, requiring loss reweighting.
- Top-K loss is hand-designed; the authors state a better loss may exist.
Experimental setup
Datasets: ShareGPT MT-bench HumanEval GSM8K translation tasks (Multilingual-SpecBench)
Benchmarks: MT-bench HumanEval GSM8K Multilingual-SpecBench translation tasks
Metrics: speedup ratio acceptance length
Baselines: PLD Lookahead Vanilla Speculative Sampling Medusa EAGLE EAGLE-2
Builds on: EAGLE EAGLE-2 ranking distillation speculative sampling
Closest papers by meaning
- Judge Decoding: Faster Speculative Sampling Requires Going Beyond Model Alignment (ICLR 2025 · similarity 0.90)
- A Theoretical Perspective for Speculative Decoding Algorithm (NeurIPS 2024 · similarity 0.90)
- SPEED-Bench: A Unified and Diverse Benchmark for Speculative Decoding (ICML 2026 · similarity 0.90)
- Accelerating LLM Inference with Lossless Speculative Decoding Algorithms for Heterogeneous Vocabularies (ICML 2025 · similarity 0.90)
- GRIFFIN: Effective Token Alignment for Faster Speculative Decoding (NeurIPS 2025 · similarity 0.89)
- Flatter Tokens are More Valuable for Speculative Draft Model Training (ICLR 2026 · similarity 0.89)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
