Lune

ICML2024Top-tier venue

Accelerated Speculative Sampling Based on Tree Monte Carlo

Zhengmian Hu, Heng Huang

Abstract

Speculative Sampling (SpS) has been introduced to speed up the inference of large language models (LLMs) by generating multiple tokens in a single forward pass under the guidance of a reference model, while preserving the original distribution. We observe that SpS can be derived through maximum coupling on the token distribution. However, we find that this approach is not optimal as it applies maximum coupling incrementally for each new token, rather than seeking a global maximum coupling that yields a faster algorithm, given the tree-space nature of LLM generative distributions. In this paper, we shift our focus from distributions on a token space to those on a tree space. We propose a novel class of Tree Monte Carlo (TMC) methods, demonstrating their unbiasedness and convergence. As a particular instance of TMC, our new algorithm, Accelerated Speculative Sampling (ASpS), outperforms traditional SpS by generating more tokens per step on average, achieving faster inference, while maintaining the original distribution. This challenge has prompted the exploration of methods

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.

10 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

  • Annealed Relaxation of Speculative Decoding for Faster Autoregressive Image Generation cites Fast Inference from Transformers via Speculative Decoding
  • Towards Optimal Multi-draft Speculative Decoding cites Fast Inference from Transformers via Speculative Decoding
  • Global Resolution: Optimal Multi-Draft Speculative Sampling via Convex Optimization cites Towards Optimal Multi-draft Speculative Decoding
  • Global Resolution: Optimal Multi-Draft Speculative Sampling via Convex Optimization cites Fast Inference from Transformers via Speculative Decoding
  • CORAL: Learning Consistent Representations across Multi-step Training with Lighter Speculative Drafter cites SpecInfer: Accelerating Large Language Model Serving with Tree-based Speculative Inference and Verification
  • CORAL: Learning Consistent Representations across Multi-step Training with Lighter Speculative Drafter cites Fast Inference from Transformers via Speculative Decoding
  • SpecInfer: Accelerating Large Language Model Serving with Tree-based Speculative Inference and Verification cites Fast Inference from Transformers via Speculative Decoding
  • Traversal Verification for Speculative Tree Decoding cites Towards Optimal Multi-draft Speculative Decoding
  • Traversal Verification for Speculative Tree Decoding cites SpecInfer: Accelerating Large Language Model Serving with Tree-based Speculative Inference and Verification
  • Traversal Verification for Speculative Tree Decoding cites Fast Inference from Transformers via Speculative Decoding
  • Speculative Decoding with Big Little Decoder cites Fast Inference from Transformers via Speculative Decoding
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. Traversal Verification for Speculative Tree DecodingYepeng Weng, Qiao Hu, Xujie Chen, Li Liu et al.NeurIPS 2025 · 11 citations
  2. 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
  3. Global Resolution: Optimal Multi-Draft Speculative Sampling via Convex OptimizationRahul Krishna Thomas, Arka PalICLR 2026 · 2 citations
  4. Annealed Relaxation of Speculative Decoding for Faster Autoregressive Image GenerationXingyao Li, Fengzhuo Zhang, Cunxiao Du, Hui JiAAAI 2026
  5. Towards Optimal Multi-draft Speculative DecodingZhengmian Hu, Tong Zheng, Vignesh Viswanathan, Ziyi Chen et al.ICLR 2025

Builds on3

  1. Fast Inference from Transformers via Speculative DecodingYaniv Leviathan, Matan Kalman, Yossi MatiasICML 2023 · 1,472 citations
  2. Speculative Decoding with Big Little DecoderSehoon Kim, Karttikeya Mangalam, Suhong Moon, Jitendra Malik et al.NeurIPS 2023 · 212 citations
  3. SpecInfer: Accelerating Large Language Model Serving with Tree-based Speculative Inference and VerificationXupeng Miao, Gabriele Oliaro, Zhihao Zhang, Xinhao Cheng et al.ASPLOS 2024 · 105 citations

Related papers

  1. EAGLE-2: Faster Inference of Language Models with Dynamic Draft TreesYuhui Li, Fangyun Wei, Chao Zhang, Hongyang ZhangEMNLP 2024 · 16 citations
  2. Speculative Sampling via Exponential RacesSzymon Kobus, Deniz GündüzACL Findings 2025
  3. Re-SpS: A Reinforcement Learning Approach to Speculative SamplingChenan Wang, Daniel H. Shi, Haipeng ChenAAAI 2026
  4. Cactus: Accelerating Auto-Regressive Decoding with Constrained Acceptance Speculative SamplingYongchang Hao, Lili MouICLR 2026 · 3 citations
  5. Dynamic-Width Speculative Beam Decoding for LLM InferenceZongyue Qin, Zifan He, Neha Prakriya, Jason Cong et al.AAAI 2025 · 10 citations
Dusk over the sea between two cliffs drawn in fine vertical lines