Global Resolution: Optimal Multi-Draft Speculative Sampling via Convex Optimization

Rahul Krishna Thomas, Arka Pal

Introduction

Large Language Models (LLMs) are notoriously slow during inference because they generate text one token at a time through autoregressive decoding. Speculative sampling offers a powerful workaround: a smaller, faster "draft" model guesses the next token, and a massive "target" model verifies it. If the target model agrees, the token is accepted; otherwise, it is resampled.

The frontier of this technique is multi-draft speculative sampling, where the draft model suggests $n$ tokens simultaneously. To maximize decoding speed, the system needs a verification criterion that accepts a draft token with the highest possible probability. Mathematically, this is framed as the Optimal Transport (OT) problem.

Historically, finding the exact OT solution required solving a Linear Program (OTLP) with $V^n$ variables, where $V$ is the vocabulary size (typically 32k to 128k). For even a modest draft size of $n=5$, the number of variables exceeds the number of atoms in the universe. Consequently, prior approaches relied on slow approximations or were restricted to minimal draft sizes. This paper introduces Global Resolution, a novel algorithm that reduces this exponentially large problem into a manageable convex optimization task, unlocking optimal multi-draft speculative sampling.

The Global Resolution Methodology

The authors overcome the $V^n$ bottleneck through a three-step mathematical reduction:

  1. Max-Flow Reformulation: The researchers first prove that existing theoretical frameworks (like importance sampling and subset selection) are equivalent to a relaxed, exponentially large OTLP. They then reverse-engineer this to reframe the OTLP as a max-flow problem on a massive bipartite network.
  2. Polymatroid Reduction: Leveraging polymatroid theory, the authors exploit the submodular structure of the acceptance probability. This insight allows them to bypass complex constraints and calculate "outer residuals" in near-linear time ($O(V \log V)$).
  3. Convex Minimization: Finally, the remaining problem is reduced to minimizing a truncated convex function. Instead of searching through $V^n$ possibilities, the algorithm uses standard solvers (such as L-BFGS-B) to optimize over a small subset of the vocabulary (at most $V$ variables).

Crucially, Global Resolution is tunable. Practitioners can trade a negligible amount of mathematical optimality for massive gains in speed, ensuring the computational overhead remains strictly bounded.

Experimental Setup

To ensure broad applicability, the researchers evaluated Global Resolution across a diverse suite of benchmarks:

  • GSM8K (Mathematical reasoning)
  • HumanEval (Python code generation)
  • IfEval (Instruction following)
  • PopQA (Knowledge retrieval)
  • WildJailbreak (Safety and adversarial robustness)

Experiments were conducted using state-of-the-art model pairs, specifically Llama-3 (70B target / 8B draft) and Gemma-2 (27B target / 2B draft).

Key Insights and Results

The shift from exponential ($V^n$) to linear ($V$) complexity yields transformative empirical results:

  • Massive Algorithmic Speedup: Global Resolution operates up to 10,000x faster than standard Linear Program solvers.
  • Unprecedented Acceptance Rates: On the Llama-3 models, the algorithm achieves a 90.04% acceptance rate using 10 draft tokens. This significantly outperforms previous exact solvers, which historically capped out around 84% due to computational constraints.
  • Low Overhead: The algorithm adds less than 100 ms of overhead per generated token, making optimal multi-drafting practical for real-world deployment.
  • Wall-Clock Efficiency: When integrated into multi-step frameworks like SpecTr, Global Resolution improved overall decoding speed by nearly 2x compared to vanilla autoregressive baselines.
  • The Power of I.I.D. Sampling: The paper demonstrates that independent and identically distributed (i.i.d.) sampling from the draft model yields higher acceptance rates than "greedy" drafting (picking the top-$n$ most likely tokens) as the search space increases.

Limitations and Future Directions

While Global Resolution represents a major leap forward, the current highly efficient implementation assumes that draft tokens are sampled i.i.d. Extending this logic to non-i.i.d. settings (such as beam search) is theoretically possible but currently incurs higher computational costs.

Additionally, the algorithm exhibits temperature sensitivity. Its truncation method is highly efficient at lower sampling temperatures, but becomes less effective at very high temperatures where token distributions are flatter and more random. Future work will explore advanced gradient descent methods to handle larger truncation sets and aim to seamlessly extend the Global Resolution framework to non-i.i.d. drafting scenarios.

Summary updated

BibTeX
@inproceedings{thomas2026global,
  author = {Rahul Krishna Thomas and Arka Pal},
  title = {{Global Resolution: Optimal Multi-Draft Speculative Sampling via Convex Optimization}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=gpsczXOsHn},
}
Figure