Lune

ACL2025Top-tier venue

FR-Spec: Accelerating Large-Vocabulary Language Models via Frequency-Ranked Speculative Sampling

Weilin Zhao, Tengyu Pan, Xu Han, Yudi Zhang, Sun Ao, Yuxiang Huang, Kaihuo Zhang, Weilun Zhao, Yuxuan Li, Jie Zhou, Hao Zhou, Jianyong Wang

Abstract

Speculative sampling has emerged as an important technique for accelerating the autoregressive generation process of large language models (LLMs) by utilizing a draft-then-verify mechanism to produce multiple tokens per forward pass. While state-of-the-art speculative sampling methods use only a single layer and a language modeling (LM) head as the draft model to achieve impressive layer compression, their efficiency gains are substantially reduced for large-vocabulary LLMs, such as Llama-3-8B with a vocabulary of 128k tokens. To address this, we present FR-Spec, a frequencyranked speculative sampling framework that optimizes draft candidate selection through vocabulary space compression. By constraining the draft search to a frequency-prioritized token subset, our method reduces LM Head computation overhead by 75% while ensuring the equivalence of the final output distribution. Experiments across multiple datasets demonstrate an average of 1.12× speedup over the state-ofthe-art speculative sampling method EAGLE-2. Code available at https://github.com/ thunlp/FR-Spec .

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.

7 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

  • LK Losses: Direct Acceptance Rate Optimization for Speculative Decoding cites Efficient Memory Management for Large Language Model Serving with PagedAttention
  • LK Losses: Direct Acceptance Rate Optimization for Speculative Decoding cites Fast Inference from Transformers via Speculative Decoding
  • UniSpec: Training-Free Speculative Decoding for Robust LLM Acceleration Across Languages and Hardware cites Efficient Memory Management for Large Language Model Serving with PagedAttention
  • UniSpec: Training-Free Speculative Decoding for Robust LLM Acceleration Across Languages and Hardware cites Fast Inference from Transformers via Speculative Decoding
  • UniSpec: Training-Free Speculative Decoding for Robust LLM Acceleration Across Languages and Hardware cites SGLang: Efficient Execution of Structured Language Model Programs
  • Efficient Memory Management for Large Language Model Serving with PagedAttention cites Language Models are Few-Shot Learners
  • Fast Inference from Transformers via Speculative Decoding cites Language Models are Few-Shot Learners
  • SGLang: Efficient Execution of Structured Language Model Programs cites Efficient Memory Management for Large Language Model Serving with PagedAttention
  • SGLang: Efficient Execution of Structured Language Model Programs cites Language Models are Few-Shot Learners
  • NanoSpec: Accelerating Speculative Decoding using Minimalist In-Context Vocabularies cites Efficient Memory Management for Large Language Model Serving with PagedAttention
  • NanoSpec: Accelerating Speculative Decoding using Minimalist In-Context Vocabularies cites Fast Inference from Transformers via Speculative Decoding
  • NanoSpec: Accelerating Speculative Decoding using Minimalist In-Context Vocabularies cites SGLang: Efficient Execution of Structured Language Model Programs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. LK Losses: Direct Acceptance Rate Optimization for Speculative DecodingAlexander Samarin, Sergei Krutikov, Anton Shevtsov, Sergei Skvortsov et al.ICML 2026 · 11 citations
  2. NanoSpec: Accelerating Speculative Decoding using Minimalist In-Context VocabulariesZhiyang Chen, Daliang Xu, Yinyuan Zhang, Chenghua Wang et al.ICML 2026 · 1 citation
  3. E^2-SCI: Elastic Edge–Cloud Speculative Decoding via Credit InertiaSenyao Li, Haozhao Wang, Zhaobai Jiang, Zhanbo Jin et al.CVPR 2026
  4. UniSpec: Training-Free Speculative Decoding for Robust LLM Acceleration Across Languages and HardwareTruong Dinh Do, Nguyen-Khang Le, Le-Minh NguyenACL 2026
  5. AdaSpec: Adaptive Multilingual Speculative Decoding with Self-Synthesized Language-Aware Training and Vocabulary SimplificationDinh-Truong Do, Nguyen-Khang Le, Le-Minh NguyenAAAI 2026

Builds on19

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. FlashAttention-2: Faster Attention with Better Parallelism and Work PartitioningTri DaoICLR 2024 · 2,600 citations
  3. SGLang: Efficient Execution of Structured Language Model ProgramsLianmin Zheng, Liangsheng Yin, Zhiqiang Xie, Chuyue Sun et al.NeurIPS 2024 · 1,586 citations
  4. Fast Inference from Transformers via Speculative DecodingYaniv Leviathan, Matan Kalman, Yossi MatiasICML 2023 · 1,472 citations
  5. Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng et al.SOSP 2023 · 1,016 citations

Related papers

  1. PARD: Accelerating LLM Inference with Low‑Cost PARallel Draft Model AdaptationZihao An, Huajun Bai, Ziqiong Liu, Dong Li et al.ICLR 2026 · 28 citations
  2. ConFu: Contemplate the Future for Better Speculative SamplingZongyue Qin, Raghavv Goel, Mukul Gagrani, Risheek Garrepalli et al.ICML 2026
  3. FractalLLM: Lossless Self-Speculative Decoding with Layer Embedded Self-CompressionJuhyeong Kim, Sangyeon Yu, Gyunyeop Kim, Sangwoo KangEMNLP Findings 2025
  4. Speculative Decoding with a Speculative VocabularyMiles Williams, Young D. Kwon, Rui Li, Alexandros Kouris et al.ACL Findings 2026 · 1 citation
  5. EAGLE: Speculative Sampling Requires Rethinking Feature UncertaintyYuhui Li, Fangyun Wei, Chao Zhang, Hongyang ZhangICML 2024 · 424 citations
Dusk over the sea between two cliffs drawn in fine vertical lines