AI
New Framework Unifies Multi-Step and Multi-Draft Verification in Faster Language Model Decoding
Researchers propose UniVer, a unified approach that improves speculative decoding efficiency by jointly optimizing candidate verification across tree levels.
Speculative decoding has emerged as a key technique for accelerating large language models by generating draft tokens quickly and then verifying them against the target model. However, existing verification methods tend to handle multi-draft and multi-step scenarios separately, leaving performance gains on the table when both dimensions intersect.
The Problem with Current Approaches#
Traditional speculative decoding systems typically treat two important aspects in isolation: they either apply flat optimal transport (OT) methods to single-step draft candidates, or they rely on per-token rejection sampling when dealing with tree-structured branching patterns. This compartmentalized approach means that when multiple candidate tokens branch out across multiple steps—creating complex decision trees—the verification process fails to fully leverage the relationships between horizontal branching (different draft choices) and vertical progression (across sequential steps).
UniVer's Unified Solution#
Researchers introduce UniVer, a verification algorithm that reframes tree-based verification as a conditional optimal transport problem. The core innovation is recognizing that dependencies flowing vertically through the tree can be captured using prefix acceptance probabilities, which function as dynamic scaling factors that intelligently guide which horizontal branches to prioritize for acceptance.
By composing local optimal transport plans under prefix constraints, UniVer jointly optimizes decisions at all levels of the candidate tree simultaneously. This coupling approach ensures that high-level branching decisions account for their downstream consequences.
Performance and Properties#
Empirical testing across diverse tasks and language models shows that UniVer boosts acceptance length—a key efficiency metric—by 4.2% to 8.5% compared to standard recursive rejection sampling without replacement. Notably, the method maintains exact distributional alignment with the target model, meaning the output quality and characteristics remain unchanged.
The researchers also prove that UniVer remains lossless under the proposed conditional framework and achieves optimal acceptance rates, grounding the approach in theoretical soundness. This combination of practical improvements and formal guarantees positions the method as a meaningful advancement in making large language model inference more efficient.

