# RheoSampling: Resolving the One-Hot Dilemma in Stochastic Dynamic-Tree Speculative Decoding

*Qiao Hu, Yepeng Weng, Bo Zhang, Takehisa Yairi*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152884) · [OpenReview](https://openreview.net/forum?id=PgNNLmDUZe) · [Open on the map](../papers.html#p152884)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Speculative Decoding Optimization](../pgroup/126.md) · Type: new method · Keywords: speculative decoding, dynamic-tree methods, stochastic sampling, LLM inference, tree construction

## Summary
RheoSampling resolves the one-hot dilemma in stochastic dynamic-tree speculative decoding by assigning a sampled token both a proxy probability for tree construction and its true sampling probability for verification, enabling context-aware top-K expansion and stochastic sampling while preserving losslessness.

## Explained to a 5-year-old
A computer program called a language model tries to guess words one by one. To make it faster, it draws many possible words at once in a tree shape. When the program wants to be random, it picks words based on probabilities, but the tree building and checking use the same probabilities, which makes the random choices too simple. The new idea splits the probabilities: one for building the tree and another for checking the words, so the program can be both fast and random.

## Explained to a 5-year-old, longer
Imagine you are playing a game where you need to guess the next letter in a secret word. The game can show you many possible letters at once to help you go faster, but it also wants to keep the guessing random so it’s not always the same. The old way of doing this uses the same list of probabilities for both showing the letters and checking if they are right, which makes the random choices too simple and the game less fun. The new method separates these two steps: it uses one set of probabilities to decide which letters to show in the tree and a different set to decide which letters are actually correct. This way, the game can be both fast and truly random. It also makes sure that the game never loses information, so you can still play perfectly. The method uses a clever analysis to group similar possibilities together, making the process easier, and it uses a special checking technique that works like matching puzzles to ensure everything fits together. This approach can be used not only for word games but also for other complex problems where you need speed and randomness at the same time.

## For a technical reader
The paper identifies a limitation in dynamic-tree speculative decoding where stochastic sampling collapses due to shared probabilities for tree construction and verification. It proposes a decoupling strategy that assigns a proxy probability for tree expansion and pruning while preserving the true sampling probability for verification, injecting sampled tokens into deterministic top-K slots. An optimal-transport verification and a sparse draft mechanism are introduced, and a lossless guarantee is proven via equivalence-class analysis. Experiments show improved acceptance rates and speedup over prior dynamic-tree methods.

## Problem
Dynamic-tree speculative decoding methods use a single probability distribution for both constructing the decoding tree and verifying tokens, which collapses stochastic sampling into one-hot probabilities and drastically lowers acceptance rates under stochastic decoding.

## Method
The approach decouples tree construction and token verification by giving a sampled token a proxy probability for expansion and pruning and its true probability for verification, injecting it into deterministic top-K slots, and employing an optimal-transport verification strategy with a sparse draft mechanism.

## Results
The approach achieves higher acceptance rates and faster inference compared to existing dynamic-tree methods.

## Contributions
It introduces a decoupling mechanism that separates proxy and true probabilities for stochastic tree construction and verification, provides a lossless guarantee via equivalence-class analysis, and proposes an OT-based verification and sparse draft scheme.

## Practical relevance
It enables faster LLM inference with higher acceptance rates and offers a template for designing efficient stochastic tree decoders.

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/152884)
