potentialpaper

Max-Speedup Speculative Sampling: A Generic Tree Construction Principle

Guang Huang, Yanan Xiao, Zeyi Wen, Pengyang Wang

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Speculative sampling has emerged as a promising approach for accelerating large language models (LLMs) inference by leveraging a lightweight draft model to propose multiple candidate tokens, which are then verified in parallel by a target model. Recent methods enhance this process by structuring candidate sequences into a token tree for more efficient verification. However, existing tree construction methods overly rely on acceptance length as a proxy for speedup. Such an indirect pursuit renders it challenging to achieve the optimal tree structure for maximum speedup. In this paper, we first revisit prior approaches and find they suffer from two key limitations: analytical intractability and the assumption of node independence. We then redefine the costs and benefits of each tree node, derive a function that characterizes the relationship between time reduction and draft length, and prove its convexity. Finally, we extend this analytical framework to tree structures and propose a general principle for tree construction aimed at maximizing speedup. Applying this principle to state-of-the-art tree-based speculative sampling methods consistently delivers significant gains, improving overall performance by 4% to 14% and achieving end-to-end speedup of 1.97× to 2.68×. The implementation is publicly available at: https://anonymous.4open.science/r/GTCP-CC76/README.md.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

add · history

No versions are recorded yet: its preprint, the venues it went to and what they decided, the camera-ready. Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…