paper-with-me

홈 › Papers

Speculative Sampling with Reinforcement Learning

2026-01-18 · Chenan Wang, Daniel H. Shi, Haipeng Chen arxiv

Inference time latency has remained an open challenge for real world applications of large language models (LLMs). State-of-the-art (SOTA) speculative sampling (SpS) methods for LLMs, like EAGLE-3, use tree-based drafting to explore multiple candidate continuations in parallel. However, the hyperparameters controlling the tree structure are static, which limits flexibility and efficiency across diverse contexts and domains. We introduce Reinforcement learning for Speculative Sampling (Re-SpS), the first reinforcement learning (RL)-based framework for draft tree hyperparameter optimization. Re-SpS dynamically adjusts draft tree hyperparameters in real-time, learning context-aware policies that maximize generation speed by balancing speculative aggression with computational overhead. It leverages efficient state representations from target model hidden states and introduces multi-step action persistence for better context modeling. Evaluation results across five diverse benchmarks demonstrate consistent improvements over the SOTA method EAGLE-3, achieving up to 5.45$\times$ speedup over the backbone LLM and up to 1.12$\times$ speedup compared to EAGLE-3 across five diverse benchmarks, with no loss in output fidelity.

📄 PDF Abstract BibTeX arXiv:2601.12212

Code (0)

등록된 구현이 없습니다.

Tasks

Hyperparameter OptimizationReinforcement Learning

Similar Papers 제목 키워드 기반

RADAR: Accelerate Large Language Model Inference With RL-Based Dynamic Draft Trees

2025-12-16 · Junjie Ma, Jinlong Li arxiv

Inference with modern Large Language Models (LLMs) is expensive and slow, and speculative sampling has emerged as an effective solution to this problem. However, the number of calls to the draft model for generating cand…

Reinforcement Learning

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

2025-02-20 · Weilin Zhao, Tengyu Pan, Xu Han, Yudi Zhang 외

Speculative sampling has emerged as an important technique for accelerating the auto-regressive generation process of large language models (LLMs) by utilizing a draft-then-verify mechanism to produce multiple tokens per…

Language ModelingLanguage Modelling

Towards Reinforcement Learning for Exploration of Speculative Execution Vulnerabilities

2025-02-24 · Evan Lai, Wenjie Xiong, Edward Suh, Mohit Tiwari 외

Speculative attacks such as Spectre can leak secret information without being discovered by the operating system. Speculative execution vulnerabilities are finicky and deep in the sense that to exploit them, it requires …

reinforcement-learningReinforcement Learning

Accelerating Speculative Diffusions via Block Verification

2026-06-11 · Alexander Soen, Hisham Husain, Valentin De Bortoli, Arnaud Doucet arxiv

Speculative decoding speeds up LLM inference by using a draft model to generate tokens, with an acceptance-rejection scheme that ensures that the output matches the target distribution. Adapting this to continuous diffus…

Optimized Speculative Sampling for GPU Hardware Accelerators

2024-06-16 · Dominik Wagner, Seanie Lee, Ilja Baumann, Philipp Seeberger 외

In this work, we optimize speculative sampling for parallel hardware accelerators to improve sampling speed. We notice that substantial portions of the intermediate matrices necessary for speculative sampling can be comp…

Automatic Speech RecognitionGPUspeech-recognitionSpeech Recognition