atlas

Research map / Large language models / Reasoning and chain of thought

Learning Harmonized Representations for Speculative Sampling

ICLR 2025 · Large language models › Reasoning and chain of thought · approach: Speculative decoding · 0 citations (OpenAlex)

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

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add harmonized objective distillation and context alignmentEAGLE-2 · MT-bench, HumanEval, GSM8K mean; LLaMA2-Chat 7B, T=0speedup: 2.81x -> 3.24xHelped
Add Top-K loss (w>0) (ablation)HASS · MT-bench, HumanEval, GSM8Kacceptance lengthHelped
Set Top-K loss weight to 0.5 rather than 0 (ablation)HASS · MT-bench, HumanEval, GSM8K mean; LLaMA2-Chat 7Bacceptance length: 5.09 -> 5.17Helped
Use K=5 rather than K=1 (ablation)HASS · MT-bench, HumanEval, GSM8K mean; LLaMA2-Chat 7B, T=1acceptance length: 4.82 -> 4.92Helped
Replace Top-K loss with BiLD loss (ablation)HASS · MT-bench, LLaMA2-Chat 7B, T=0acceptance length: 4.99 -> 5.04Helped
Replace Top-K loss with BiLD loss (ablation)HASS · MT-bench, LLaMA2-Chat 7B, T=1acceptance length: 4.84 -> 4.75Hurt
Add harmonized context alignment (3 steps) (ablation)EAGLE-2 + Top-K · MT-bench, HumanEval, GSM8K mean; LLaMA2-Chat 7B, T=0acceptance length: 4.78 -> 5.15Helped
Increase context alignment from 3 to 5 steps (ablation)HASS · MT-bench, HumanEval, GSM8K mean; LLaMA2-Chat 7B, T=0acceptance length: 5.15 -> 5.11Hurt
Reweight context-alignment step losses with beta=0.5 rather than beta=1.0 (ablation)HASS · MT-bench, LLaMA3-Instruct 70Bacceptance length: 4.61 -> 4.65Helped
Reweight context-alignment step losses with beta=0.3 rather than beta=0.5 (ablation)HASS · MT-bench, LLaMA3-Instruct 70Bacceptance length: 4.65 -> 4.63Hurt
Add token alignment by replacing training tokens with draft-generated tokens (ablation)Feature-only context alignment · MT-bench, LLaMA2-Chat 7Bacceptance length: 4.72 -> 4.69Hurt
Increase draft-generated token replacement probability from 0.1 to 1.0 (ablation)Feature and token alignment · MT-bench, LLaMA2-Chat 7Bacceptance length: 4.69 -> 4.20Hurt

Surprising findings

Limitations

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

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy