Overcoming Joint Intractability with Lossless Hierarchical Speculative Decoding

Yuxuan Zhou, Fei Huang, Heng Li, Fengyi Wu, Tianyu Wang, jianwei zhang, Junyang Lin, Zhi-Qi Cheng

International Conference on Learning Representations 2026 · Oral

Overview

Large Language Models (LLMs) have revolutionized various fields, but their widespread deployment is often hindered by the computational cost and latency associated with autoregressive generation. Each token generation step requires a full forward pass through a massive model, making real-time inference challenging. The talk "Overcoming Joint Intractability with Lossless Hierarchical Speculative Decoding", presented on behalf of first author Yuxuan Zhou, addresses this critical bottleneck by proposing an advanced method for multi-token prediction. This work introduces Hierarchical Speculative Decoding (HSD), a novel approach that significantly enhances the efficiency of LLM inference by enabling the joint verification of multiple tokens without compromising the exact distribution of the target model.

Watch on SlidesLive

Visual summary for Overcoming Joint Intractability with Lossless Hierarchical Speculative Decoding by Yuxuan Zhou, Fei Huang, Heng Li, Fengyi Wu, Tianyu Wang, jianwei zhang, Junyang Lin, Zhi-Qi Cheng
Visual summary for Overcoming Joint Intractability with Lossless Hierarchical Speculative Decoding by Yuxuan Zhou, Fei Huang, Heng Li, Fengyi Wu, Tianyu Wang, jianwei zhang, Junyang Lin, Zhi-Qi Cheng

Key moments

  1. 0:44 Core idea of standard lossless speculative decoding
  2. 2:00 Token-wise verification: preserving the target distribution
  3. 4:19 Why joint multi-token verification is intractable
  4. 7:15 Key insight: Asymmetries balance hierarchically across branches
  5. 8:30 Hierarchical speculative decoding algorithm and its challenge
  6. 9:30 Efficient HSD with capped branch resampling
  7. 10:45 Summary: Hierarchical recovery for lossless, efficient decoding

Overcoming Joint Intractability with Lossless Hierarchical Speculative Decoding

Speakers: Yuxuan Zhou; Fei Huang; Heng Li; Fengyi Wu; Tianyu Wang; jianwei zhang; Junyang Lin; Zhi-Qi Cheng

Conference: ICLR 2026

YouTube: https://slideslive.com/39062202

Overview

Large Language Models (LLMs) have revolutionized various fields, but their widespread deployment is often hindered by the computational cost and latency associated with autoregressive generation. Each token generation step requires a full forward pass through a massive model, making real-time inference challenging. The talk "Overcoming Joint Intractability with Lossless Hierarchical Speculative Decoding", presented on behalf of first author Yuxuan Zhou, addresses this critical bottleneck by proposing an advanced method for multi-token prediction. This work introduces Hierarchical Speculative Decoding (HSD), a novel approach that significantly enhances the efficiency of LLM inference by enabling the joint verification of multiple tokens without compromising the exact distribution of the target model.

The core innovation lies in resolving the "joint intractability" problem inherent in previous attempts at multi-token verification. While existing speculative decoding techniques accelerate generation by using a smaller draft model to propose tokens, they typically rely on sequential, token-wise verification. HSD, however, leverages a profound insight into the hierarchical balancing of probability mass to allow for the simultaneous acceptance or rejection of token sequences. This advancement is crucial for pushing the boundaries of efficient LLM deployment, making high-throughput and low-latency applications more feasible for practitioners and infrastructure teams.

Background

▶ Watch: Core idea of standard lossless speculative decoding (0:44)

The generation of text from Large Language Models (LLMs) is fundamentally an autoregressive process, where each subsequent token is predicted based on all previously generated tokens. This sequential nature means that generating a long sequence of text requires hundreds or thousands of individual forward passes through the often enormous target model, leading to significant latency and computational expense. To mitigate this, speculative decoding has emerged as a highly effective technique for accelerating LLM inference.

The foundational idea behind standard lossless speculative decoding, often referred to as token-wise verification, is elegant: instead of sampling tokens one by one directly from the large and computationally expensive target model (denoted by its probability distribution P), a much smaller and faster draft model (denoted by Q) is used to propose a sequence of gamma candidate tokens. This drafting step is significantly cheaper. Once these gamma draft tokens are generated, they are concatenated with the existing prefix and fed into the target model for a single forward pass. This single pass simultaneously computes the target probabilities P for all gamma draft tokens.

The critical phase is then to verify these proposed tokens while ensuring that the final output distribution remains identical to that of the target model P. This is achieved through a probabilistic acceptance rule. For each token X_t in the proposed sequence, it is accepted with a probability defined as min(1, P(X_t) / Q(X_t)). If P(X_t) is greater than or equal to Q(X_t), the token is accepted with probability 1. If P(X_t) is less than Q(X_t), it is accepted with probability P(X_t) / Q(X_t). The probability that X_t is both sampled by Q and accepted by P is min(P(X_t), Q(X_t)), which represents the overlap between the two distributions.

If a token is rejected, a new token must be resampled from the "residual distribution." This residual distribution accounts for the probability mass in P that was not covered by Q (the "missing mass"). Specifically, the resampling probability is proportional to P(X_t) - min(P(X_t), Q(X_t)). This two-step process—drafting and then verifying/resampling—provably recovers the exact target model distribution P. While highly effective, standard token-wise verification processes tokens sequentially. If an early token in the draft sequence is rejected, all subsequent drafted tokens are discarded, even if they might have been "good." This limits the potential for parallelization and the overall speedup, naturally leading to the desire for joint verification of multiple tokens. The challenge, however, is that directly applying the same probabilistic rules to a sequence of tokens (i.e., joint probabilities P(X_1...X_gamma) and Q(X_1...X_gamma)) quickly becomes intractable to recover the target distribution.

Key Findings

▶ Watch: Why joint multi-token verification is intractable (4:19)

The central problem that Hierarchical Speculative Decoding (HSD) addresses is the joint intractability encountered when attempting to verify a sequence of tokens simultaneously, rather than one by one. While token-wise verification works because the excess probability mass from the draft model Q (where Q > P) precisely balances the deficient mass (where P > Q) globally, this balance does not necessarily hold locally within a sequence or a "branch" of possible continuations.

The key finding of this work is the identification and formalization of this local imbalance, termed asymmetry, and the discovery that these asymmetries, while problematic locally, balance hierarchically. Specifically, the authors define asymmetry as the difference between deficient mass and excess mass within a given branch of possible token continuations. When this asymmetry is positive, it signifies that the branch has more probability mass from the target model P than it has a "rejection budget" to spend, meaning local resampling alone cannot recover the target distribution. This is the root of joint intractability.

The breakthrough observation, presented as a theorem, states that if you sum up all the positive asymmetries across all sibling branches at a particular level in the decoding tree, this sum exactly equals the branch divergence one level up in the hierarchy. In essence, the probability mass is not lost; it has simply moved up the hierarchy. This profound insight implies that the target distribution P is recoverable by recursively compensating deficits with excess mass from sibling branches, without ever needing to compute the full, intractable joint distribution over all possible alternative sequences.

This insight forms the basis for the Hierarchical Speculative Decoding (HSD) algorithm. HSD is designed to scan the draft sequence backward to identify the longest accepted prefix. Then, it recursively resamples the remaining positions using the branch distributions at each level, ensuring provable losslessness. A critical refinement, capped branch resampling, further optimizes HSD. This technique caps the prefix ratio, allowing for new acceptance and resampling rules that recover the target distribution with a single resampling step. Crucially, this single step occurs entirely within the already evaluated "accessible branches," thereby avoiding the inefficiency of multiple extra target model calls that a naive hierarchical approach would incur. The result is a method that achieves the acceptance gains of joint verification at the computational cost of standard token-wise verification, marking a significant advancement in LLM inference efficiency.

Technical Deep Dive

▶ Watch: Key insight: Asymmetries balance hierarchically across branches (7:15)

The technical foundation of Hierarchical Speculative Decoding (HSD) builds upon the principles of standard speculative decoding while addressing its limitations in handling joint token verification. To understand HSD, it's essential to first revisit the mechanics of token-wise verification and then delve into the problem of joint intractability that HSD resolves.

In standard speculative decoding, for a given token X_t, the target model P and draft model Q provide probabilities P(X_t) and Q(X_t), respectively. The token is accepted with probability A(X_t) = min(1, P(X_t) / Q(X_t)). If accepted, the process moves to the next token. If rejected (with probability 1 - A(X_t)), a new token X_t' is resampled from a residual distribution R(X_t') proportional to P(X_t') - min(P(X_t'), Q(X_t')). This ensures the final output distribution matches P. The total probability of observing X_t is the sum of its acceptance probability and its resampling probability, which ultimately simplifies to P(X_t), confirming losslessness.

The desire for joint verification arises from the efficiency bottleneck of token-wise verification. If we could verify a sequence of gamma tokens, X_1...X_gamma, as a single unit, we could potentially accelerate inference significantly. A naive approach might be to compute a joint acceptance probability A(X_1...X_gamma) = min(1, Product(P(X_i)) / Product(Q(X_i))). If this sequence is accepted, great. However, if it's rejected, the problem of recovering the target distribution becomes intractable. To resample a new sequence X_1'...X_gamma', one would need to know the full joint probabilities of all alternative sequences over the entire sampling space, which is computationally infeasible. The speaker highlights this by noting, "we are only at the fraction of trajectories along the draft tokens and we do not know the others."

This brings us to the core concept of branches and asymmetry. A branch refers to all possible next-token continuations from a given prefix. The asymmetry within a branch is defined as the deficient mass minus the excess mass.

  • When asymmetry is negative, the branch has more excess mass (where Q > P). In this regime, local resampling, similar to standard token-wise verification, can recover the target distribution.
  • When asymmetry is positive, the branch has more deficient mass (where P > Q). This means the branch "owns more probability mass than it has rejection budget to spend." In this scenario, local resampling fails because the residual distribution would not normalize to a valid probability. This is the precise definition of joint intractability that the paper addresses.

The breakthrough is the key observation: "although the asymmetries do not balance within a branch, they actually balance hierarchically." The fundamental theorem states that if you sum up all the positive asymmetries across all sibling branches at a given level, this sum exactly equals the branch divergence one level up (at their parent branch). This implies that the probability mass is not lost; it has merely "moved up the hierarchy." Consequently, the target model distribution is recoverable by recursively compensating local deficits with excess from sibling branches, using only information already available along the accessible branch, without needing the full joint distribution.

This insight underpins the Hierarchical Speculative Decoding (HSD) algorithm. The process involves:

  1. Backward Scan: Given a draft sequence X_1...X_gamma, HSD first scans backward from gamma to identify the longest prefix X_1...X_tau that can be accepted according to certain rules.
  2. Recursive Resampling: For the remaining positions from tau+1 to gamma, the algorithm recursively resamples tokens using the branch distributions at each level. The output probability of the entire sequence can be decomposed into four clean pieces: drafting, backward rejection, acceptance at the cutoff tau, and subsequent resampling. This decomposition is provably lossless, meaning the final distribution is identical to P.

However, a naive implementation of HSD introduces a new challenge. Resampling at each level (e.g., for X_tau+1_prime) would require evaluating the target model P and draft model Q for a new prefix (e.g., X_1...X_tau X_tau+1_prime). This could lead to up to gamma - tau + 1 extra target model calls in each round, negating some of the efficiency gains.

To overcome this, the authors introduce capped branch resampling. This crucial optimization modifies the acceptance and resampling rules by "capping the prefix ratio at the maximum prefix index." This allows HSD to recover the target model distribution with a single resampling step, and critically, this step occurs entirely within the accessible branches. This means no extra target model calls are needed beyond the initial single forward pass of the target model for the entire draft sequence. In essence, capped branch resampling enables HSD to achieve the full acceptance gains of joint verification while maintaining the low computational overhead (a single target model forward pass per decoding round) characteristic of standard token-wise verification.

Experimental Setup & Results

▶ Watch: Efficient HSD with capped branch resampling (9:30)

The talk does not present specific experimental setups, datasets, benchmarks, or quantitative results for Hierarchical Speculative Decoding (HSD). The speaker explicitly states that "More details about the proposed hierarchical speculative decoding method can be found in the paper," indicating that a deeper dive into empirical validation is reserved for the written publication.

Therefore, this article cannot detail specific performance metrics such as speedup factors, throughput numbers, hardware configurations (e.g., GPU/TPU types), or comparisons against baselines (e.g., standard speculative decoding or greedy decoding). The focus of the presentation is primarily on the theoretical framework, the identification of the joint intractability problem, and the proposed algorithmic solution to achieve lossless joint verification. Without the paper itself, specific numbers regarding model sizes, dataset names, or ablation studies cannot be reported here.

Practical Implications

▶ Watch: Summary: Hierarchical recovery for lossless, efficient decoding (10:45)

The development of Hierarchical Speculative Decoding (HSD), particularly with the capped branch resampling optimization, carries significant practical implications for anyone involved in deploying or utilizing Large Language Models (LLMs). The primary benefit is a substantial improvement in inference efficiency without compromising the fidelity of the generated text.

For practitioners and model builders, HSD offers a powerful tool to accelerate LLM generation. This translates directly to reduced latency for interactive applications (e.g., chatbots, code assistants) and higher throughput for batch processing tasks (e.g., content generation, summarization). By enabling the joint verification of multiple tokens, HSD moves beyond the inherent sequential bottleneck of token-wise verification, allowing for more effective utilization of underlying hardware parallelism. This means that for a given compute budget, more tokens can be generated per second, or the same number of tokens can be generated using fewer computational resources.

For infrastructure teams and deployers, HSD directly addresses the escalating operational costs associated with serving increasingly large LLMs. By reducing the number of expensive target model forward passes per generated token, it lowers the overall computational footprint. This can lead to significant cost savings in cloud computing resources or enable the deployment of larger, more capable models within existing hardware constraints. The guarantee of lossless generation is crucial here; it means that the benefits of speedup do not come at the expense of output quality or adherence to the target model's intended distribution, which is a critical requirement for many production systems.

The tradeoffs involved are primarily in the increased algorithmic complexity of the decoding process itself. While the number of target model calls is minimized, the internal logic for managing branches, calculating asymmetries, and performing capped branch resampling is more intricate than simple token-wise verification. However, this additional algorithmic overhead is generally dwarfed by the computational cost of a single target model forward pass, making the net effect a significant gain in efficiency. HSD also implies a need for careful implementation to ensure correctness and harness the theoretical gains in practice.

In essence, HSD pushes the frontier of efficient LLM inference, making it possible to unlock new applications requiring very high throughput or very low latency, while maintaining the high quality expected from state-of-the-art foundation models.

Key Takeaways

  • Speculative decoding accelerates Large Language Model (LLM) inference by using a smaller draft model (Q) to propose tokens, which are then verified by a larger target model (P).
  • While standard token-wise verification is lossless, it is inherently sequential and limits the potential for parallelization and further speedup.
  • Direct joint verification of token sequences is intractable because local imbalances (termed asymmetry) in probability mass prevent local resampling from recovering the target model distribution.
  • The key insight of this work is that these local asymmetries balance hierarchically across sibling branches, meaning the probability mass is not lost but moved up the decoding tree, enabling global recovery.
  • Hierarchical Speculative Decoding (HSD) leverages this hierarchical balancing to achieve provably lossless joint verification, allowing for more tokens to be processed simultaneously.
  • Capped branch resampling is a critical optimization for HSD, ensuring efficiency by limiting target model calls to a single forward pass per decoding round, matching the cost of standard token-wise verification while delivering the benefits of joint verification.
  • HSD offers substantial gains in LLM inference efficiency and throughput, making LLMs more practical for high-demand, low-latency applications without compromising output quality.

About the Speaker(s)

The talk was presented on behalf of the first author, Yuxuan Zhou, who is currently working on more efficient multi-token prediction techniques within a frontier foundation model pre-training team. Yuxuan is an expert in areas such as Multi-Token Prediction (MTP) attention architectures and related fields. The co-authors of the paper include Fei Huang, Heng Li, Fengyi Wu, Tianyu Wang, Jianwei Zhang, Junyang Lin, and Zhi-Qi Cheng.

Reviews

→ Top-rated talks at International Conference on Learning Representations 2026

All talks from International Conference on Learning Representations 2026