# UniVer: A Unified Perspective for Multi-step and Multi-draft Speculative Decoding

*Yepeng Weng, Qiao Hu, Takehisa Yairi*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155949) · [Open on the map](../papers.html#p155949)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Speculative Decoding Optimization](../pgroup/126.md) · Type: new method · Keywords: speculative decoding, multi-step, multi-draft, optimal transport, conditional OT, language model inference

## Summary
UniVer introduces a unified conditional optimal transport verification algorithm that jointly optimizes multi-step and multi-draft speculative decoding, improving acceptance length by 4.2%-8.5% over recursive rejection sampling.

## Explained to a 5-year-old
We want to make a big computer brain faster when it writes words. It guesses words quickly, then checks if the guess is good. The checking can be thought of as moving things around to match the real answer. The new idea looks at many guesses at once and uses a special rule to pick the best ones. This makes the checking faster and more accurate.

## Explained to a 5-year-old, longer
A big computer that writes stories is called a large language model. It writes words one by one, which can be slow. To make it faster, people let it guess many words before checking. The guesses are like a tree, where each branch is a possible next word. Checking each guess can be hard because there are many possibilities. The new idea treats checking as a game of moving guesses to match the real answer. It uses a special rule that looks at the probability of earlier guesses. This rule helps decide which later guesses are most likely to be correct. By using this rule, the computer can accept longer correct sequences faster. The method also makes sure the guesses stay exactly like the original model's output. In simple terms, it is like a smart filter that lets good guesses pass quickly. This makes the computer write faster while keeping the stories just as good.

## For a technical reader
Speculative decoding speeds up LLM inference by generating multiple candidate tokens in parallel and then verifying them against the main model. Traditional methods treat multi-step dependencies and multi-draft branching separately, which limits how many correct tokens can be accepted. The proposed approach reframes verification as a conditional optimal transport problem, using prefix acceptance probabilities as scaling factors to guide draft selection. By composing local transport plans under prefix constraints, the algorithm jointly optimizes across tree levels, guaranteeing lossless verification and optimal acceptance rates. Experiments show a 4.2-8.5 % increase in accepted token length over recursive rejection sampling while preserving exact distribution alignment.

## Problem
Accelerating large language model decoding while preserving exact distribution alignment is challenging, especially when both multi-step dependencies and multi-draft branching are considered. Existing methods treat these aspects separately, leading to suboptimal performance.

## Method
The approach frames tree-based verification as a conditional optimal transport problem, abstracting vertical dependencies via prefix acceptance probabilities that act as scaling factors for horizontal draft selection. It composes local optimal transport plans under prefix constraints to jointly optimize across tree levels, ensuring lossless verification and optimal acceptance rates.

## Results
The approach improves acceptance length by 4.2% to 8.5% over standard recursive rejection sampling without replacement, while maintaining exact distributional alignment with the target model.

## Contributions
It provides a unified perspective that jointly optimizes multi-step and multi-draft speculative decoding via conditional optimal transport, and proves lossless verification and optimal acceptance rates under this framework.

## Research questions this paper is counted under

- [How can speculative decoding achieve high-speed inference without sacrificing generation quality or distribution alignment?](../q/210.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/155949)
