Lune

ICLR2025Top-tier venue

Learning Harmonized Representations for Speculative Sampling

Lefan Zhang, Xiaodan Wang, Yanhua Huang, Ruiwen Xu

Abstract

Speculative sampling is a promising approach to accelerate the decoding stage for Large Language Models (LLMs). Recent advancements that leverage target LLM's contextual information, such as hidden states and KV cache, have shown significant practical improvements. However, these approaches suffer from inconsistent context between training and decoding. We also observe another discrepancy between the training and decoding objectives in existing speculative sampling methods. In this work, we propose a solution named HArmonized Speculative Sampling (HASS) that learns harmonized representations to address these issues. HASS accelerates the decoding stage without adding inference overhead through harmonized objective distillation and harmonized context alignment. Experiments on four LLaMA models demonstrate that HASS achieves 2.81x-4.05x wall-clock time speedup ratio averaging across three datasets, surpassing EAGLE-2 by 8%-20%. The code is available at https://github. com/HArmonizedSS/HASS .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

33 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • R2R: Efficiently Navigating Divergent Reasoning Paths with Small-Large Model Token Routing cites EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test
  • R2R: Efficiently Navigating Divergent Reasoning Paths with Small-Large Model Token Routing cites EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty
  • PARD: Accelerating LLM Inference with Low‑Cost PARallel Draft Model Adaptation cites SpecTr: Fast Speculative Decoding via Optimal Transport
  • PARD: Accelerating LLM Inference with Low‑Cost PARallel Draft Model Adaptation cites EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test
  • PARD: Accelerating LLM Inference with Low‑Cost PARallel Draft Model Adaptation cites EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty
  • PARD: Accelerating LLM Inference with Low‑Cost PARallel Draft Model Adaptation cites Fast Inference from Transformers via Speculative Decoding
  • SpecTr: Fast Speculative Decoding via Optimal Transport cites Fast Inference from Transformers via Speculative Decoding
  • SpecTr: Fast Speculative Decoding via Optimal Transport cites The Curious Case of Neural Text Degeneration
  • GRIFFIN: Effective Token Alignment for Faster Speculative Decoding cites SpecTr: Fast Speculative Decoding via Optimal Transport
  • GRIFFIN: Effective Token Alignment for Faster Speculative Decoding cites EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty
  • GRIFFIN: Effective Token Alignment for Faster Speculative Decoding cites Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads
  • GRIFFIN: Effective Token Alignment for Faster Speculative Decoding cites Fast Inference from Transformers via Speculative Decoding
  • EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test cites SpecTr: Fast Speculative Decoding via Optimal Transport
  • EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test cites EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty
  • EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test cites Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads
  • EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test cites Fast Inference from Transformers via Speculative Decoding
  • MoESD: Unveil Speculative Decoding's Potential for Accelerating Sparse MoE cites EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test
  • MoESD: Unveil Speculative Decoding's Potential for Accelerating Sparse MoE cites EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty
  • MoESD: Unveil Speculative Decoding's Potential for Accelerating Sparse MoE cites Fast Inference from Transformers via Speculative Decoding
  • EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty cites Fast Inference from Transformers via Speculative Decoding
  • Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads cites Fast Inference from Transformers via Speculative Decoding
  • Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads cites The Curious Case of Neural Text Degeneration
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers33

  1. EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time TestYuhui Li, Fangyun Wei, Chao Zhang, Hongyang ZhangNeurIPS 2025 · 347 citations
  2. R2R: Efficiently Navigating Divergent Reasoning Paths with Small-Large Model Token RoutingTianyu Fu, Yi Ge, Yichen You, Enshu Liu et al.NeurIPS 2025 · 32 citations
  3. PARD: Accelerating LLM Inference with Low‑Cost PARallel Draft Model AdaptationZihao An, Huajun Bai, Ziqiong Liu, Dong Li et al.ICLR 2026 · 28 citations
  4. MoESD: Unveil Speculative Decoding's Potential for Accelerating Sparse MoEZongle Huang, Lei Zhu, Zongyuan Zhan, Ting Hu et al.NeurIPS 2025 · 23 citations
  5. GRIFFIN: Effective Token Alignment for Faster Speculative DecodingShijing Hu, Jingyang Li, Xingyu Xie, Zhihui Lu et al.NeurIPS 2025 · 14 citations

Builds on8

  1. The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes et al.ICLR 2020 · 4,112 citations
  2. Fast Inference from Transformers via Speculative DecodingYaniv Leviathan, Matan Kalman, Yossi MatiasICML 2023 · 1,472 citations
  3. Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding HeadsTianle Cai, Yuhong Li, Zhengyang Geng, Hongwu Peng et al.ICML 2024 · 669 citations
  4. EAGLE: Speculative Sampling Requires Rethinking Feature UncertaintyYuhui Li, Fangyun Wei, Chao Zhang, Hongyang ZhangICML 2024 · 424 citations
  5. SpecTr: Fast Speculative Decoding via Optimal TransportZiteng Sun, Ananda Theertha Suresh, Jae Hun Ro, Ahmad Beirami et al.NeurIPS 2023 · 164 citations

Related papers

  1. CORAL: Learning Consistent Representations across Multi-step Training with Lighter Speculative DrafterYepeng Weng, Dianwen Mei, Huishi Qiu, Xujie Chen et al.ACL 2025 · 6 citations
  2. HCSpec: Two-Tier Horizontal Cascade Speculative Decoding for High-Efficiency Large Language Model InferenceYizhou Zhang, Siming Chen, Hao Ye, Erhu FengACL 2026
  3. Alignment-Augmented Speculative Decoding with Alignment Sampling and Conditional VerificationJikai Wang, Zhenxu Tian, Juntao Li, Qingrong Xia et al.EMNLP 2025
  4. DistillSpec: Improving Speculative Decoding via Knowledge DistillationYongchao Zhou, Kaifeng Lyu, Ankit Singh Rawat, Aditya Krishna Menon et al.ICLR 2024 · 143 citations
  5. RACER: Retrieval-Augmented Contextual Rapid Speculative DecodingZihong Zhang, Zuchao Li, Lefei Zhang, Ping Wang et al.ACL Findings 2026 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines