Saved in:
Bibliographic Details
Main Authors: Mohri, Clara, Kaplan, Haim, Schuster, Tal, Mansour, Yishay, Globerson, Amir
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2510.19705
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915572024868864
author Mohri, Clara
Kaplan, Haim
Schuster, Tal
Mansour, Yishay
Globerson, Amir
author_facet Mohri, Clara
Kaplan, Haim
Schuster, Tal
Mansour, Yishay
Globerson, Amir
contents Transformer language models generate text autoregressively, making inference latency proportional to the number of tokens generated. Speculative decoding reduces this latency without sacrificing output quality, by leveraging a small draft model to propose tokens that the larger target model verifies in parallel. In practice, however, there may exist a set of potential draft models- ranging from faster but less inaccurate, to slower yet more reliable. We introduce Hierarchical Speculative Decoding (HSD), an algorithm that stacks these draft models into a hierarchy, where each model proposes tokens, and the next larger model verifies them in a single forward pass, until finally the target model verifies tokens. We derive an expression for the expected latency of any such hierarchy and show that selecting the latency-optimal hierarchy can be done in polynomial time. Empirically, HSD gives up to 1.2x speed-up over the best single-draft baseline, demonstrating the practicality of our algorithm in reducing generation latency beyond previous techniques.
format Preprint
id arxiv_https___arxiv_org_abs_2510_19705
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Fast Inference via Hierarchical Speculative Decoding
Mohri, Clara
Kaplan, Haim
Schuster, Tal
Mansour, Yishay
Globerson, Amir
Machine Learning
Transformer language models generate text autoregressively, making inference latency proportional to the number of tokens generated. Speculative decoding reduces this latency without sacrificing output quality, by leveraging a small draft model to propose tokens that the larger target model verifies in parallel. In practice, however, there may exist a set of potential draft models- ranging from faster but less inaccurate, to slower yet more reliable. We introduce Hierarchical Speculative Decoding (HSD), an algorithm that stacks these draft models into a hierarchy, where each model proposes tokens, and the next larger model verifies them in a single forward pass, until finally the target model verifies tokens. We derive an expression for the expected latency of any such hierarchy and show that selecting the latency-optimal hierarchy can be done in polynomial time. Empirically, HSD gives up to 1.2x speed-up over the best single-draft baseline, demonstrating the practicality of our algorithm in reducing generation latency beyond previous techniques.
title Fast Inference via Hierarchical Speculative Decoding
topic Machine Learning
url https://arxiv.org/abs/2510.19705