Efficient Adaptive Rejection Sampling for Accelerating Speculative Decoding in Large Language Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Sun, Chendong, Mao, Ali, Xu, Lei, Chen, mingmin
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866915680195969024
author Sun, Chendong
Mao, Ali
Xu, Lei
Chen, mingmin
author_facet Sun, Chendong
Mao, Ali
Xu, Lei
Chen, mingmin
contents Speculative Decoding is a prominent technique for accelerating the autoregressive inference of large language models (LLMs) by employing a fast draft model to propose candidate token sequences and a large target model to verify them in parallel. However, its core component -- the rejection sampling mechanism -- relies on a fixed, context-independent random threshold. This leads to a significant "random rejection" problem in high-uncertainty generation scenarios, where plausible candidate tokens are frequently rejected due to random chance, undermining inference efficiency. This paper introduces Efficient Adaptive Rejection Sampling (EARS), a novel method that dynamically adjusts the acceptance threshold by incorporating the target model's own predictive uncertainty, measured as 1 - max(P_target). By introducing a tolerance term proportional to this uncertainty, EARS intelligently relaxes the acceptance criterion when the model is uncertain, effectively reducing random rejections while maintaining strict standards when the model is confident. Experiments on creative writing and open-domain QA tasks demonstrate that EARS significantly enhances the efficiency of speculative decoding, achieving up to an 18.12% increase in throughput with a negligible 0.84% accuracy drop on the GSM8K benchmark. The method requires no modifications to model architectures and can be seamlessly integrated into existing speculative decoding frameworks.
format Preprint
id arxiv_https___arxiv_org_abs_2512_13194
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Efficient Adaptive Rejection Sampling for Accelerating Speculative Decoding in Large Language Models
Sun, Chendong
Mao, Ali
Xu, Lei
Chen, mingmin
Computation and Language
Artificial Intelligence
68T50
I.2.7
Speculative Decoding is a prominent technique for accelerating the autoregressive inference of large language models (LLMs) by employing a fast draft model to propose candidate token sequences and a large target model to verify them in parallel. However, its core component -- the rejection sampling mechanism -- relies on a fixed, context-independent random threshold. This leads to a significant "random rejection" problem in high-uncertainty generation scenarios, where plausible candidate tokens are frequently rejected due to random chance, undermining inference efficiency. This paper introduces Efficient Adaptive Rejection Sampling (EARS), a novel method that dynamically adjusts the acceptance threshold by incorporating the target model's own predictive uncertainty, measured as 1 - max(P_target). By introducing a tolerance term proportional to this uncertainty, EARS intelligently relaxes the acceptance criterion when the model is uncertain, effectively reducing random rejections while maintaining strict standards when the model is confident. Experiments on creative writing and open-domain QA tasks demonstrate that EARS significantly enhances the efficiency of speculative decoding, achieving up to an 18.12% increase in throughput with a negligible 0.84% accuracy drop on the GSM8K benchmark. The method requires no modifications to model architectures and can be seamlessly integrated into existing speculative decoding frameworks.
title Efficient Adaptive Rejection Sampling for Accelerating Speculative Decoding in Large Language Models
topic Computation and Language
Artificial Intelligence
68T50
I.2.7
url https://arxiv.org/abs/2512.13194