Cactus: Accelerating Auto-Regressive Decoding with Constrained Acceptance Speculative Sampling

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Hao, Yongchang, Mou, Lili
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866914450372558848
author Hao, Yongchang
Mou, Lili
author_facet Hao, Yongchang
Mou, Lili
contents Speculative sampling (SpS) has been successful in accelerating the decoding throughput of auto-regressive large language models by leveraging smaller draft models. SpS strictly enforces the generated distribution to match that of the verifier LLM. This is unnecessarily restrictive as slight variations of the verifier's distribution, such as sampling with top-$k$ or temperature, would also be acceptable. Typical acceptance sampling (TAS) alleviates this issue by accepting more tokens using entropy-based heuristics. However, this approach distorts the verifier distribution, potentially degrading output quality when the verifier encodes critical information. In this work, we formalize the speculative sampling algorithm through the lens of constrained optimization. Based on this formulation, we propose Cactus (constrained acceptance speculative sampling), a method that guarantees controlled divergence from the verifier distribution and increasing acceptance rates. Empirical results across a wide range of benchmarks confirm the effectiveness of our approach.
format Preprint
id arxiv_https___arxiv_org_abs_2604_04987
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Cactus: Accelerating Auto-Regressive Decoding with Constrained Acceptance Speculative Sampling
Hao, Yongchang
Mou, Lili
Machine Learning
Artificial Intelligence
Optimization and Control
Speculative sampling (SpS) has been successful in accelerating the decoding throughput of auto-regressive large language models by leveraging smaller draft models. SpS strictly enforces the generated distribution to match that of the verifier LLM. This is unnecessarily restrictive as slight variations of the verifier's distribution, such as sampling with top-$k$ or temperature, would also be acceptable. Typical acceptance sampling (TAS) alleviates this issue by accepting more tokens using entropy-based heuristics. However, this approach distorts the verifier distribution, potentially degrading output quality when the verifier encodes critical information. In this work, we formalize the speculative sampling algorithm through the lens of constrained optimization. Based on this formulation, we propose Cactus (constrained acceptance speculative sampling), a method that guarantees controlled divergence from the verifier distribution and increasing acceptance rates. Empirical results across a wide range of benchmarks confirm the effectiveness of our approach.
title Cactus: Accelerating Auto-Regressive Decoding with Constrained Acceptance Speculative Sampling
topic Machine Learning
Artificial Intelligence
Optimization and Control
url https://arxiv.org/abs/2604.04987