paper-with-me

홈 › Papers

BanditSpec: Adaptive Speculative Decoding via Bandit Algorithms

2025-05-21 · Yunlong Hou, Fengzhuo Zhang, Cunxiao Du, Xuan Zhang, Jiachun Pan, Tianyu Pang, Chao Du, Vincent Y. F. Tan, Zhuoran Yang

Speculative decoding has emerged as a popular method to accelerate the inference of Large Language Models (LLMs) while retaining their superior text generation performance. Previous methods either adopt a fixed speculative decoding configuration regardless of the prefix tokens, or train draft models in an offline or online manner to align them with the context. This paper proposes a training-free online learning framework to adaptively choose the configuration of the hyperparameters for speculative decoding as text is being generated. We first formulate this hyperparameter selection problem as a Multi-Armed Bandit problem and provide a general speculative decoding framework BanditSpec. Furthermore, two bandit-based hyperparameter selection algorithms, UCBSpec and EXP3Spec, are designed and analyzed in terms of a novel quantity, the stopping time regret. We upper bound this regret under both stochastic and adversarial reward settings. By deriving an information-theoretic impossibility result, it is shown that the regret performance of UCBSpec is optimal up to universal constants. Finally, extensive empirical experiments with LLaMA3 and Qwen2 demonstrate that our algorithms are effective compared to existing methods, and the throughput is close to the oracle best hyperparameter in simulated real-life LLM serving scenarios with diverse input prompts.

📄 PDF Abstract BibTeX arXiv:2505.15141

Code (0)

등록된 구현이 없습니다.

Tasks

Text Generation

Methods 이 논문이 사용한 방법론

ADOPT Please enter a description about the method here
ALIGN In the ALIGN method, visual and language representations are jointly trained from noisy image alt-text data. The image and text encoders are learned via contrastive loss…

Similar Papers 제목 키워드 기반

Not-a-Bandit: Provably No-Regret Drafter Selection in Speculative Decoding for LLMs

2025-10-22 · Hongyi Liu, Jiaji Huang, Zhen Jia, Youngsuk Park 외 arxiv

Speculative decoding is widely used in accelerating large language model (LLM) inference. In this work, we focus on the online draft model selection problem in speculative decoding. We design an algorithm that provably c…

CAS-Spec: Cascade Adaptive Self-Speculative Decoding for On-the-Fly Lossless Inference Acceleration of LLMs

2025-10-30 · Zhiyuan Ning, Jiawei Shao, Ruge Xu, Xinfei Guo 외 arxiv

Speculative decoding has become a widely adopted as an effective technique for lossless inference acceleration when deploying large language models (LLMs). While on-the-fly self-speculative methods offer seamless integra…

TapOut: A Bandit-Based Approach to Dynamic Speculative Decoding

2025-11-03 · Aditya Sridhar, Nish Sinnadurai, Sean Lie, Vithursan Thangarasa arxiv

Speculative decoding accelerates LLMs by using a lightweight draft model to generate tokens autoregressively before verifying them in parallel with a larger target model. However, determining the optimal number of tokens…

Multi-Armed Bandits

Token-Driven GammaTune: Adaptive Calibration for Enhanced Speculative Decoding

2025-03-28 · Aayush Gautam, Susav Shrestha, Narasimha Reddy

Speculative decoding accelerates large language model (LLM) inference by using a smaller draft model to propose tokens, which are then verified by a larger target model. However, selecting an optimal speculation length i…

Language ModelingLanguage ModellingLarge Language Model

A-IO: Adaptive Inference Orchestration for Memory-Bound NPUs

2026-04-10 · Chen Zhang, Yan Ding, Haotian Wang, Chubo Liu 외 arxiv

During the deployment of Large Language Models (LLMs), the autoregressive decoding phase on heterogeneous NPU platforms (e.g., Ascend 910B) faces severe memory-bound challenges. This study reveals the ``Model Scaling Par…