Manuscript Offprint
arXiv:2610.13171PreSTO: Predictive Subtree Prefetching for Fast LLM Power Sampling
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Nan Jiang , Panagiotis Theodoropoulos and Wei Deng
University of Texas at El Paso, Georgia Institute of Technology, Morgan Stanley
Power sampling improves large language model (LLM) reasoning at test time by sampling from a sharpened version of the base model's distribution. Its sampler, PowerMH, is slow because its Metropolis–Hastings (MH) updates are sequential: each accept/reject decision sets the state from which the next proposal is generated. Prior work reduces this cost by changing the sampler or the model (e.g., sequential Monte Carlo, approximate lookahead, distillation). We propose Predictive SubTree Prefetching (PreSTO), which accelerates PowerMH by prefetching future proposals and provably leaves its MH transition kernel unchanged. PreSTO views future MH outcomes as a tree of accept/reject decisions: in each model call, it generates the proposals of a prefetched subtree of this tree in one batch, then follows the realized path with the original MH acceptance rule. We also observe that MH reaches only a sparse, nearly unary part of each prefetched subtree, we further design a predictive traversal rule that chooses the subtree to maximize the predicted number of completed transitions. Across seven datasets and five base LLMs, PreSTO achieves median speedups of , , and on PowerMH and its follow-ups EntropyCut and MultiTryMH, respectively; on the first two, it makes a median of fewer model calls, each only longer. On LCB V6 with Qwen3.5-9B, the predictive traversal rule is a further faster than the default breadth-first traversal.
Code: https://github.com/nan-jiang-group/PreSTO
Project Page: https://nan-jiang-group.github.io/PreSTO
1. Introduction
Large language models (LLMs) perform strongly on reasoning tasks such as competition mathematics, code generation, and graduate-level science questions (Hendrycks et al., 2021b; Li et al., 2022; Rein et al., 2024). These capabilities are commonly improved by reinforcement learning (RL) post-training with task-specific rewards (Guo et al., 2025; Hu et al., 2025). Recent work suggests that RL post-training largely sharpens the base model's distribution (Chen et al., 2025; He et al., 2025; Shao et al., 2026), and that sampling directly from a sharpened distribution, known as power sampling, can perform comparably to RL post-training without additional training (Karan and Du, 2026).
(a) vs. PowerMH

(b) vs. EntropyCut
(c) vs. MultiTryMH
base LLM
Qwen3-4B
Qwen3.5-4B
Qwen3.5-9B
Gemma4-12B-it
Qwen3-8B
dataset
MATH500
×LCB V6
MBPP
GPQA
HumanEval
+MMLU
AIME 24&25
Figure 1 | Across 105 sampler–LLM–dataset settings, PreSTO (ours) speeds up PowerMH, EntropyCut, and MultiTryMH by a median of , , and , respectively. Each point is one setting, and faster settings lie toward the upper right.
Corresponding Author: njiang@utep.edu
However, PowerMH, the Metropolis–Hastings (MH) sampler for power sampling, is expensive (Ji et al., 2026): on MATH500, it generates up to as many tokens as standard sampling (Karan and Du, 2026), and on LCB V6 with Qwen3.5-9B, it takes as long per prompt as single-sample low-temperature sampling (Case Study 8, Appendix E.8). Follow-up work improves it in four directions: (1) Alternative samplers replace serial MH with sequential Monte Carlo (SMC) or replica exchange (Azizi et al., 2026; He et al., 2026). (2) Efficient approximations of the power target reduce inference cost (Ji et al., 2026; Nguyen et al., 2026). (3) Proposal refinements choose cut indices by token-level entropy to improve mixing (Guo et al., 2026; Zhou et al., 2026). (4) Objective or training changes target the answer marginal (Arzhantsev et al., 2026) or fine-tune the model on power-sampled responses (Tomihari and Sato, 2026).
The main bottleneck of PowerMH is the sequential dependence between MH transitions: in a standard implementation, each proposal must be accepted or rejected before the next is generated from the resulting state. We draw on prefetching in classical MCMC (Angelino et al., 2014; Brockwell, 2006): future MH transitions form a tree of accept/reject outcomes, and each sequential run traces one root-to-leaf path. If the proposals on this path are available in advance, several transitions complete without another model call.
We present Predictive SubTree Prefetching (PreSTO), a framework for accelerating MH-based sharpened sampling by completing several MH transitions per model call. In each round, PreSTO builds a prefetched subtree, generates its feasible proposals in one batched model call, and follows the realized path with the original MH acceptance rule. We prove that PreSTO-PowerMH leaves the MH transition kernel of PowerMH unchanged (Proposition 1). We further observe that, under the power-sharpened target, MH reaches only a sparse, nearly unary part of each prefetched subtree (Figure 4 and Appendix E.4), so a breadth-first traversal spends much of the budget on nodes that MH rarely visits. Motivated by this, we propose a improved predictive traversal rule that allocates the prefetch budget to maximize the expected number of MH transitions completed per call. PreSTO trades fewer serial calls for a costlier batched call; with prefix-cache reuse across requests, total latency falls whenever the saved calls outweigh the extra cost per batch.
In experiments, we apply PreSTO to PowerMH, EntropyCut, and MultiTryMH on seven datasets and five base LLMs. PreSTO is never slower than its baseline in all 105 settings, with median speedups of over PowerMH, over EntropyCut, and over MultiTryMH, and maximum speedups of and over the first two (Figure 1). Our case studies show that (1) the speedup comes from fewer model calls rather than cheaper ones: over PowerMH, PreSTO-PowerMH makes fewer calls, each taking as long (Figure 1); (2) the log-likelihood and confidence of PreSTO outputs pass paired equivalence tests against the baselines in 29 of 38 comparisons, which supports that PreSTO leaves the MH transition kernel unchanged (Figure 6); and (3) the predictive traversal rule is faster than the default breadth-first search (BFS) traversal at all five prefetch budgets tested on LCB V6 with Qwen3.5-9B (Figure 7).
If the proposal is accepted, the chain moves to ; otherwise, .
Power Sharpening for LLMs. Let denote a given prompt and denote the prompt followed by generated tokens. Let denote the distribution of the base LLM. Recently, Karan and Du (2026) proposed to sample from a power-sharpened distribution:
When , the exponent sharpens the base distribution to amplify high-likelihood continuations and suppress low-likelihood ones (Li et al., 2025). Empirical results (Ji et al., 2026; Karan and Du, 2026) show that power sharpening can achieve performance competitive with RL-based post-training methods, such as Group Relative Policy Optimization (GRPO) (Shao et al., 2024).
Exact sampling from in (2) is intractable, as it requires summing over future continuations. Karan and Du (2026) propose PowerMH, an MH-based sampler that proceeds through a sequence of intermediate targets block by block:
where B is the block size and the stage- target raises the base model's distribution over the first generated tokens to the power ,
which equals (2) at the last stage, . At the -th stage, PowerMH runs MH steps targeting the distribution by first extending the sample from the previous stage by one block to produce , and then refining it with K MH steps.
3. Methodology
3.1. Motivation
Prior studies (Azizi et al., 2026; Ji et al., 2026) show that PowerMH incurs substantial inference-time latency. On the MATH500 dataset, Karan and Du (2026) report that PowerMH generates up to as many tokens as standard sampling. In our measurements on LCB V6 with Qwen3.5-9B (Case Study 8, Appendix E.8), PowerMH with , 20, and 30 MH steps takes , , and as long per prompt as low-temperature sampling, which draws a single sample. This latency arises from the inherently sequential nature of MH: the proposal at step can be generated only after the accept/reject outcome at step determines the next state.
We first describe the suffix-resampling procedure in the PowerMH sampler. For notational clarity, let and be the sequence lengths before and after the -th stage. Given the sequence from the previous stage, the sampler first extends it to by sampling a continuation from the proposal LLM, and this extended sequence is the initial MH state . At step with MH state , the sampler draws a cut index , and resamples the suffix from the proposal LLM to construct a candidate :
where the proposal distribution is the base LLM with temperature . The next state is then determined by applying the acceptance rule in (1) to the candidate .
MCMC Prefetching is a form of speculative computation in MCMC that accelerates an inherently sequential process by precomputing multiple possible future MH transitions before the corresponding

(a) PowerMH baseline. Two sequential model calls.
- Collect feasible requests
format: node index, cut index
-
Sample proposals with
-
Sample one path
(b) PreSTO-PowerMH (ours). One batched model call.
Figure 2 | Our subtree prefetching (PreSTO) accelerates PowerMH for transitions . (a) PowerMH performs two sequential rounds of proposal generation with followed by an MH accept/reject decision. (b) Our method collects feasible requests by traversing the prefetching tree, generates proposals (y, z) in one batched call, and then samples a path over the subtree.
accept/reject decisions are realized (Angelino et al., 2014; Brockwell, 2006; Ye and Lu, 2024). In our setting, prefetching is best understood through a depth-K tree, which enumerates all possible accept/reject outcomes over the next K MH steps. Each tree node is associated with a cut index and a proposed candidate. Its left branch corresponds to accepting a newly proposed candidate, whereas its right branch corresponds to a rejection decision. Every realization of K MH transitions corresponds to a root-to-leaf path in the tree. Example 1 explains this construction in detail.
Example 1. Figure 2(a) shows the two-step PowerMH trajectory . In round 1, starting at , the sampler draws cut index , resamples the suffix according to (5) to generate , and accepts the proposal, yielding . In round 2, it draws a new cut index and resamples the suffix of to generate , but rejects this proposal, leaving . These accept/reject decisions select the path in the prefetched subtree in step 3 of Figure 2(b).
To accelerate PowerMH and its follow-up variants, we propose to construct a prefetched subtree that represents multiple possible future MH states and then select one root-to-leaf path using (1).
3.2. Subtree Prefetching for MH-Based Power Sharpening
Our method is composed of (1) collecting feasible suffix-resampling requests from the subtree, (2) sampling proposal sequences and computing acceptance probabilities, and (3) performing MH transitions over the prefetched subtree by moving to the left or right child recursively.
(1) Collecting feasible requests. We use breadth-first search (BFS) to traverse the prefetching tree and collect at most feasible suffix-resampling requests. In the BFS construction, we initialize a queue at the subtree root and traverse nodes in breadth-first order. Each request is a tuple , where identifies the node and denotes its cut index. Expanding a node creates two children: an acceptance (left) child and a rejection (right) child. For each acceptance child , we draw a new cut index and form the request . If this request satisfies Condition 1, we add it to the batch and enqueue for further expansion. Otherwise, we defer the request while retaining its original cut index; if its branch is reached, we evaluate it in a later batch. We enqueue the rejection child but do not add a corresponding request to the batch, because the child retains its parent's state and therefore requires no new proposal. Our BFS implementation enqueues the rejection child even when the node's own request is deferred. The requests that BFS then places below this child are generated and scored, but the MH walk of this batch stops at the deferred node and never reaches them; at on LCB V6 with Qwen3.5-9B, they are 19% of the issued requests (Appendix E.7). The traversal stops when the batch contains requests or the queue is empty. Section 3.3 introduces our predictive traversal rule, which improves on the default BFS traversal by maximizing a predicted expected-transition objective, informed by an empirical property of prefetching trees observed across all datasets in Figure 4.
Condition 1. Let be a node in the prefetching tree with cut index and be its acceptance child with cut index . The request associated with is feasible for the current prefetch batch if .
Condition 1 follows from the suffix-resampling step in (5). Fix a state and a cut , and let be a candidate obtained by suffix resampling at . For any , the preserved prefix satisfies . Hence, for every suffix , autoregressive factorization gives
Consequently, the proposal at cut can be generated in the same batch from the already available prefix , before is available, without changing its conditional distribution. Example 2 visualizes how BFS collects suffix-resampling requests and checks Condition 1.
Example 2. To collect a batch of requests from the tree in step 1 of Figure 2(b), we start BFS at the root node , which represents the current sequence . We assign it the cut index for consistency with Condition 1. We expand the tree in the order . Whenever we visit an acceptance (left) child, we independently sample a new cut index for it. If each sampled cut index satisfies Condition 1, we add the request , followed by the request .
As shown in step 2 of Figure 2(b), resampling the suffix at after cut index leaves the prefix unchanged because . Then, the proposal at is conditioned only on the shared prefix , which is already available at the root node . The two suffix-resampling requests and can therefore be issued in the same model call.
(2) Batched proposal sampling. The collected feasible suffix-resampling requests are submitted in a single batched call to the serving engine of the proposal LLM (e.g., vLLM (Kwon et al., 2023) or SGLang (Zheng et al., 2024)), which returns the resampled suffixes together with their log-probabilities. These log-probabilities are used to compute the MH log-acceptance probability. Because many requests share long prefixes, the KV cache for each shared prefix can be computed once and reused by all requests that extend it. Modern LLM serving engines support this reuse through prefix caching. The following Example 3 explains the detailed calculation procedure. Example 4 (Appendix B.3) visualizes how KV-cache reuse reduces repeated prefix computation across batched requests.
Example 3. In steps 2 and 3 of Figure 2(b), sequence x is associated with the root , while y and z are the newly resampled sequences associated with nodes and , respectively, in the tree shown in step 3. For the request , y is obtained by resampling the suffix from the proposal LLM conditioned on the prefix . Thus, . By (1), the log-acceptance probability for the MH transition
Algorithm 1 PowerMH (Karan and Du, 2026)
Common settings: the base-model distribution , proposal-LLM distribution , power-sharpening coefficient , response length , block size , and MCMC steps per block .
PreSTO-PowerMH-only settings: tree traversal rule, prefetch budget .
Output: the final state after MH steps per block, approximately distributed as .
1: for do 2: Extend to using . 3: for do 4: . 5: . 6: . 7: if then . 8: return .
Algorithm 2 PreSTO-PowerMH (ours)
1: for do 2: Extend to using . 3: . 4: while do 5: . 6: . 7: ; . 8: return .
from to is
(6)
The calculations are performed in the log domain for numerical stability. Each sequence-level term is computed by summing token-level log-probabilities, such as . Appendix B.1 provides the derivation of (6).
(3) MH transitions over the prefetched subtree. Starting from the subtree root, representing the current MH state, we simulate the MH accept/reject decisions sequentially along a single root-to-leaf path. At each node , we follow the left edge with probability and the right edge otherwise. The resulting root-to-leaf path determines a sequence of accept/reject decisions and, consequently, the final MH state. We update the current state to the sequence associated with the realized leaf and retain its token-level log-probabilities under the proposal LLM and the base model for computing MH acceptance probabilities. Example 5 (Appendix B.3) visualizes the above process with the calculated acceptance probabilities from (6).
Algorithms 1 and 2 place the original PowerMH sampler and PreSTO-PowerMH side by side. Both share the same blockwise outer loop and the same acceptance rule; they differ only in how the MH steps of a block are executed. PowerMH issues one model call per MH step and must wait for each accept/reject outcome before forming the next proposal. PreSTO-PowerMH instead issues one batched call per prefetch round and realizes MH steps from it. In Algorithm 2, PREFETCHANDSCORE builds the prefetching tree rooted at the current state , collects at most feasible requests under the tree traversal rule, and generates and scores them in one batched call. It returns the scored prefetched subtree ; deferred requests keep their cut indices across rounds. MHTRANSITION then follows the realized accept/reject path through for at most transitions, the number that remain in the block, and returns the reached state together with the number of completed transitions; PREFETCHANDSCORE likewise caps the tree at depth (Appendix C.1), so the block never exceeds transitions. Proposition 1 further establishes that PreSTO-PowerMH preserves the original MH transition kernel.
3.3. Predictive Subtree Allocation for Efficient Prefetching
Prefetching efficiency depends on the total workload to generate a batch and on the number of MH transitions that the batch completes. We show that MH reaches only a sparse, nearly unary part of the prefetched tree, and use this observation to decide which subtree to prefetch under a budget.

Edge transition probability
Figure 4 | Most edges in prefetched subtrees are -certain. For PreSTO-PowerMH with Qwen3.5-9B and the default BFS traversal, 67%–95% of edges are -certain across all seven datasets, with and .
Our Observation. Fix (we use ), and let be an expanded node with acceptance child and rejection child , reached with probabilities and , respectively. The decision at is an -certain accept if , an -certain reject if , and -uncertain otherwise (see Figure 3 for an example). Rounding the acceptance probability of every -certain decision to 1 or 0 leaves it with a single reachable child, whereas an -uncertain decision keeps both. We call the nodes that remain reachable from the root after this rounding the -rounded subtree.
Figure 7(d) and Appendix E.9 show prefetched subtrees in full, with their -rounded subtrees in orange and the sampled paths in blue. Most nodes lie outside the -rounded subtree, so MH is unlikely to visit them. The default BFS traversal, however, expands decisions regardless of how likely MH is to reach them, and therefore spends much of the budget on nodes that MH rarely visits.

Figure 3 | The -rounded subtree (orange) is sparse and mostly has one child per node within the full prefetched subtree. Blue edges trace a sampled MH path.
The -rounded subtree is predominantly unary because the target distribution in (2) amplifies high-likelihood continuations and suppresses low-likelihood ones, which pushes most acceptance probabilities toward 0 or 1. Figure 4 confirms that most edges are -certain at : pooling the acceptance and rejection edges of all decisions, about 95% of the edges are -certain on LCB V6 (panel (g)). Appendix E.4 reports additional acceptance distributions.
Predictive traversal rule. These observations motivate allocating prefetch requests selectively rather than uniformly. We therefore design a traversal rule that, for the same budget, maximizes the predicted number of completed MH transitions. Before generation, a three-class logistic regression on the cut fraction of each candidate request predicts the -certainty class probabilities of the decision, and we convert them into a branch probability. We then select at most requests (one per expanded node) that maximize the predicted number of completed transitions (Lemma 1), computing this selection by dynamic programming over the acceptance and rejection subtrees (Appendices C.3 and C.4). We call this rule the predictive traversal rule, in contrast to the default BFS traversal of Section 3.2. Case Study 5 in Section 5.2 compares the two rules empirically, with extended results in Appendix E.5.
4. Related Work
We review related work most relevant to PreSTO here; see Appendix A for an extended discussion.
MCMC prefetching. Like prior MCMC-prefetching methods (Angelino et al., 2014; Brockwell, 2006; Ye and Lu, 2024), PreSTO precomputes candidates for future accept/reject outcomes before the realized path is known. The methods differ in how they allocate this speculative work. Brockwell (2006) and Angelino et al. (2014) treat proposal generation as cheap and therefore prefetch many more candidates than the chain eventually uses. LLM proposals are expensive, so PreSTO confines prefetching to a budgeted subtree. Ye and Lu (2024) expand a regular multiproposal tree with a fixed number of proposals and a fixed prefetch depth, whereas PreSTO expands an irregular subtree: it uses Condition 1 to identify feasible suffix requests and prioritizes them by predicted reach probability.
Tree-based speculative decoding (TreeSD) (Cai et al., 2024; Li et al., 2024a,b; Miao et al., 2024) also batches evaluations over a tree to reduce serial model calls, but its tree encodes different objects. In TreeSD, branches are alternative draft-token continuations, and target-model verification commits an accepted token prefix, as in single-chain speculative decoding (Chen et al., 2023; Leviathan et al., 2023; Stern et al., 2018). In PreSTO, branches are the accept/reject outcomes of complete-sequence MH proposals, and following the realized MH decisions reproduces the sequential PowerMH trajectory. The shared tree structure admits similar budget-allocation arguments, but the unit of progress differs: each visited expanded node in PreSTO advances the chain by one MH transition, whether the proposal is accepted or rejected.
Power-sharpening methods. Other work targets the power distribution through SMC-based samplers (Azizi et al., 2026; He et al., 2026), efficient approximations (Ji et al., 2026; Nguyen et al., 2026), refined proposals (Guo et al., 2026; Zhou et al., 2026), or modified objectives and training procedures (Arzhantsev et al., 2026; Tomihari and Sato, 2026). PreSTO takes a different route: it accelerates PowerMH itself, keeping its target, suffix proposal, and MH acceptance rule intact, and changes only the schedule by which proposals are generated and scored.
5. Experiments
We first show that PreSTO speeds up all three sequential samplers across base LLMs and datasets (Table 1). Five case studies (Section 5.2) then examine where the speedup comes from, how the prefetch budget affects it, whether the outputs are preserved, how often MH decisions are -certain, and how the traversal rule matters. Appendix D describes the baselines, base LLMs, datasets, and metrics, and Appendix E reports the full results.
5.1. Acceleration Across Base LLMs and Datasets
We pair each sequential sampler (PowerMH (Karan and Du, 2026), EntropyCut (Zhou et al., 2026), and MultiTryMH (Guo et al., 2026)) with its PreSTO variant. Both samplers in a pair run realized MH transitions on the first 20 prompts of each dataset and generate the full 1,024-token response as a single block on the same vLLM backend, with the base LLM, power exponent , proposal rule, initialization, and prompts held fixed (Appendix D.4).
Table 1 reports the speedup for every base LLM–dataset pair (full metrics in Appendix E.1). We find that (1) PreSTO speeds up all three baselines: it is never slower in the 105 settings, reaches at least in 96, and achieves median speedups of over PowerMH, over EntropyCut, and over MultiTryMH (ranges , , and , respectively). Over MultiTryMH, part of the speedup comes from the implementation rather than from prefetching: sequential
Table 1 | Speedup of PreSTO over sequential samplers: the mean cumulative model-call time of the sampler divided by that of its PreSTO variant (20), on the first 20 prompts with and .
(a) PowerMH vs. PreSTO-PowerMH
| Base LLM | MATH500 | AIME 24&25 | MBPP | GPQA | HumanEval | MMLU | LCB V6 |
|---|---|---|---|---|---|---|---|
| Qwen3-4B | 2.11× | 2.12× | 1.10× | 1.63× | 1.77× | 1.59× | 2.04× |
| Qwen3-8B | 2.23× | 2.29× | 1.00× | 2.12× | 1.81× | 1.50× | 2.05× |
| Qwen3.5-4B | 1.49× | 1.66× | 1.67× | 1.69× | 1.59× | 1.76× | 2.02× |
| Qwen3.5-9B | 2.06× | 2.08× | 1.61× | 2.05× | 1.21× | 1.18× | 1.44× |
| Gemma4-12B-it | 1.74× | 1.76× | 1.44× | 1.67× | 1.71× | 1.52× | 1.95× |
(b) EntropyCut vs. PreSTO-EntropyCut
| Base LLM | MATH500 | AIME 24&25 | MBPP | GPQA | HumanEval | MMLU | LCB V6 |
|---|---|---|---|---|---|---|---|
| Qwen3-4B | 1.76× | 1.69× | 1.19× | 2.09× | 1.88× | 2.03× | 1.65× |
| Qwen3-8B | 1.75× | 1.80× | 1.43× | 1.79× | 2.05× | 2.20× | 1.54× |
| Qwen3.5-4B | 1.57× | 2.06× | 2.46× | 1.96× | 2.06× | 1.65× | 1.70× |
| Qwen3.5-9B | 1.76× | 1.76× | 2.85× | 1.96× | 2.85× | 2.38× | 1.91× |
| Gemma4-12B-it | 2.27× | 1.52× | 2.10× | 2.16× | 2.32× | 2.35× | 1.79× |
(c) MultiTryMH vs. PreSTO-MultiTryMH
| Base LLM | MATH500 | AIME 24&25 | MBPP | GPQA | HumanEval | MMLU | LCB V6 |
|---|---|---|---|---|---|---|---|
| Qwen3-4B | 2.30× | 2.02× | 2.35× | 2.34× | 2.21× | 2.14× | 2.32× |
| Qwen3-8B | 2.08× | 2.02× | 1.97× | 2.05× | 1.91× | 1.92× | 2.08× |
| Qwen3.5-4B | 5.80× | 6.12× | 5.35× | 5.64× | 5.59× | 6.36× | 5.76× |
| Qwen3.5-9B | 7.01× | 6.90× | 5.93× | 6.83× | 6.18× | 6.92× | 6.87× |
| Gemma4-12B-it | 2.27× | 2.54× | 2.18× | 2.13× | 2.17× | 2.33× | 2.22× |
MultiTryMH rescores every candidate at all three temperatures, whereas PreSTO-MultiTryMH reuses the sampled log-probabilities (Appendix E.1). Each PreSTO call completes several MH transitions, which cuts the number of model calls by . (2) The gain is largest when the sequential step is expensive: on MBPP with Qwen3.5-9B, an EntropyCut step (7.62 s) is slower than a PowerMH step (4.97 s), so a PreSTO-EntropyCut call costs only a step and the speedup reaches , versus for PreSTO-PowerMH. (3) The gain is smallest when few prefetched proposals are realized relative to the cost of a call: of the five settings below , the four of PreSTO-PowerMH (MBPP with both Qwen3 models, and HumanEval and MMLU with Qwen3.5-9B) realize only 1.96–2.72 transitions per call, each costing about a PowerMH step, and PreSTO-EntropyCut on MBPP with Qwen3-4B realizes 3.51 per call, each costing an EntropyCut step.
5.2. Case Studies
Case Study 1: Model-call efficiency. We decompose cumulative model-call time into realized MH transitions per model call (chain progress) and time per call (cost). Figure 5 reports these metrics with Qwen3.5-9B on LCB V6, and Figure 1 places all 105 settings by the two factors of the speedup (20): the reduction in model calls and the change in time per call.
From Figure 5, we find that (1) PreSTO-PowerMH is faster than PowerMH: it completes transitions in rather than seconds. (2) the speedup comes from fewer calls, not cheaper ones: each PreSTO-PowerMH call realizes transitions instead of one, but takes rather than seconds. A PreSTO-PowerMH call here takes about 18 seconds,

Figure 5 | Under LCB V6 and Qwen3.5-9B, PreSTO (, default BFS traversal) speeds up PowerMH by in mean cumulative model-call time: it makes fewer model calls (a ratio of means), each taking as long, while the per-prompt transitions per call average 4.96 (Appendix D.2).
Table 2 | Under dataset LCB V6 and base LLM Qwen3.5-9B, raising the prefetch budget from 8 to 20 increases the speedup of PreSTO-PowerMH over PowerMH from to . Transitions per call is divided by the mean number of calls, and time per call is the total call time divided by the total number of calls.
| PowerMH | PreSTO-PowerMH, prefetch budget | |||||
|---|---|---|---|---|---|---|
| 8 | 10 | 12 | 16 | 20 | ||
| MH transitions per model call | 1.00 | 3.59 | 3.94 | 4.27 | 4.63 | 4.91 |
| Time per model call (s) | 5.39 | 16.15 | 16.56 | 17.58 | 18.15 | 18.43 |
| Speedup over PowerMH | 1.00× | 1.20× | 1.28× | 1.31× | 1.38× | 1.44× |
against 10.5–10.9 seconds for Qwen3.5-9B on the other six datasets (Table 7), so the speedup is lower than in those settings. PreSTO-EntropyCut shows the same pattern on LCB V6 (1.91×): transitions per call at rather than seconds; as a ratio of means, it makes fewer calls, each as long. (3) across the 105 settings (Figure 1), what drives the speedup depends on the sampler. The log speedup equals the log reduction in calls minus the log increase in time per call; we split its variance between the two terms by their covariances with it (the shares sum to one). Over PowerMH, the reduction in calls ( ) takes a 95% share ( ), because time per call rises by a nearly constant . Over EntropyCut and MultiTryMH, the time-per-call ratio ( and ) takes 94% and 99% shares ( and 0.99), because the reduction in calls varies less ( and ).
Case Study 2: Effect of prefetch budget. We sweep for PreSTO-PowerMH with the default BFS traversal on LCB V6 with Qwen3.5-9B, against the PowerMH run of Case Study 6; all runs share one host and were recorded within three days (Appendix ??). Table 2 reports chain progress (transitions per call, speedup over PowerMH) and the cost of a call; each budget uses a single seed.
From Table 2, we find that (1) the speedup grows with the budget up to the default : from to 20, transitions per call rise from 3.59 to 4.91 and the speedup from to . (2) each call slows with the budget, from 16.2 to 18.4 seconds against 5.4 seconds for a PowerMH step, so the speedup grows more slowly than the transitions per call; every prefetched proposal is generated whether or not it is realized.
Case Study 3: Likelihood and confidence. PreSTO changes how proposals are scheduled and
(a)

(b)
Figure 6 | Under base LLM Qwen3.5-4B across five datasets, PreSTO-PowerMH and PowerMH produce closely overlapping distributions of base-model log-likelihood and confidence, and the paired TOST finds them equivalent in 7 of the 10 comparisons (shaded).
evaluated, not the MH target, so a sampler and its PreSTO variant should produce terminal traces with the same distribution of token-normalized log-likelihood and confidence under (Karan and Du, 2026). We rescore the terminal traces of each pair under after K = 100 transitions and test each statistic with a paired two one-sided tests (TOST) equivalence test at a margin of 0.2 baseline standard deviations (Appendix E.3).
From Figure 6, we find that (1) with Qwen3.5-4B, the distributions of PreSTO-PowerMH and PowerMH overlap closely on all five datasets, and the test establishes equivalence in 7 of the 10 comparisons; in the other three, both statistics on AIME and confidence on MATH500, the 90% intervals extend past the margin. (2) the result holds beyond this base LLM: across all pairs that pass the rescoring check of Appendix E.3 (8 for PowerMH and 11 for EntropyCut, two statistics each), 29 of the 38 tests establish equivalence, and the pooled differences on both statistics lie within the -SD margin ( ).
Case Study 4: Distribution of -certainty. Figures 15 and 16 in Appendix E.4 report the distribution of -certainty for all five base LLMs under PreSTO-PowerMH and PreSTO-EntropyCut. We find that (1) most decisions are -certain for every base LLM: 56%–95% of edges for the Qwen models and 67%–78% for Gemma4-12B-it under PreSTO-PowerMH, and 60%–92% for the Qwen models and 60%–93% for Gemma4-12B-it under PreSTO-EntropyCut. (2) fewer certain decisions leave more branches in the -rounded tree, so a fixed budget tends to realize fewer transitions per call. This link to runtime is correlational, because the histograms count all scored decisions rather than realized acceptances.
Case Study 5: Effect of traversal rules. We compare the default BFS traversal with the predictive traversal rule, which solves the objective in (17) by dynamic programming. The two rules differ in two ways: the predictive rule weights each candidate by its predicted branch probabilities, and it never selects a request below a deferred one, whereas BFS spends part of its budget on such unreachable requests. On LCB V6 with Qwen3.5-9B, we run PreSTO-PowerMH with both rules at on the same 20 prompts (Appendix E.5). Appendix E.7 details the classifier that the predictive rule uses.
From Figure 7, we find that (1) the predictive rule is faster than BFS at every budget, by in cumulative model-call time (panel (c)), and on 98 of the 100 prompt-budget pairs. (2) the gain comes from fewer model calls: the predictive rule realizes 19%–33% more transitions per call (panel (a)), so it needs fewer calls, while its time per call is 2.6%–4.9% shorter (panel (b)). (3) the gain is largest at ( ), where transitions per call rise from 4.91 to 6.54. Panel (d) shows the first prefetched subtree of prompt 0 under both rules, and Appendix E.5 shows three more prompts.
default BFS traversal
predictive traversal rule
(a) Transitions per call

(b) Time per call
(c) Model-call time
(d) First prefetched subtree of one prompt
Prompt 0

MH 0 → 2
MH 0 → 2
MH 0 → 2
MH 0 → 2
MH 0 → 2
Prompt 0
Predictive
MH 0 → 3
MH 0 → 3
MH 0 → 3
MH 0 → 3
MH 0 → 3
Figure 7 | Predictive traversal rule against BFS for PreSTO-PowerMH on LCB V6 with Qwen3.5-9B. (a–c) The predictive rule is faster at every prefetch budget because it realizes 19%–33% more MH transitions per call; points in (a, b) are ratios of totals over the 20 prompts, and error bars in (c) show SD over prompts. (d) First prefetched subtree of prompt 0, a favorable case: 3 transitions against 2 at every budget (prompts 1–3 in Appendix E.5). Label MH 0 → k: the sampled path advances the chain from step 0 to k. Solid left edges: acceptance; dashed right edges: rejection; orange: -rounded subtree ( ); blue: sampled path (endpoint double-bordered); gray: other prefetched branches.
Three further case studies compare serving engines (Case Study 6, Appendix E.6), predict -certainty before generation (Case Study 7, Appendix E.7), and compare PreSTO-PowerMH with test-time baselines (Case Study 8, Appendix E.8); Appendix E.9 shows an example prefetched-subtree trajectory.
6. Conclusion
We study how to accelerate MH-based power sampling, whose sequential accept/reject decisions force one model call per MH transition. We propose PreSTO, which prefetches proposals for a subtree of future MH states in one batched call and follows the realized path with the original acceptance rule; for PowerMH, this leaves the MH transition kernel unchanged (Proposition 1). Because the part of a prefetched subtree reached by MH is sparse and nearly unary, our predictive traversal rule allocates the prefetch budget by dynamic programming. In experiments, across five base LLMs and seven datasets, PreSTO is never slower than its baseline and achieves median speedups of over PowerMH, over EntropyCut, and over MultiTryMH. The speedup comes from fewer model calls, at a cost of at most 3.1% of the preallocated KV-cache pool, and the log-likelihood and confidence of the outputs pass paired equivalence tests against the baselines in 29 of 38 comparisons. The predictive traversal rule adds a further speedup over the default BFS traversal on LCB V6 with Qwen3.5-9B.
Acknowledgments
We thank the CoreWeave AI cloud platform for supporting part of the computational resources used in this work. Nan Jiang acknowledges support from the Texas Advanced Computing Center (TACC) under award CCR25054. Panagiotis Theodoropoulos was partly supported by the Defense Advanced Research Projects Agency (DARPA) through the Artificial Intelligence Quantified (AIQ) program, under Cooperative Agreement No. HR00112520010. The views, opinions, and/or findings expressed are those of the authors and should not be interpreted as representing the official views or policies of the Department of Defense or the U.S. Government.
References
Minoo Ahmadi, Seyedarmin Azizi, Erfan Baghaei Potraghloo, Mehdi Kamal, and Massoud Pedram. Chophthin-Consensus Power Sampling: A Diversity-Preserving Approach to LLM Decoding. In COLM 2026 Workshop on Efficient Reasoning, 2026.
Elaine Angelino, Eddie Kohler, Amos Waterland, Margo I. Seltzer, and Ryan P. Adams. Accelerating MCMC via Parallel Predictive Prefetching. In Proc. of the Conference on Uncertainty in Artificial Intelligence (UAI), pages 22–31, 2014.
Aleksei Arzhantsev, Otmane Sakhi, and Nicolas Chopin. Self-Consistency via Marginal Sharpening. arXiv preprint arXiv:2605.28142, 2026.
Jacob Austin, Augustus Odena, Maxwell I. Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie J. Cai, Michael Terry, Quoc V. Le, and Charles Sutton. Program Synthesis with Large Language Models. arXiv preprint arXiv:2108.07732, 2021.
Seyedarmin Azizi, Erfan Baghaei Potraghloo, Minoo Ahmadi, Souvik Kundu, and Massoud Pedram. Power-SMC: Low-Latency Sequence-Level Power Sampling for Training-Free LLM Reasoning. arXiv preprint arXiv:2602.10273, 2026.
A. E. Brockwell. Parallel Markov chain Monte Carlo Simulation by Pre-Fetching. Journal of Computational and Graphical Statistics, 15(1):246–261, 2006.
Tianle Cai, Yuhong Li, Zhengyang Geng, Hongwu Peng, Jason D. Lee, Deming Chen, and Tri Dao. Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads. In Proc. of the International Conference on Machine Learning (ICML), volume 235, pages 5209–5235, 2024.
Ben Calderhead. A General Construction for Parallelizing Metropolis–Hastings Algorithms. Proceedings of the National Academy of Sciences, 111(49):17408–17413, 2014.
Charlie Chen, Sebastian Borgeaud, Geoffrey Irving, Jean-Baptiste Lespiau, Laurent Sifre, and John Jumper. Accelerating Large Language Model Decoding with Speculative Sampling. arXiv preprint arXiv:2302.01318, 2023.
M. Chen, J. Tworek, H. Jun, Q. Yuan, H. P. de Oliveira Pinto, J. Kaplan, H. Edwards, Y. Burda, N. Joseph, G. Brockman, A. Ray, R. Puri, G. Krueger, M. Petrov, H. Khlaaf, G. Sastry, P. Mishkin, B. Chan, S. Gray, N. Ryder, M. Pavlov, A. Power, L. Kaiser, M. Bavarian, C. Winter, P. Tillet, F. P.
Such, D. Cummings, M. Plappert, F. Chantzis, E. Barnes, A. Herbert-Voss, W. H. Guss, A. Nichol, A. Paino, N. Tezak, J. Tang, I. Babuschkin, S. Balaji, S. Jain, W. Saunders, C. Hesse, A. N. Carr, J. Leike, J. Achiam, V. Misra, E. Morikawa, A. Radford, M. Knight, M. Brundage, M. Murati, K. Mayer, P. Welinder, B. McGrew, D. Amodei, S. McCandlish, I. Sutskever, and W. Zaremba. Evaluating Large Language Models Trained on Code. arXiv preprint arXiv:2107.03374, 2021.
Zhiqi Chen, Rui Lu, Andrew Zhao, Zhaokai Wang, Yang Yue, Shiji Song, and Gao Huang. Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model? In Advances in Neural Information Processing Systems (NeurIPS), 2025.
Zhuoming Chen, Avner May, Ruslan Svirschevski, Yuhsun Huang, Max Ryabinin, Zhihao Jia, and Beidi Chen. Sequoia: Scalable and Robust Speculative Decoding. volume 37, 2024.
Li Du, Afra Amini, Lucas Torroba Hennigen, Xinyan Velocity Yu, Holden Lee, Jason Eisner, and Ryan Cotterell. Principled Gradient-Based MCMC for Conditional Sampling of Text. In Proc. of the International Conference on Machine Learning (ICML), volume 235, pages 11663–11685, 2024.
Weihua Du, Yiming Yang, and Sean Welleck. Optimizing Temperature for Language Models with Multi-Sample Inference. In Proc. of the International Conference on Machine Learning (ICML), volume 267, 2025.
Yahya Emara, Mauricio Barba da Costa, Chi-Chih Chang, Cameron Freer, Tim Vieira, Ryan Cotterell, and Mohamed S. Abdelfattah. Faster LLM Inference via Sequential Monte Carlo. arXiv preprint arXiv:2604.15672, 2026.
Gonçalo Rui Alves Faria, Sweta Agrawal, António Farinhas, Ricardo Rei, José Guilherme Camargo de Souza, and André F. T. Martins. QUEST: Quality-Aware Metropolis-Hastings Sampling for Machine Translation. In Advances in Neural Information Processing Systems (NeurIPS), volume 37, pages 89042–89068, 2024.
Jarad Forristal, Fatemehsadat Mireshghallah, Greg Durrett, and Taylor Berg-Kirkpatrick. A Block Metropolis-Hastings Sampler for Controllable Energy-based Text Generation. In Proc. of the Annual Conference on Computational Natural Language Learning (CoNLL), pages 403–413, 2023.
Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Ruoyu Zhang, Runxin Xu, Qihao Zhu, Shirong Ma, Peiyi Wang, Xiao Bi, et al. DeepSeek-R1: Incentivizing reasoning capability in LLMs via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025.
Hong Guo, Nianhui Guo, Christoph Meinel, and Haojin Yang. Sample Where You Struggle: Sharpening Base Model Reasoning via Entropy-Guided Power Sampling. arXiv preprint arXiv:2606.09926, 2026.
W. K. Hastings. Monte Carlo sampling methods using Markov chains and their applications. Biometrika, 57(1):97–109, 1970.
Andre He, Daniel Fried, and Sean Welleck. Rewarding the unlikely: Lifting GRPO beyond distribution sharpening. arXiv preprint arXiv:2506.02355, 2025.
Jiajun He, Zongyu Guo, José Miguel Hernández-Lobato, and Yuanqi Du. Recipes for Steering and Scaling LLMs via Sampling. arXiv preprint arXiv:2608.26120, 2026.
Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring Massive Multitask Language Understanding. In Proc. of the International Conference on Learning Representations (ICLR), 2021a.
Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring Mathematical Problem Solving With the MATH Dataset. In NeurIPS Datasets and Benchmarks, 2021b.
Jingcheng Hu, Yinmin Zhang, Qi Han, Daxin Jiang, Xiangyu Zhang, and Heung-Yeung Shum. Open-Reasoner-Zero: An open source approach to scaling up reinforcement learning on the base model. arXiv preprint arXiv:2503.24290, 2025.
Naman Jain, King Han, Alex Gu, Wen-Ding Li, Fanjia Yan, Tianjun Zhang, Sida Wang, Armando Solar-Lezama, Koushik Sen, and Ion Stoica. LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code. In Proc. of the International Conference on Learning Representations (ICLR), 2025.
Xiaotong Ji, Rasul Tutunov, Matthieu Zimmer, and Haitham Bou Ammar. Scalable Power Sampling: Unlocking Efficient, Training-Free Reasoning for LLMs via Distribution Sharpening. In Proc. of the International Conference on Machine Learning (ICML), 2026.
Aayush Karan and Yilun Du. Reasoning with Sampling: Your Base Model is Smarter Than You Think. In Proc. of the International Conference on Learning Representations (ICLR), 2026.
Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. Efficient Memory Management for Large Language Model Serving with PagedAttention. In Proc. of the ACM Symposium on Operating Systems Principles (SOSP), pages 611–626, 2023.
Daniël Lakens. Equivalence Tests: A Practical Primer for t Tests, Correlations, and Meta-Analyses. Social Psychological and Personality Science, 8(4):355–362, 2017.
Yaniv Leviathan, Matan Kalman, and Yossi Matias. Fast Inference from Transformers via Speculative Decoding. In Proc. of the International Conference on Machine Learning (ICML), volume 202, pages 19274–19286, 2023.
Marvin Li, Aayush Karan, and Sitan Chen. Blink of an eye: a simple theory for feature localization in generative models. In Proc. of the International Conference on Machine Learning (ICML), 2025.
Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. EAGLE-2: Faster Inference of Language Models with Dynamic Draft Trees. In Proc. of the Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 7421–7432, 2024a.
Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty. In Proc. of the International Conference on Machine Learning (ICML), volume 235, pages 28935–28948, 2024b.
Yujia Li, David Choi, Junyoung Chung, Nate Kushman, Julian Schrittwieser, Rémi Leblond, Tom Eccles, James Keeling, Felix Gimeno, Agustin Dal Lago, Thomas Hubert, Peter Choy, Cyprien de Masson d'Autume, Igor Babuschkin, Xinyun Chen, Po-Sen Huang, Johannes Welbl, Sven Gowal, Alexey Cherepanov, James Molloy, Daniel J. Mankowitz, Esme Sutherland Robson, Pushmeet Kohli, Nando de Freitas, Koray Kavukcuoglu, and Oriol Vinyals. Competition-level code generation with AlphaCode. Science, 378(6624):1092–1097, 2022.
Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let's Verify Step by Step. In Proc. of the International Conference on Learning Representations (ICLR), 2024.
Jun S. Liu, Faming Liang, and Wing Hung Wong. The Multiple-Try Method and Local Optimization in Metropolis Sampling. Journal of the American Statistical Association, 95(449):121–134, 2000.
Zibin Meng, Peng Xie, and Kani Chen. Depth-Entropy Guided Sampling for Training-Free LLM Reasoning. arXiv preprint arXiv:2607.09693, 2026.
Nicholas Metropolis, Arianna W. Rosenbluth, Marshall N. Rosenbluth, Augusta H. Teller, and Edward Teller. Equation of state calculations by fast computing machines. Journal of Chemical Physics, 21(6):1087–1092, 1953.
Xupeng Miao, Gabriele Oliaro, Zhihao Zhang, Xinhao Cheng, Zeyu Wang, Zhengxin Zhang, Rae Ying Yee Wong, Alan Zhu, Lijie Yang, Xiaoxiang Shi, Chunan Shi, Zhuoming Chen, Daiyaan Arfeen, Reyna Abhyankar, and Zhihao Jia. SpecInfer: Accelerating Large Language Model Serving with Tree-based Speculative Inference and Verification. In Proc. of the ACM International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS), pages 932–949, 2024.
Fatemehsadat Mireshghallah, Kartik Goyal, and Taylor Berg-Kirkpatrick. Mix and Match: Learning-Free Controllable Text Generation using Energy Language Models. In Proc. of the Annual Meeting of the Association for Computational Linguistics (ACL), pages 401–415, 2022.
Sarthak Mittal, Leo Gagnon, and Guillaume Lajoie. Beyond Distribution Sharpening: The Importance of Task Rewards. In Proc. of the Annual Conference on Language Modeling (COLM), 2026.
Radford M. Neal. Annealed importance sampling. Statistics and Computing, 11(2):125–139, 2001.
Tu Nguyen, Matthieu Zimmer, Rasul Tutunov, Xiaotong Ji, and Haitham Bou Ammar. The Model Knows, the Decoder Finds: Future Value Guided Particle Power Sampling. In ICML 2026 Workshop on Structured Probabilistic Inference & Generative Modeling, 2026.
David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanzhe Pang, Julien Dirani, Julian Michael, and Samuel R. Bowman. GPQA: A graduate-level Google-proof Q&A benchmark. In Proc. of the Annual Conference on Language Modeling (COLM), 2024.
Malcolm Sambridge. A Parallel Tempering algorithm for probabilistic sampling and optimization. Geophysical Journal International, 196(1):357–374, 2014.
Hannah Scheufele, Peter Blohm, and Vikas Garg. Temperature Scaling in Discrete Sequence (Language) Models. In Proc. of the International Conference on Machine Learning (ICML), volume 306, 2026.
Donald J. Schuirmann. A comparison of the two one-sided tests procedure and the power approach for assessing the equivalence of average bioavailability. Journal of Pharmacokinetics and Biopharmaceutics, 15(6):657–680, 1987.
Rulin Shao, Shuyue Stella Li, Rui Xin, Scott Geng, Yiping Wang, Sewoong Oh, Simon Shaolei Du, Nathan Lambert, Sewon Min, Ranjay Krishna, Yulia Tsvetkov, Hannaneh Hajishirzi, Pang Wei Koh, and Luke Zettlemoyer. Spurious Rewards: Rethinking Training Signals in RLVR. In Proc. of the International Conference on Machine Learning (ICML), 2026.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models. arXiv preprint arXiv:2402.03300, 2024.
Mitchell Stern, Noam Shazeer, and Jakob Uszkoreit. Blockwise Parallel Decoding for Deep Autoregressive Models. In Advances in Neural Information Processing Systems (NeurIPS), pages 10107–10116, 2018.
Nisan Stiennon, Long Ouyang, Jeffrey Wu, Daniel M. Ziegler, Ryan Lowe, Chelsea Voss, Alec Radford, Dario Amodei, and Paul F. Christiano. Learning to Summarize with Human Feedback. In Advances in Neural Information Processing Systems (NeurIPS), 2020.
Ingvar Strid. Efficient parallelisation of Metropolis–Hastings algorithms using a prefetching approach. Computational Statistics & Data Analysis, 54(11):2814–2835, 2010.
Hanshi Sun, Momin Haider, Ruiqi Zhang, Huitao Yang, Jiahao Qiu, Ming Yin, Mengdi Wang, Peter L. Bartlett, and Andrea Zanette. Fast Best-of-N Decoding via Speculative Rejection. In Advances in Neural Information Processing Systems (NeurIPS), volume 37, pages 32630–32652, 2024.
Akiyoshi Tomihari and Issei Sato. Power Distribution Bridges Sampling, Self-Reward RL, and Self-Distillation. arXiv preprint arXiv:2605.04542, 2026.
Sergey Troshin, Wafaa Mohammed, Yan Meng, Christof Monz, Antske Fokkens, and Vlad Niculae. Control the Temperature: Selective Sampling for Diverse and High-Quality LLM Outputs. In Proc. of the Annual Conference on Language Modeling (COLM), 2025.
Heming Xia, Zhe Yang, Qingxiu Dong, Peiyi Wang, Yongqi Li, Tao Ge, Tianyu Liu, Wenjie Li, and Zhifang Sui. Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decoding. In Findings of the Association for Computational Linguistics (ACL), pages 7655–7671, 2024.
Guifeng Ye and Shaowen Lu. Prefetching-based Multiproposal Markov Chain Monte Carlo Algorithm. IEEE Transactions on Artificial Intelligence, 5(9):4493–4505, 2024.
Johannes Zenn and Jonas Geiping. When are likely answers right? On Sequence Probability and Correctness in LLMs. In ICML 2026 Workshop on Structured Probabilistic Inference & Generative Modeling, 2026.
Stephen Zhao, Rob Brekelmans, Alireza Makhzani, and Roger Baker Grosse. Probabilistic Inference in Language Models via Twisted Sequential Monte Carlo. In Proc. of the International Conference on Machine Learning (ICML), volume 235, pages 60704–60748, 2024.
Lianmin Zheng, Liangsheng Yin, Zhiqiang Xie, Chuyue Sun, Jeff Huang, Cody Hao Yu, Shiyi Cao, Christos Kozyrakis, Ion Stoica, Joseph E. Gonzalez, Clark W. Barrett, and Ying Sheng. SGLang: Efficient Execution of Structured Language Model Programs. In Advances in Neural Information Processing Systems (NeurIPS), 2024.
Felix Zhou, Anay Mehrotra, and Quanquan C. Liu. Reasoning with Sampling: Cutting at Decision Points. arXiv preprint arXiv:2605.30327, 2026.
Yuqi Zhu, Jia Li, Ge Li, Yunfei Zhao, Jia Li, Zhi Jin, and Hong Mei. Hot or Cold? Adaptive Temperature Sampling for Code Generation with Large Language Models. In Proc. of the AAAI Conference on Artificial Intelligence (AAAI), pages 437–445, 2024.
Contents
1 Introduction 1
2 Preliminaries 2
3 Methodology 3
3.1 Motivation 3
3.2 Subtree Prefetching for MH-Based Power Sharpening 4
3.3 Predictive Subtree Allocation for Efficient Prefetching 6
4 Related Work 8
5 Experiments 8
5.1 Acceleration Across Base LLMs and Datasets 8
5.2 Case Studies 9
6 Conclusion 12
A Extended Related Work 19
A.1 Sampling from the Power Distribution 19
A.2 Tree-based Speculative Decoding 20
A.3 MCMC Prefetching 21
B Implementation and Correctness of PreSTO 22
B.1 Computing Log-Acceptance Probabilities 22
B.2 Exactness of Subtree Prefetching 23
B.3 Examples of Prefix Sharing and MH Transitions through the Prefetched Subtree 24
C Prefetch Tree Selection under a Request Budget 26
C.1 Setup and Notation 26
C.2 The Transition-Count Objective 27
C.3 Predictive Subtree Allocation 28
C.4 Optimal Budget Allocation via Dynamic Programming 30
D Experimental Settings 32
D.1 Baselines, Datasets, and Base LLMs 32
D.2 Evaluation Metrics 33
D.3 Implementation Environment 34
D.4 Hyperparameter Configurations 34
E Additional Experimental Results 34
E.1 Full results: Acceleration across base LLMs and datasets 35
E.2 Case Study 2: Effect of prefetch budget 41
E.3 Case Study 3: Likelihood and confidence 41
E.4 Case Study 4: Distribution of -certainty 43
E.5 Case Study 5: Effect of traversal rules 46
E.6 Case Study 6: Effect of different serving engines 48
E.7 Case Study 7: Predicting -certainty before generation 48
E.8 Case Study 8: Comparison with test-time baselines 51
E.9 Example prefetched-subtree trajectory 52
A. Extended Related Work
PreSTO draws on three lines of work. Power-sampling methods define the target and the samplers that PreSTO accelerates. Speculative decoding and MCMC prefetching are two established ways to break serial dependence during sampling. For each line, we summarize the problem it addresses, the mechanism its methods share, and the trade-offs among them.
A.1. Sampling from the Power Distribution
Power sampling draws complete responses from with (Karan and Du, 2026). Raising the sequence likelihood to a power concentrates probability on responses that the base model finds likely as a whole, the same construction that annealing and parallel tempering use to control how concentrated a target is (Neal, 2001; Sambridge, 2014).
Why token-level sharpening is not enough. Token-level temperature scaling and filtering (Du et al., 2025; Troshin et al., 2025; Zhu et al., 2024) sharpen each next-token distribution and renormalize at every prefix. The exact next-token conditional of the power target is instead
Token-level temperature keeps the first factor and drops . For , is large when the continuations of a prefix concentrate on a few high-likelihood completions, so the power target prefers such prefixes, whereas low-temperature decoding cannot distinguish them. Because sums over exponentially many continuations, every power-sampling method must avoid it, approximate it, or change the target. Existing methods follow three routes.
MCMC over complete sequences. MH needs the target only up to a constant, so it avoids entirely: it compares complete sequences through the ratio . The main design choice is the proposal. Earlier MCMC samplers for controlled generation with energy-based targets edit one position at a time and need many steps to make coordinated changes across a sequence (Mireshghallah et al., 2022). Regenerating a complete sequence or a suffix with an LLM instead makes large, coherent edits whose proposal probabilities come from the same forward pass (Faria et al., 2024; Forristal et al., 2023). PowerMH applies suffix regeneration to with a blockwise schedule (Karan and Du, 2026), and later variants keep this structure while changing where cuts are placed or how many candidates each step considers. EntropyCut (Zhou et al., 2026) places cuts using token entropy, and MultiTryMH, a variant of the entropy-guided sampler of Guo et al. (2026), draws several candidate suffixes per step and moves with a multiple-try Metropolis update (Liu et al., 2000). Other variants add terms to the target (Meng et al., 2026). These samplers share three costs: each transition regenerates on average about half of the response when the cut is uniform, each stage needs many transitions, and transitions are serial because every proposal is conditioned on the current state.
Forward approximations. Forward methods generate left to right and estimate rather than drop it. Particle methods propagate a population of partial sequences from a tractable proposal, such as low-temperature decoding, reweight them at every step by the ratio of target to proposal, and resample to discard low-weight prefixes. Without twisting, these intermediate weights ignore the future term ; twisted variants learn approximations of so that the intermediate weights account for it (Zhao et al., 2024). For power targets, these samplers are consistent as the number of particles grows (Azizi et al., 2026; He et al., 2026), and in practice their quality depends on resampling rules that prevent weight degeneracy and particle collapse (Ahmadi et al., 2026). Lookahead methods instead estimate directly by sampling a few continuations for each candidate token, and use the estimate to correct the next-token distribution (Ji et al., 2026; Nguyen et al., 2026). Both families parallelize naturally across particles or rollouts. Their bias and variance, however, depend on the number of particles or rollouts, and they never revise a token; resampling only drops or duplicates whole prefixes.
Changing or amortizing the target. A third route changes what is sampled or moves the cost into training. Sharpening the sequence likelihood can favor a single high-likelihood reasoning trace over an answer supported by many distinct traces, so marginal sharpening sharpens the distribution over final answers instead (Arzhantsev et al., 2026). Distillation-style methods fine-tune the model so that ordinary sampling approximates a powered or low-temperature sequence distribution, which removes the inference-time overhead at the price of training (Scheufele et al., 2026; Tomihari and Sato, 2026). Evidence on when sharpening helps is mixed: raising sequence likelihood through decoding need not improve correctness (Zenn and Geiping, 2026), and reward-trained models can gain in ways that sharpening does not recover (Mittal et al., 2026).
A.2. Tree-based Speculative Decoding
Tree-based speculative decoding (TreeSD) is the closest counterpart to PreSTO in the speculative-decoding literature, because it also spends extra parallel computation on work that may be discarded in order to reduce the number of serial model calls. We first describe the draft-then-verify scheme that TreeSD builds on, then how trees extend it, and finally how PreSTO differs.
Draft-then-verify decoding. Autoregressive decoding calls the target model once per token, and these calls cannot be batched because each token depends on the previous one. Speculative decoding breaks this dependence with a cheap drafter that proposes several future tokens (Stern et al., 2018; Xia et al., 2024). The target model then scores all of them in a single forward pass, and a verification rule commits the longest accepted prefix together with one token drawn from a corrected distribution (Chen et al., 2023; Leviathan et al., 2023). With the rejection-based rule, the committed tokens follow the target model's distribution exactly, so drafter quality affects only speed. Every pass commits at least one token, and the expected number of tokens committed per pass grows with the drafter's acceptance rate.
Drafting a tree of continuations. A chain of draft tokens is truncated at its first rejected token, so one early rejection wastes all later draft work. Tree-based methods instead draft several alternative continuations at each position, and verify all branches in one pass with a tree-structured attention mask, so that each branch attends only to its own ancestors (Miao et al., 2024). The target model can then commit whichever branch is accepted furthest, which raises the expected number of tokens committed per pass at the cost of scoring more candidate tokens. In all of these methods, the nodes of the tree are draft tokens, the branching reflects uncertainty about what the target model will say next, and a verification pass ends with a single committed prefix.
Better drafters. A second line of work raises the acceptance rate of the drafter itself. Extra decoding heads attached to the target model draft several positions at once without a separate drafter model (Cai et al., 2024), and autoregression at the level of the target model's features gives a drafter that tracks the target more closely (Li et al., 2024b). Better drafters shift the balance between how many tokens are drafted and how many are accepted, and so change which tree shapes are worth verifying.
Tree construction as budget allocation. For a fixed verification budget, i.e., a fixed number of nodes per pass, a tree can take many shapes, so tree construction is a budget-allocation problem. Early methods use a static shape (Cai et al., 2024; Miao et al., 2024). Later methods add branches where the drafter is confident, since those nodes are more likely to be accepted (Li et al., 2024a), or choose the tree shape by dynamic programming over estimated acceptance rates (Chen et al., 2024). These approaches share one principle: under a node budget, expand the nodes whose expected contribution to the committed prefix is largest.
Relaxing exact verification. Exact rejection is not the only option. SMC-based variants weight and resample draft blocks instead of truncating at the first rejected token. They accept a finite-particle approximation in exchange for using more of the drafted work, and have been applied to power targets (Emara et al., 2026). This differs from PreSTO in that the output is no longer exact for the target, whereas PreSTO preserves the PowerMH trajectory.
Relation to PreSTO. PreSTO and TreeSD both use a tree to batch evaluations that would otherwise be serial, both leave the law of the underlying sampler unchanged (for PreSTO-PowerMH, the law of the PowerMH chain, not itself), and both face the same question of where to spend a limited speculative budget, so TreeSD's budget-allocation arguments carry over to our setting. The two trees encode different objects, however. In TreeSD, a branch is an alternative draft-token continuation, and verification commits an accepted token prefix. In PreSTO, a branch is an accept/reject outcome of a complete-sequence MH proposal, and following the realized MH decisions reproduces the sequential PowerMH trajectory. The unit of progress also differs: every visited expanded node in PreSTO advances the chain by one MH transition, whether the proposal is accepted or rejected, while a TreeSD node contributes only if it lies on the accepted prefix. Finally, the cost structure differs. In TreeSD, a cheap drafter proposes the nodes, and only the target model's verification pass is expensive. PreSTO has no cheap drafter: every node is a full suffix that the proposal LLM must generate, the same work as one sequential PowerMH proposal. Expanding the full tree would spend most of this work on nodes off the realized path, so PreSTO confines speculation to a budgeted subtree.
A.3. MCMC Prefetching
Parallel MCMC methods typically run many independent chains, parallelize the evaluation of the target density, or speculate on the future of a single chain. Prefetching is the third approach (Brockwell, 2006; Strid, 2010). It rests on one observation: from any state, the next d accept/reject outcomes form a binary tree of depth d, and the chain follows exactly one root-to-leaf path. Proposals for every node can be drawn in advance, so the expensive target evaluations at all nodes can run in parallel. The realized path is then read off with the usual acceptance uniforms, so the chain has exactly the law of sequential MH.
Evaluating the whole tree is wasteful. It has decision nodes, of which only d lie on the realized path, so the speedup obtained from p parallel workers grows only logarithmically in p (Brockwell, 2006). Later methods therefore evaluate only the nodes most likely to lie on the realized path. Static prefetching uses the acceptance rate: when acceptance is low, rejection branches dominate, and the tree can be restricted to long rejection chains (Strid, 2010). Predictive prefetching uses a cheap approximation of the target to estimate each branch probability, and still decides every realized transition with the exact target (Angelino et al., 2014).
A different approach parallelizes within one transition by drawing several candidates from the current state, whose target evaluations can run in parallel. Multiple-try Metropolis selects one candidate with probability proportional to its weight and accepts or rejects it with a corrected acceptance probability (Liu et al., 2000). Multiproposal MH instead moves according to a Markov chain over the candidate set (Calderhead, 2014). Both preserve the stationary distribution but change the transition kernel. Multiproposal steps can be combined with prefetching by expanding a tree of multiproposal steps (Ye and Lu, 2024). MultiTryMH (Guo et al., 2026) applies multiple-try Metropolis to , drawing its candidate suffixes in parallel; PreSTO is complementary to this within-transition parallelism, and PreSTO-MultiTryMH prefetches across MultiTryMH transitions.
B. Implementation and Correctness of PreSTO
B.1. Computing Log-Acceptance Probabilities
We follow the standard steps to derive a simplified expression for the suffix-resampling log-acceptance probability in (6) by specializing the generic MH acceptance rule in (1).
All states share the same length : every proposal is generated to the full horizon and does not stop at the end-of-sequence token. Fix a current state and a cut index . At this cut, the proposal retains the prefix and samples a new suffix from the proposal LLM. The resulting candidate is , so . We write for the MH proposal kernel conditional on the cut, to distinguish it from the token-level LLM conditionals . PowerMH draws independently of the state, and the reverse move from to uses the same cut. Each cut-conditional kernel with the acceptance probability below is -reversible, and so is their uniform mixture over . For this candidate, the acceptance rule in (1) becomes
We next simplify the proposal and target ratios in (7) separately.
- Proposal log-ratio. At the fixed cut c, the candidate differs from x only in the resampled suffix, so the forward proposal probability is
The reverse move applies the same cut to propose from . It preserves and generates the original suffix . Using , the reverse proposal probability becomes
Therefore, the log-proposal ratio is
- Target log-ratio. By the stage target (4) with , . Because the numerator and denominator use the same prompt and the same fixed length , their common normalizing constant cancels:
Since , autoregressively factorizing each term on the right-hand side at the cut gives
Canceling the common prefix probability and taking logarithms yields
- Combined log-ratio. Taking the logarithm of the acceptance rule in (7), using , and substituting (8) and (9) yields
which is (6) with replaced by c. Each suffix log-probability on the right-hand side is evaluated by summing token-level conditional log-probabilities from the serving engine. For example,
Evaluating these quantities in the log domain avoids underflow from multiplying many small token probabilities and improves numerical stability.
In our implementation, the serving engine of the proposal LLM returns these log-probabilities. A single batched model call generates candidate suffixes and provides their log-probabilities under both and , using the same logits with and without temperature scaling.
B.2. Exactness of Subtree Prefetching
Reproducing the sequential chain under speculative evaluation is a standard property of MCMC prefetching (Angelino et al., 2014; Brockwell, 2006). The following result specializes the standard argument to our suffix-resampling scheme. We include the proof for completeness, verifying that generating proposals early under Condition 1 does not change the sequential PowerMH trajectory. Appendix C then analyzes how many transitions a prefetched subtree yields and which requests to prefetch under a request budget.
Proposition 1. Fix an integer . For , let and denote the states after committed transitions of PreSTO-PowerMH and PowerMH, respectively. Suppose both samplers start from the same state and PreSTO-PowerMH satisfies the following assumptions:
(A1) Prefetched proposals satisfy Condition 1 and are generated from the prefix required by the corresponding decision.
(A2) Each decision is assigned cut, suffix-sampling, and acceptance random inputs that follow the PowerMH laws and are independent within and across decisions. Scheduling and deferral preserve these inputs, and every proposal required by the realized trajectory is eventually evaluated.
(A3) Every committed transition uses its assigned proposal and the exact MH acceptance rule in (1). Both children are retained as possible outcomes; reaching a leaf postpones subsequent decisions to a later batch.
Then a coupling that uses the same random inputs at corresponding decisions preserves both sampling laws and satisfies
Consequently, if denotes the PowerMH transition kernel, the kernel of PreSTO-PowerMH after K committed transitions is .
Proof. Assign independent PowerMH random inputs to each decision of the full accept/reject tree, and couple the two executions through these inputs. Whether a decision is reached in the eventual committed trajectory depends only on its ancestors' inputs, so its own inputs retain their original conditional law. Inclusion in the current batch may depend on scheduling; this changes only when the proposal is evaluated. Preserving deferred inputs and eventually evaluating every required proposal makes the coupling valid across batch boundaries.
Suppose the executions agree after committed transitions. By Condition 1 and the prefix identity established in Section 3.2, any intervening accepted proposal preserves the prefix required by a feasible prefetched request. Rejections leave the state unchanged. A deferred request is evaluated from the required prefix when it becomes available. Thus, both executions use the same prefix in the suffix proposal defined by (5), and their common suffix-sampling randomness produces the same candidate.
The current states and candidates therefore coincide, giving the same MH acceptance probability in (1). The shared acceptance uniform yields the same decision and next state. Since the initial states agree, induction establishes equality through transition K. Each committed transition consequently has kernel , and the K-step kernel is .
Remark (scope). The proof uses PowerMH only through the laws of the per-decision random inputs in (A2) and the acceptance rule in (A3). In PowerMH the cut law is uniform and does not depend on the state, so every cut in the batch, and the feasibility check of Condition 1, can be drawn before any proposal is generated.
B.3. Examples of Prefix Sharing and MH Transitions through the Prefetched Subtree
Example 4. Suppose is cached and . In Figure 8(a), the requests for and condition on and , respectively. Both requests reuse the cached prefix ; the request for also reuses . Figure 8(c) represents these shared KV-cache segments as a radix tree, as in SGLang (Zheng et al., 2024). vLLM (Kwon et al., 2023) instead reuses full, fixed-size KV-cache blocks, indexed by hashes that incorporate each block's token IDs and the preceding block's hash. Both implementations avoid repeated computation of cached prefix states while preserving the proposal distribution and autoregressive decoding of each requested suffix.
Example 5. After generating the resampled sequences in Example 3, we associate each prefetched proposal with its MH log-acceptance probability. In Figure 8(a), request produces by resampling the suffix of the cached state after cut index . Using (6) with cut index , we compute and associate it with the acceptance edge in Figure 8(b). Likewise, request proposes from . We compute using cut index and associate it with the acceptance edge .
We simulate the sequential MH decisions by traversing the prefetched subtree in Figure 8(b) from its root. At node , draw and select the next node as
where is the MH acceptance probability of from . The realization in Figure 2 accepts , so the traversal proceeds from to . At , draw independently. In this realization, , so the second proposal is rejected, yielding the tree path and the corresponding MH trajectory

shared prefix
(a) Batched suffix-resampling requests.
(b) Prefetching tree.

(c) Radix-tree layout of the KV cache.
Figure 8 | Two batched suffix-resampling requests, their prefetching tree, and their shared KV cache. (a) Both requests reuse the cached prefix , and the request for y also reuses . (b) Each acceptance (left) edge carries the MH acceptance probability computed from the pair of sequences it connects in (a). (c) Radix-tree representation of the shared KV-cache segments.
Together with Examples 1, 2, and 3, this example shows how PreSTO-PowerMH batches two suffix-resampling requests into one model call while preserving sequential MH decisions. Along the illustrated path, this batched call realizes two MH transitions that would require two serial model calls in PowerMH.
C. Prefetch Tree Selection under a Request Budget
Appendix C.1 fixes the notation for the prefetching tree. Appendix C.2 derives the expected number of MH transitions completed by a prefetched subtree. Appendix C.3 turns this count into an allocation objective with predicted branch probabilities, and Appendix C.4 solves it by dynamic programming.
C.1. Setup and Notation
We use the prefetching tree of Section 3.2, with nodes and root holding the current MH state. When only the parent–child relation matters, we write for a node and and for its acceptance and rejection children, as in Section 3.3. Suppose that of the transitions of the current block are complete (Algorithm 2), and let be the number that remain. We cap the tree at depth and write for the resulting finite tree.
• Expandable node. A node with is expandable if the request at its acceptance child satisfies Condition 1, that is, , where and are the cut indices of and .
- Candidate node. An expandable node whose strict ancestors are all expandable; denotes the set of candidate nodes. Once the proposal at is generated, the chain moves from a candidate node to if the proposal is accepted and to if it is rejected.
• Ancestor-closed. A set is ancestor-closed if, for every , every strict ancestor of also lies in .
• Selection. A selection is any ancestor-closed ; its elements are the expanded nodes.
• Prefetched subtree. The root together with both children of every . Its internal nodes are exactly the nodes in , and its leaves are its nodes outside ; for , it consists of alone, which is then its only leaf.
Because a selection is ancestor-closed, a selection of at most nodes contains no node deeper than , so the depth cap is inactive when .
Definition 1. Fix a realization of the proposals and of their acceptance probabilities, with as in Section 3.3.
Rounded branch probabilities. At each node v,
Traversal. Fix a set I of nodes of , for example a selection. A traversal follows one child of each node of I that it reaches: from a reached node , it moves to with probability and to with probability , independently across nodes, and it stops at the first node outside I. The traversal completes a transition at each node of I that it reaches, whichever child it then moves to. Write for the expected number of transitions completed by a traversal started at v.
Reaching weights. The reaching weight of a node is the product of the branch probabilities along its path from the root:
The traversal, , and use only branch probabilities in with ; the lemmas below therefore also hold for any such branch probabilities, in particular for the predicted of Appendix C.3.
C.2. The Transition-Count Objective
Following prior prefetching analyses (Strid, 2010), we score a selection I by the expected number of MH transitions it completes and by the number of requests it issues. By Definition 1, a traversal completes one transition at each node of I that it visits, whether the proposal there is accepted or rejected. Lemma 1 writes the expected count from the root, , as a sum of reaching weights, and Lemma 2 gives the recursive form used by the dynamic program.
Lemma 1 (Expected transition count). For any ancestor-closed set I of nodes of (in particular, any selection), with reaching weights as in (11),
Proof. A traversal from follows a single path, so it visits each node at most once, and its transition count equals the number of nodes in I it visits. By linearity of expectation,
Fix . By ancestor closure, every strict ancestor of lies in , so the traversal cannot stop on the path from to . It therefore visits exactly when it takes every branch on that path, an event whose probability is the product of the branch probabilities along the path, that is, by (11). Summing over gives (12); for , both sides are zero.
Lemma 2 (Recursive form). For any set I of nodes of , for , and

(a) -certain rejection

(b) -certain acceptance

(c) -uncertain decision
Figure 9 | Visualization of (13): (a) certain rejection, (b) certain acceptance, and (c) an uncertain rounded decision. A X marks a pruned edge. The proposal at is required in every case.
Proof. A traversal started at stops immediately and completes no transition. A traversal started at completes one transition at and, since the choices at different nodes are independent, then proceeds as a traversal started at the child it moves to. By (10), the MH decision at falls into one of three cases (Figure 9):
• Certain rejection , panel (a)). The traversal moves to with probability one, so , which is (13) with a vanishing term.
• Certain acceptance , panel (b)). The traversal moves to with probability one, so , which is (13) with a vanishing term.
• Uncertain decision , panel (c)). The traversal moves to with probability and to with probability ; conditioning on this outcome gives (13).
Lemma 2 is the basis of the dynamic program in Proposition 2: by (13), depends on only through its parts below and , so an optimal selection below combines optimal selections below its two children.
Remark. The request count depends only on , not on the traversal: expanding a node issues exactly one request, for the proposal at , while the rejection child keeps the state of and needs no proposal. A selection thus issues requests and yields a prefetched subtree of nodes. Rounding does not lower this cost: at a certain rejection, makes the acceptance branch unreachable, yet expanding still costs the request for the proposal at . Rounding only prunes the low-probability branch below , so that no further requests are spent there.
C.3. Predictive Subtree Allocation
We want to expand the selection that maximizes the expected transition count within the request budget. This count depends on the branch probabilities , which by (10) are determined by the acceptance probability . However, is known only after the proposal at has been generated and scored, so it is unavailable while we assemble the request batch. We therefore use a classifier that, from information available before generation, predicts the probability that each candidate node is an -certain reject, an -certain accept, or -uncertain (Appendix E.7 reports its empirical results). Below, we convert these class probabilities into predicted branch probabilities and formulate the allocation objective with in place of .
Notation. Throughout this subsection, denotes the acceptance probability of the proposal at , viewed as a random variable, and conditioning on means conditioning on the information available before allocation. As in Section 3.3, is an -certain reject if , an -certain accept if , and -uncertain otherwise; is -certain reject) denotes the probability of this event given the information available before allocation, and similarly for the other two classes.
Computing from the classifier. For each candidate node , the classifier takes the features of that are available before generation (in our implementation, the cut fraction of the request at ) and outputs, through a softmax (Appendix E.7), a predicted probability for each of the three classes rather than only the most likely class:
We then compute the predicted branch probabilities as
(14)
That is, is the average of 1 (certain accept), 0 (certain reject), and (uncertain, the midpoint of ), weighted by the predicted class probabilities; it is the value of Lemma 3 with the predicted class probabilities in place of the exact ones.
Lemma 3 (Midpoint branch probability). Fix a node . Its exact class probabilities bound the mean rounded branch probability:
(15)
Define the error of a candidate value as , and its worst-case error as the largest such error over all means allowed by (15). The worst-case error is smallest at the midpoint of this interval,
Proof. By (10), is 1 on the certain-accept class, 0 on the certain-reject class, and A on the uncertain class, so
The conditional mean of on the uncertain class lies in , which gives (15). For a quantity known only to lie in an interval , an estimate has worst-case error , with equality exactly at . The midpoint of the interval in (15) is
where the equality uses that the three class probabilities sum to one. This is (16).
Objective formulation. With in place of h, Lemma 1 gives the allocation objective: choose the selection I that maximizes the predicted expected transition count within the request budget,
where
• and are the reaching weights and the expected transition count of Definition 1, computed with the predicted branch probabilities in (14) in place of the unknown ;
- the candidate set , determined by Condition 1 and the depth cap , ensures that every selected request can be generated in a single batch;
• ancestor closure requires every ancestor of a selected node to be selected as well.
A node with would contribute nothing to the objective but still cost a request; this requires some on its path to be exactly 0 or 1, which our softmax classifier never outputs, since all three of its class probabilities are positive.
Why rounded estimates. The exact count requires the value of , which is unknown until the proposal is generated, and an estimate of itself would carry error at every decision. Rounding removes the need to estimate on the -certain decisions, at a bias of at most per branch probability, but it does not remove the error of the class probabilities themselves. On the -certain decisions, is exactly 0 or 1 and is determined by the class alone; on the -uncertain ones, given exact class probabilities, the midpoint estimate is off by at most is -uncertain) (Lemma 3). Since only 5%–33% of decisions are -uncertain (Figure 4), the midpoint error affects a minority of decisions; the error of the classifier adds to it on every decision.
C.4. Optimal Budget Allocation via Dynamic Programming
Define as the largest predicted transition count attainable from with at most requests,
where a set of candidate nodes is feasible below if , every element of lies in the subtree rooted at , and every candidate node on the path from to an element of also lies in .
The optimization in (18) decomposes the budget at each node: one request expands itself, and the remaining are split between its two child subtrees before the outcome at is known (Figure 10). This decomposition is inspired by the tree-based speculative decoding of Sequoia (Chen et al., 2024).
Proposition 2 (Optimal predictive allocation). Fix and the predicted branch probabilities and in (14). For every node and every budget ,
The maximum in (17) equals .

Figure 10 | Budget decomposition visualization for Proposition 2.
Proof. Boundary cases. A nonempty selection feasible below contains , so it needs both and . Either boundary case therefore leaves only the empty selection, giving . Fix and below.
Upper bound. Expanding alone has value one by Lemma 2, so an optimal is nonempty and hence contains , which costs one request. Its remaining nodes lie in the two child subtrees, and its restriction to each subtree is feasible below that child. If of them lie below and at most below , where , then Lemma 2 with in place of and the optimality of each child value give
Maximizing over m gives the upper bound in (19).
Attainability. Conversely, combine a maximizing with optimal selections below and at capacities and . Together with the expansion of they are feasible below and use at most requests, and Lemma 2 gives them exactly the maximized value. The bound is attained, which proves (19); induction from the leaves of the finite tree then determines every .
Finally, feasibility below is ancestor closure within , so is the optimum of (17).
Remark. Proposition 2 requires the predicted branch probabilities at every candidate node. Estimating them reduces to classification (Appendix E.7): by (10), is exactly zero or one on the two -certain classes, so a classifier only needs to predict the class probabilities of each candidate node, and Lemma 3 converts them into without modeling A within the uncertain class.
D. Experimental Settings
D.1. Baselines, Datasets, and Base LLMs
MH-based samplers. We apply PreSTO to three MH-based samplers that target the same power distribution, and compare each sampler with its PreSTO variant:
-
PowerMH (Karan and Du, 2026) builds a continuation block by block. At each block, it extends the current prefix with the proposal LLM and then runs several MH updates that target the power-sharpened distribution over the extended prefix. Each update draws a cut position uniformly at random, keeps the tokens before it, resamples the suffix from the proposal LLM, and accepts or rejects the candidate with the MH correction.
-
EntropyCut (Zhou et al., 2026) modifies PowerMH by choosing cut positions where the base model's next-token entropy increases; these entropy jumps serve as a proxy for consequential reasoning decisions. It regenerates the suffix from the chosen position and applies the MH correction, so the power target is preserved.
-
MultiTryMH replaces each single-proposal PowerMH update with a Multiple-Try Metropolis update (Liu et al., 2000). We use a simplified version of Entropy-Guided Power Sampling (EGPS) (Guo et al., 2026), namely the “EGPS (MultiTryMH, with random pos)” variant in their Figure 3: we omit entropy-guided cut selection and draw the cut position uniformly at random. This baseline preserves the power target while considering several candidate suffixes in each MH transition.
Table 3 | Datasets and their full sizes; every run uses only the first 20 prompts of each dataset.
| Category | Dataset | Source (Hugging Face) | Instances |
|---|---|---|---|
| Mathematical reasoning | MATH500 | HuggingFaceH4/MATH-500 | 500 |
| AIME 24&25 | Maxwell-Jia/AIME_2024MathArena/aime_2025 | 45 | |
| Code generation | HumanEval | openai/openai_humaneval | 164 |
| MBPP | google-research-datasets/mbpp | 257 | |
| LCB V6 | livecodebench/code_generation_lite | 175 | |
| Scientific and general knowledge | GPQA | Idavidrein/gpqa | 198 |
| MMLU | cais/mmlu | 14,042 |
Datasets. We evaluate on seven datasets in three task categories (Table 3): mathematical reasoning (MATH500 (Lightman et al., 2024), a 500-problem subset of MATH (Hendrycks et al., 2021b), and AIME 24&25), code generation (HumanEval (Chen et al., 2021), MBPP (Austin et al., 2021), and LiveCodeBench V6 (LCB V6) (Jain et al., 2025)), and scientific and general knowledge (GPQA Diamond (GPQA) (Rein et al., 2024) and MMLU (Hendrycks et al., 2021a)).
Table 4 | Base LLMs and their sources.
| Family | Base LLM | Source (Hugging Face) | Released |
|---|---|---|---|
| Qwen3 | Qwen3-4B | Qwen/Qwen3-4B | Apr 2025 |
| Qwen3-8B | Qwen/Qwen3-8B | Apr 2025 | |
| Qwen3.5 | Qwen3.5-4B | Qwen/Qwen3.5-4B | Feb 2026 |
| Qwen3.5-9B | Qwen/Qwen3.5-9B | Feb 2026 | |
| Gemma4 | Gemma4-12B-it | google/gemma-4-12B-it | May 2026 |
Base LLMs. We evaluate five base LLMs (Table 4), where “base LLM” denotes the backbone . Each is a recent open-weight release from a widely adopted model family: two parameter scales from each of the Qwen3 and Qwen3.5 generations, and the larger Gemma4-12B-it, so the models span 4B to 12B parameters. None is a pretrained-only checkpoint: the four Qwen models are the default releases rather than the -Base variants and ship with chat templates that support a thinking mode, and Gemma4-12B-it is instruction-tuned.
D.2. Evaluation Metrics
Execution Efficiency measures the cost of running the same MH sampler for a fixed number of transitions.
• MH transitions per model call. The number of MH transitions realized per model call; higher means more chain progress per call. On each prompt, a method that completes K realized MH transitions realizes of model calls transitions per call.
• Wall-clock time and speedup. We record the wall-clock time of every model call. On each prompt, a method's time per call is the mean duration of its timed model calls, and call time = # of model calls × time per call is its cumulative model-call time. Every reported speedup is a ratio of means over the prompts : the mean cumulative model-call time of the sequential sampler divided by that of its PreSTO variant,
We decompose it with ratios of means as well: the increase in time per call is the mean time per call of the PreSTO variant divided by that of the sampler, and the reduction in model calls is the speedup multiplied by this increase, so that the speedup equals the reduction in calls divided by the increase in time per call (Figure 1).
Sample Quality measures whether PreSTO changes the samples after the same number of transitions.
• Likelihood and confidence. Prior work evaluates MCMC samplers for text by comparing their sampled distributions with reference distributions (Du et al., 2024; Forristal et al., 2023). For power sharpening, Karan and Du (2026) characterize sampled responses by their length-normalized base-model likelihood and confidence. Let be the terminal state after exactly K realized MH transitions: the prompt followed by a response of length . Its length-normalized log-likelihood is
and its confidence is the mean negative entropy of the base model's next-token distributions along the sequence:
where V is the vocabulary. Both statistics are computed under the same base model , so they are comparable across samplers. Higher log-likelihood means a higher mean token log-probability under , and higher confidence means lower predictive uncertainty along the sequence.
• Paired TOST equivalence test. This test checks whether PreSTO changes the mean of each statistic by less than a small margin . For each sampler and its PreSTO variant, we match prompts and seeds, run both for the same K, and take the per-prompt difference of each statistic (PreSTO variant minus sequential sampler), with mean . The two one-sided tests (TOST) procedure (Lakens, 2017; Schuirmann, 1987) tests
with two one-sided paired t-tests; is the larger of their two p-values. We set to 0.2 standard deviations of the statistic across prompts under the sequential sampler, a conventional small effect, and declare equivalence when , that is, when the 90% confidence interval for lies within .
Hardware-Resource Efficiency measures how much of the KV-cache pool a sampler occupies and how much prefix computation it reuses.
• Peak KV-pool use. We report the peak fraction of occupied blocks in the pool, where higher use indicates greater cache demand.
-
Prefix-cache hit rate. We measure prefix reuse as the cumulative token hit rate: the fraction of queried prefix tokens whose KV states are already cached. A higher hit rate indicates greater reuse of prefix computation.
-
Prefix-cache miss tokens per transition. We divide the number of prefix-cache miss tokens by the number of realized MH transitions. This complements the hit rate by measuring the absolute uncached workload per transition.
D.3. Implementation Environment
Table 5 summarizes the experimental software and hardware environment. We implement PowerMH, EntropyCut, MultiTryMH, and their PreSTO variants on top of vLLM, using custom engine patches. For Case Study 6 (Appendix E.6), we also implement PowerMH and PreSTO-PowerMH on SGLang.
vLLM engine patches. Each MH transition needs the log-probability of a proposed suffix under both the proposal and the base model , and EntropyCut also needs the next-token entropy of at every position. The unmodified vLLM engine returns log-probabilities from only one version of the logits, either before or after temperature scaling; this choice is an engine-wide setting (logprobs_mode), not a per-request option. We therefore patch the vLLM V1 engine, run with logprobs_mode=processed_logprobs, to return all of these quantities from the forward pass that generates each token.
Before temperature scaling, penalties, or any other logit processing, the patched sampler keeps a float32 copy of the logits. For each sampled token , it returns (i) the proposal log-probability from the processed logits, as in unmodified vLLM; (ii) the base-model log-probability from the unprocessed copy; and (iii) the full-vocabulary entropy of , computed from the unprocessed copy with the natural logarithm,
D.4. Hyperparameter Configurations
Table 6 lists the default power-sampling settings and the settings of our case studies. Following Karan and Du (2026), we set the proposal temperature to for every sampler except MultiTryMH and PreSTO-MultiTryMH, whose candidates use the temperatures in Table 6(a); all runs use seed 10086.
E. Additional Experimental Results
Table 5 | Software and hardware configuration.
| Software | Version / configuration |
|---|---|
| Python | 3.13.0 |
| PyTorch | 2.13.0 |
| vLLM | 0.27.1 (V1 engine) with custom engine patches |
| Transformers | 5.14.1 |
| (a) Software configuration | |
| Hardware | Specification |
| GPU | 1× NVIDIA H100 96 GB (GH200 Grace Hopper Superchip) |
| CPU | NVIDIA Grace CPU, 72 cores (3.456 GHz) |
| Memory | 480 GB LPDDR5X unified memory |
(b) Hardware configuration
Table 6 | Hyperparameter configurations.
| Parameter | Setting |
|---|---|
| Response length | |
| Block size | a single block, |
| Power exponent | |
| Proposal LLM | |
| Proposal temperature | |
| Realized MH transitions | |
| Prompts per dataset | first 20 prompts |
| Seed | 10086 |
| Traversal rule | default BFS |
| Prefetch budget | |
| EntropyCut cut-law exponent | |
| MultiTryMH candidates per transition | 4, each at a temperature drawn from |
(a) Default power-sampling configuration
| Parameter | Setting |
|---|---|
| Base model and dataset | |
| Realized MH transitions | |
| Certainty threshold | |
| Prefetch budget (Case Study 2,5) |
(b) Case study configuration
E.1. Full results: Acceleration across base LLMs and datasets
We pair PowerMH, EntropyCut, and MultiTryMH with their PreSTO variants on all five base LLMs and seven datasets. Tables 7, 8, and 9 report the mean and standard deviation of each metric for the three samplers.
Table 7 | PowerMH execution metrics across base LLMs.
| Dataset | Base LLM | Total Time (s) ↓ | Transitions per call ↑ | Time/call (s) ↓ | Speedup |
|---|---|---|---|---|---|
| MATH500 (Fig. 11) | Qwen3-4B | 327.8320.11/155.6821.84 | 1/4.420.60 | 3.280.20/6.770.09 | 2.11× |
| Qwen3-8B | 448.2827.52/200.6531.21 | 1/4.370.68 | 4.480.28/8.580.14 | 2.23× | |
| Qwen3.5-4B | 371.9722.70/249.1070.00 | 1/3.570.99 | 3.720.23/8.290.11 | 1.49× | |
| Qwen3.5-9B | 499.2430.53/242.9345.34 | 1/4.500.75 | 4.990.31/10.630.20 | 2.06× | |
| Gemma4-12B-it | 687.4841.01/395.5577.86 | 1/3.960.68 | 6.870.41/15.210.29 | 1.74× | |
| AIME 248-25 | Qwen3-4B | 318.7619.59/150.6632.25 | 1/4.660.86 | 3.190.20/6.780.11 | 2.12× |
| Qwen3-8B | 447.8727.50/195.4834.63 | 1/4.480.71 | 4.480.28/8.530.15 | 2.29× | |
| Qwen3.5-4B | 360.8922.43/217.5737.98 | 1/3.990.62 | 3.610.22/8.470.16 | 1.66× | |
| Qwen3.5-9B | 498.3730.48/239.3144.47 | 1/4.560.72 | 4.980.30/10.630.31 | 2.08× | |
| Gemma4-12B-it | 686.8738.96/389.4357.27 | 1/3.930.53 | 6.870.39/15.040.23 | 1.76× | |
| MBPP | Qwen3-4B | 327.4520.07/296.5365.99 | 1/2.420.65 | 3.270.20/6.810.08 | 1.10× |
| Qwen3-8B | 447.8527.46/446.2541.30 | 1/1.960.19 | 4.480.27/8.680.07 | 1.00× | |
| Qwen3.5-4B | 370.0322.56/221.2869.63 | 1/4.130.94 | 3.700.23/8.560.30 | 1.67× | |
| Qwen3.5-9B | 497.4730.41/309.5288.73 | 1/3.740.84 | 4.970.30/10.920.32 | 1.61× | |
| Gemma4-12B-it | 684.8038.84/475.98177.87 | 1/3.641.29 | 6.850.39/15.290.15 | 1.44× | |
| GPQA | Qwen3-4B | 323.6821.46/198.6142.79 | 1/3.550.59 | 3.240.21/6.830.08 | 1.63× |
| Qwen3-8B | 442.4929.28/208.5977.96 | 1/4.400.91 | 4.420.29/8.550.12 | 2.12× | |
| Qwen3.5-4B | 365.8224.10/217.0779.59 | 1/4.160.92 | 3.660.24/8.380.20 | 1.69× | |
| Qwen3.5-9B | 491.5932.48/239.9279.83 | 1/4.731.12 | 4.920.32/10.570.25 | 2.05× | |
| Gemma4-12B-it | 687.1939.51/411.00127.19 | 1/3.900.81 | 6.870.40/15.120.21 | 1.67× | |
| HumanEval | Qwen3-4B | 327.2520.07/184.9354.81 | 1/3.891.04 | 3.270.20/6.700.11 | 1.77× |
| Qwen3-8B | 447.4227.44/247.8173.78 | 1/3.720.95 | 4.470.27/8.590.09 | 1.81× | |
| Qwen3.5-4B | 369.8922.61/231.9754.39 | 1/3.790.92 | 3.700.23/8.360.24 | 1.59× | |
| Qwen3.5-9B | 498.3730.48/412.7478.17 | 1/2.670.46 | 4.980.30/10.720.21 | 1.21× | |
| Gemma4-12B-it | 687.1639.54/400.8782.35 | 1/3.930.74 | 6.870.40/15.190.17 | 1.71× | |
| MMLU | Qwen3-4B | 327.5120.06/205.8462.37 | 1/3.591.06 | 3.280.20/6.820.11 | 1.59× |
| Qwen3-8B | 447.9127.44/298.07123.34 | 1/3.291.17 | 4.480.27/8.570.13 | 1.50× | |
| Qwen3.5-4B | 370.5122.60/210.3747.85 | 1/4.120.81 | 3.710.23/8.320.17 | 1.76× | |
| Qwen3.5-9B | 493.4431.14/418.01122.83 | 1/2.720.78 | 4.930.31/10.520.15 | 1.18× | |
| Gemma4-12B-it | 686.8939.47/452.2161.30 | 1/3.400.61 | 6.870.39/15.030.21 | 1.52× | |
| LCB V6 | Qwen3-4B | 318.7919.56/156.1435.60 | 1/4.920.76 | 3.190.20/7.440.14 | 2.04× |
| Qwen3-8B | 432.2625.14/210.5551.09 | 1/4.850.90 | 4.320.25/9.770.15 | 2.05× | |
| Qwen3.5-4B | 368.0720.61/182.6121.80 | 1/4.950.58 | 3.680.21/8.920.28 | 2.02× | |
| Qwen3.5-9B | 539.2430.92/375.1235.08 | 1/4.960.47 | 5.390.31/18.450.51 | 1.44× | |
| Gemma4-12B-it | 685.3439.07/351.0253.96 | 1/4.470.68 | 6.850.39/15.350.29 | 1.95× |
MATH500 vLLM default BFS
PowerMH — trace ■ mean ■ ±1 SD
PreSTO-PowerMH — trace ■ mean ■ ±1 SD
Qwen3-4B
(a)

(b)
(c)
Qwen3-8B
(a)
(b)
(c)
Qwen3.5-4B
(a)
(b)
(c)
Qwen3.5-9B
(a)
(b)
(c)
Gemma4-12B-it
(a)
(b)
(c)
total MH transitions (K)
total MH transitions (K)
Figure 11 | PowerMH and PreSTO-PowerMH on MATH500.
Table 8 | EntropyCut execution metrics across base LLMs.
| Dataset | Base LLM | Total Time (s) ↓ | Transitions per call ↑ | Time/call (s) ↓ | Speedup |
|---|---|---|---|---|---|
| MATH500 (Fig. 12) | Qwen3-4B | 277.4145.48/157.8520.51 | 1/4.260.54 | 2.770.45/6.620.23 | 1.76× |
| Qwen3-8B | 336.6458.87/192.0024.30 | 1/4.340.47 | 3.370.59/8.230.27 | 1.75× | |
| Qwen3.5-4B | 365.7880.61/233.4773.77 | 1/3.810.99 | 3.660.81/8.220.47 | 1.57× | |
| Qwen3.5-9B | 478.0274.36/272.2959.03 | 1/3.840.65 | 4.780.74/10.110.52 | 1.76× | |
| Gemma4-12B-it | 980.09240.16/431.85175.94 | 1/4.072.00 | 9.802.40/15.061.37 | 2.27× | |
| AIME 24&25 | Qwen3-4B | 255.0437.63/150.5416.85 | 1/4.570.49 | 2.550.38/6.810.18 | 1.69× |
| Qwen3-8B | 345.8662.77/192.5726.84 | 1/4.370.56 | 3.460.63/8.280.30 | 1.80× | |
| Qwen3.5-4B | 405.21104.47/196.7841.26 | 1/4.290.64 | 4.051.04/8.200.66 | 2.06× | |
| Qwen3.5-9B | 490.2682.75/277.8065.23 | 1/3.830.75 | 4.900.83/10.210.51 | 1.76× | |
| Gemma4-12B-it | 684.74165.29/449.67125.04 | 1/3.550.85 | 6.851.65/15.010.69 | 1.52× | |
| MBPP | Qwen3-4B | 260.7360.29/218.4148.68 | 1/3.511.25 | 2.610.60/7.150.20 | 1.19× |
| Qwen3-8B | 367.1282.44/256.6696.78 | 1/4.001.42 | 3.670.82/9.020.14 | 1.43× | |
| Qwen3.5-4B | 509.3979.35/207.3122.63 | 1/4.130.37 | 5.090.79/8.490.27 | 2.46× | |
| Qwen3.5-9B | 762.0770.82/267.0354.05 | 1/4.300.92 | 7.620.71/11.030.17 | 2.85× | |
| Gemma4-12B-it | 1022.57156.01/486.63107.74 | 1/3.250.73 | 10.231.56/15.121.06 | 2.10× | |
| GPQA | Qwen3-4B | 372.9769.04/178.6432.15 | 1/4.300.67 | 3.730.69/7.490.42 | 2.09× |
| Qwen3-8B | 377.4964.81/210.7024.84 | 1/4.390.50 | 3.770.65/9.140.38 | 1.79× | |
| Qwen3.5-4B | 397.4497.55/203.2552.71 | 1/4.360.77 | 3.970.98/8.500.49 | 1.96× | |
| Qwen3.5-9B | 529.97101.82/269.9275.09 | 1/4.210.75 | 5.301.02/10.870.70 | 1.96× | |
| Gemma4-12B-it | 943.24225.03/435.88116.35 | 1/3.640.72 | 9.432.25/15.171.47 | 2.16× | |
| HumanEval | Qwen3-4B | 380.83108.02/203.0860.14 | 1/3.681.37 | 3.811.08/6.830.77 | 1.88× |
| Qwen3-8B | 441.98154.66/215.1488.83 | 1/4.441.79 | 4.421.55/8.301.04 | 2.05× | |
| Qwen3.5-4B | 435.56105.27/211.1746.11 | 1/3.710.76 | 4.361.05/7.591.06 | 2.06× | |
| Qwen3.5-9B | 767.7690.41/268.95108.36 | 1/4.782.47 | 7.680.90/10.560.44 | 2.85× | |
| Gemma4-12B-it | 930.27168.82/401.23108.00 | 1/3.761.02 | 9.301.69/14.131.84 | 2.32× | |
| MMLU | Qwen3-4B | 390.39105.60/192.2642.67 | 1/4.010.73 | 3.901.06/7.440.34 | 2.03× |
| Qwen3-8B | 612.03184.09/278.3993.41 | 1/3.901.15 | 6.121.84/9.880.42 | 2.20× | |
| Qwen3.5-4B | 395.7986.46/240.2486.12 | 1/3.750.83 | 3.960.86/8.390.83 | 1.65× | |
| Qwen3.5-9B | 841.38140.68/352.8095.07 | 1/3.490.87 | 8.411.41/11.540.40 | 2.38× | |
| Gemma4-12B-it | 887.63220.26/376.96167.32 | 1/4.502.02 | 8.882.20/14.111.67 | 2.35× | |
| LCB V6 | Qwen3-4B | 250.6256.09/151.8226.30 | 1/4.190.62 | 2.510.56/6.200.30 | 1.65× |
| Qwen3-8B | 340.0882.22/220.3865.17 | 1/3.920.90 | 3.400.82/8.150.73 | 1.54× | |
| Qwen3.5-4B | 337.1437.91/198.3548.78 | 1/4.310.59 | 3.370.38/8.361.40 | 1.70× | |
| Qwen3.5-9B | 463.8052.32/242.8935.93 | 1/4.220.58 | 4.640.52/10.080.47 | 1.91× | |
| Gemma4-12B-it | 844.27204.00/472.94164.09 | 1/3.560.99 | 8.442.04/15.340.77 | 1.79× |
MATH500 vLLM default BFS
EntropyCut — trace — mean ±1 SD
PreSTO-EntropyCut — trace — mean ±1 SD
Qwen3-4B
(a)

(b)
Qwen3-8B
(c)
(a)
(b)
Qwen3.5-4B
(c)
(a)
(b)
Qwen3.5-9B
(c)
(a)
(b)
Gemma4-12B-it
(c)
(a)
(b)
total MH transitions (K)
(c)
total MH transitions (K)
Figure 12 | EntropyCut and PreSTO-EntropyCut on MATH500.
Table 9 | MultiTryMH execution metrics across base LLMs.
| Dataset | Base LLM | Total Time (s) ↓ | Transitions per call ↑ | Time/call (s) ↓ | Speedup |
|---|---|---|---|---|---|
| MATH500 | Qwen3-4B | 741.5535.32/322.9017.49 | 1/2.020.11 | 7.420.35/6.490.17 | 2.30× |
| Qwen3-8B | 865.8442.90/417.0821.21 | 1/2.040.10 | 8.660.43/8.500.18 | 2.08× | |
| Qwen3.5-4B | 2174.72142.35/375.2314.43 | 1/2.050.08 | 21.751.42/7.680.16 | 5.80× | |
| Qwen3.5-9B | 3246.66262.85/463.2625.28 | 1/2.050.11 | 32.472.63/9.480.15 | 7.01× | |
| Gemma4-12B-it | 1558.7079.33/686.4945.49 | 1/1.860.13 | 15.590.79/12.750.20 | 2.27× | |
| AIME 248-25 | Qwen3-4B | 633.3131.36/313.1617.48 | 1/2.030.11 | 6.330.31/6.330.18 | 2.02× |
| Qwen3-8B | 867.0841.03/429.2217.70 | 1/1.990.06 | 8.670.41/8.520.20 | 2.02× | |
| Qwen3.5-4B | 2337.06148.90/381.7416.29 | 1/2.040.09 | 23.371.49/7.790.19 | 6.12× | |
| Qwen3.5-9B | 3522.15239.42/510.5427.05 | 1/2.030.11 | 35.222.39/10.350.24 | 6.90× | |
| Gemma4-12B-it | 1705.5087.72/672.7234.82 | 1/2.050.11 | 17.060.88/13.790.28 | 2.54× | |
| MBPP | Qwen3-4B | 747.3238.12/317.6916.22 | 1/2.000.10 | 7.470.38/6.350.16 | 2.35× |
| Qwen3-8B | 857.3042.10/434.5829.62 | 1/1.960.12 | 8.570.42/8.500.23 | 1.97× | |
| Qwen3.5-4B | 2083.62128.92/389.7422.83 | 1/1.970.13 | 20.841.29/7.660.15 | 5.35× | |
| Qwen3.5-9B | 3088.45181.21/520.5638.97 | 1/1.830.13 | 30.881.81/9.460.16 | 5.93× | |
| Gemma4-12B-it | 1485.7774.38/682.2931.67 | 1/1.820.09 | 14.860.74/12.410.26 | 2.18× | |
| GPQA | Qwen3-4B | 760.1739.39/324.2518.52 | 1/1.970.13 | 7.600.39/6.380.18 | 2.34× |
| Qwen3-8B | 873.7643.90/427.1125.97 | 1/2.010.14 | 8.740.44/8.540.19 | 2.05× | |
| Qwen3.5-4B | 2135.71126.60/378.9516.08 | 1/2.030.10 | 21.361.27/7.690.14 | 5.64× | |
| Qwen3.5-9B | 3197.39221.97/467.9519.99 | 1/2.040.09 | 31.972.22/9.510.17 | 6.83× | |
| Gemma4-12B-it | 1444.8369.75/678.0550.57 | 1/1.870.15 | 14.450.70/12.610.27 | 2.13× | |
| HumanEval | Qwen3-4B | 753.0139.06/341.1523.26 | 1/1.940.14 | 7.530.39/6.590.18 | 2.21× |
| Qwen3-8B | 867.9945.68/455.5029.38 | 1/1.890.14 | 8.680.46/8.560.20 | 1.91× | |
| Qwen3.5-4B | 2179.86113.33/390.1423.08 | 1/1.970.13 | 21.801.13/7.660.19 | 5.59× | |
| Qwen3.5-9B | 3248.00177.40/525.5026.42 | 1/1.780.09 | 32.481.77/9.320.18 | 6.18× | |
| Gemma4-12B-it | 1473.3773.60/680.2559.15 | 1/1.890.11 | 14.730.74/12.811.17 | 2.17× | |
| MMLU | Qwen3-4B | 736.9235.99/345.1228.39 | 1/1.850.17 | 7.370.36/6.350.22 | 2.14× |
| Qwen3-8B | 858.3844.28/446.2528.97 | 1/1.900.15 | 8.580.44/8.440.19 | 1.92× | |
| Qwen3.5-4B | 2445.00125.15/384.3122.86 | 1/2.010.12 | 24.451.25/7.700.15 | 6.36× | |
| Qwen3.5-9B | 3764.61197.19/544.3854.16 | 1/1.820.21 | 37.651.97/9.810.21 | 6.92× | |
| Gemma4-12B-it | 1673.7680.51/717.9343.53 | 1/1.920.12 | 16.740.81/13.740.21 | 2.33× | |
| LCB V6 | Qwen3-4B | 781.7748.77/337.698.76 | 1/1.960.06 | 7.820.49/6.610.16 | 2.32× |
| Qwen3-8B | 908.9962.75/436.3822.48 | 1/2.000.13 | 9.090.63/8.690.25 | 2.08× | |
| Qwen3.5-4B | 2197.08189.19/381.5812.13 | 1/2.040.09 | 21.971.89/7.790.22 | 5.76× | |
| Qwen3.5-9B | 3260.87315.74/474.9721.88 | 1/2.030.09 | 32.613.16/9.620.22 | 6.87× | |
| Gemma4-12B-it | 1494.6285.17/673.9396.53 | 1/1.930.19 | 14.950.85/12.880.87 | 2.22× |
E.2. Case Study 2: Effect of prefetch budget
Setting. On LCB V6 with Qwen3.5-9B under the default BFS traversal at , we compare PreSTO-PowerMH at with PowerMH. The PreSTO-PowerMH runs are the BFS runs of Case Study 5 and the PowerMH run is the vLLM run of Case Study 6; all share one host and were recorded within three days (Appendix ??). These runs did not record KV-pool use or prefix-cache statistics, and no LCB V6 sweep of PreSTO-EntropyCut is available.
Results. Figure 13 shows the traces of every budget over the realized MH transitions, and confirms the findings of Section 5.2.
• Transitions per call grow with the budget. They rise from 3.59 at to 4.91 at the default (Table 2).
• Each call slows with the budget, so the speedup grows more slowly. A PreSTO-PowerMH call takes 16.2–18.4 seconds, versus 5.4 seconds for a PowerMH step, so the speedup over PowerMH rises from at to at , the largest budget tested.
(a)
PowerMH (20 traces)
PreSTO-PowerMH ( )
±1 SD

(b)
(c)
Figure 13 | Per-transition traces across prefetch budgets on LCB V6 with Qwen3.5-9B. Solid curves show the PreSTO mean for each budget, from light (small ) to dark (large ). Dashed curves show PowerMH, and shaded bands show SD over traces.
E.3. Case Study 3: Likelihood and confidence
Setting. Following Karan and Du (2026), we describe each terminal trace by its token-normalized log-likelihood (Eq. 21) and confidence (Eq. 22) under . We compare each sampler with its PreSTO variant at on matched dataset–base-LLM pairs: PowerMH against PreSTO-PowerMH, and EntropyCut against PreSTO-EntropyCut.
For each pair and statistic, we apply the paired TOST of Appendix D to the per-prompt difference, PreSTO minus baseline, with margin baseline standard deviations across prompts. For each sampler, we also pool the standardized differences (each difference divided by that standard deviation) over its pairs with a fixed-effect average and test the pooled difference against the same margin.
We compare both statistics only within each base LLM, because changing changes the scoring distribution itself.
Results. Figure 14 shows all retained pairs and confirms the findings of Section 5.2.
• Equivalence holds for most tests. 29 of the 38 tests establish equivalence: 12 of 16 for PowerMH and 17 of 22 for EntropyCut (shaded rows). For PowerMH with Qwen3.5-4B, these include 7 of the 10 tests of Figure 6.
baseline
PreSTO variant
equivalent (TOST )
PowerMH vs. PreSTO-PowerMH
(a) MATH500 / Qwen3.5-9B
GPQA / Qwen3.5-4B
GPQA / Qwen3.5-9B
MMLU / Qwen3.5-4B
LCB V6 / Qwen3.5-4B
MATH500 / Qwen3.5-4B
AIME / Qwen3.5-9B
AIME / Qwen3.5-4B

(b)
EntropyCut vs. PreSTO-EntropyCut
(c)
LCB V6 / Qwen3.5-4B
MATH500 / Qwen3.5-4B
MATH500 / Qwen3.5-9B
AIME / Qwen3.5-4B
AIME / Qwen3.5-9B
GPQA / Qwen3.5-4B
GPQA / Qwen3.5-9B
MMLU / Qwen3.5-4B
LCB V6 / Qwen3.5-9B
AIME / Gemma4-12B-it
LCB V6 / Gemma4-12B-it

Token log-likelihood under
(d)
Token confidence under
Figure 14 | Likelihood and confidence distributions with and without PreSTO. Boxes show the per-prompt token-normalized log-likelihood (a, c) and confidence (b, d) of terminal traces under for the eight PowerMH pairs (top) and the eleven EntropyCut pairs (bottom), each against its PreSTO variant. Shaded rows are equivalent under the paired TOST ( ).
• Means nearly coincide. The median absolute gap between the PreSTO and baseline means is 0.002 in log-likelihood for both samplers, and 0.007 for PowerMH and 0.004 for EntropyCut in confidence, against across-prompt standard deviations of about 0.05 and 0.10.
E.4. Case Study 4: Distribution of -certainty
Setting. This case study extends the certainty analysis of Section 3.3 to more base LLMs, more datasets, and the EntropyCut proposal rule. With , an MH decision with acceptance probability is an -certain reject if , an -certain accept if , and -uncertain otherwise.
The histograms count both outgoing edges of every scored decision, with transition probabilities A and 1 - A, and call an edge -certain when its transition probability is at most or at least ; the two outer categories therefore have equal mass, and their combined share equals the fraction of -certain decisions.
Results. Figures 15 and 16 confirm the findings of Section 5.2. We find that Most decisions are -certain. Under PreSTO-PowerMH, 56%–95% of edges are -certain for the Qwen models and 67%–78% for Gemma4-12B-it; under PreSTO-EntropyCut, 60%–92% and 60%–93%.
Method: PreSTO-PowerMH, inference engine: vLLM
ε-certain reject ε-uncertain ε-certain accept
MATH500
AIME 24&25
MBPP
GPQA
HumanEval
MMLU
LCB V6

(a) Qwen3-4B
(b) Qwen3-8B

(c) Qwen3.5-4B
edge share (%)

(d) Qwen3.5-9B

(e) Gemma4-12B-it

Edge transition probability
Figure 15 | Edge certainty under PreSTO-PowerMH across models and datasets.
Method: PreSTO-EntropyCut, inference engine: vLLM
ε-certain reject ε-uncertain ε-certain accept
MATH500
AIME 24&25
MBPP
GPQA
HumanEval
MMLU
LCB V6
(a) Qwen3-4B

(b) Qwen3-8B

(c) Qwen3.5-4B
edge share (%)

(d) Qwen3.5-9B

(e) Gemma4-12B-it

Edge transition probability
Figure 16 | Edge certainty under PreSTO-EntropyCut across models and datasets.
E.5. Case Study 5: Effect of traversal rules
We compare the predictive traversal rule (Appendix C.3) with the default BFS traversal; Appendix E.7 evaluates the classifier that supplies its class probabilities.
Setting. We run PreSTO-PowerMH with the default BFS traversal and with the predictive traversal rule on LCB V6 with Qwen3.5-9B, using . The classifier of the predictive rule is the cut-fraction logistic regression of Appendix E.7.
Table 10 | Predictive traversal rule against the default BFS traversal. Speedup is the total model-call time of BFS divided by that of the predictive rule.
| Model calls | Transitions per call | Time per call (s) | Model-call time (s) | Speedup | |||||
|---|---|---|---|---|---|---|---|---|---|
| BFS | Predictive | BFS | Predictive | BFS | Predictive | BFS | Predictive | ||
| 8 | 27.85 | 23.40 | 3.59 | 4.27 | 16.15 | 15.35 | |||
| 10 | 25.40 | 20.15 | 3.94 | 4.96 | 16.56 | 16.00 | |||
| 12 | 23.40 | 18.90 | 4.27 | 5.29 | 17.58 | 17.13 | |||
| 16 | 21.60 | 17.10 | 4.63 | 5.85 | 18.15 | 17.34 | |||
| 20 | 20.35 | 15.30 | 4.91 | 6.54 | 18.43 | 17.95 | |||
Results.
-
Faster at every budget. The predictive rule is faster than BFS in model-call time (Figure 7 and Table 10) and faster on 98 of the 100 prompt–budget pairs.
-
The gain comes from fewer model calls. The predictive rule completes more MH transitions per call, so it needs fewer calls for the same (Figure 7(a)); its time per call is also shorter (Figure 7(b)).
-
The gain is largest at (), where the predictive rule raises the transitions per call from 4.91 to 6.54.
Figures 7(d) and 17 show the first prefetched subtree of prompt 0 and of prompts 1–3 under each rule at every budget, one prompt and rule per row. The predictive rule realizes more transitions in 11 of the 20 prompt–budget pairs and fewer in 8 (59 against 52 in total), so its speedup in Table 10 reflects an average over all trees rather than a gain on every tree.
Prompt 1
BFS
MH 0 → 3
MH 0 → 4
MH 0 → 2
MH 0 → 1
MH 0 → 1
Prompt 1
Predictive
MH 0 → 2
MH 0 → 3
MH 0 → 3
MH 0 → 2
MH 0 → 2
MH 0 → 3
Prompt 2
BFS
MH 0 → 3
MH 0 → 2
MH 0 → 2
MH 0 → 2
MH 0 → 2
Prompt 2
Predictive
MH 0 → 1
MH 0 → 4
MH 0 → 1
MH 0 → 5
MH 0 → 1
Prompt 3
BFS
MH 0 → 3
MH 0 → 4
MH 0 → 3
MH 0 → 5
MH 0 → 5
Prompt 3
Predictive
MH 0 → 2
MH 0 → 4
MH 0 → 6
MH 0 → 4
MH 0 → 3
Figure 17 | First prefetched subtree under each traversal rule and prefetch budget. Prompts 1–3 of LCB V6 with Qwen3.5-9B under PreSTO-PowerMH, one row per prompt and rule; labels and colors follow Figure 7d.
E.6. Case Study 6: Effect of different serving engines
Setting. All main results use vLLM; to check that the acceleration is not specific to it, we also run PowerMH and PreSTO-PowerMH on SGLang. The two engines draw different random samples, so their chains and numbers of calls differ.
Table 11 | PowerMH and PreSTO-PowerMH on vLLM and SGLang.
| Engine | Sampler | Calls | Time per call (s) | Model-call time (s) | Speedup |
|---|---|---|---|---|---|
| vLLM | PowerMH | 100 | |||
| PreSTO-PowerMH | |||||
| SGLang | PowerMH | 100 | |||
| PreSTO-PowerMH |
Results. PreSTO-PowerMH is faster than PowerMH under both engines, so the acceleration is not specific to vLLM (Table 11).
-
The speedup is larger under SGLang (1.97× against 1.40× under vLLM). Both engines cut the number of calls by a similar factor (4.7× and 4.9×), but a PreSTO-PowerMH call costs 2.4× a PowerMH step under SGLang against 3.5× under vLLM.
-
SGLang is faster in absolute time: 1.5× faster than vLLM for PowerMH and 2.1× for PreSTO-PowerMH.
E.7. Case Study 7: Predicting ε-certainty before generation
The predictive traversal rule (Appendix C.3) needs the class probabilities is -certain reject) and is -certain accept) of every candidate node before the proposal at is generated. We therefore predict, from information available before generation, which of the three classes of Section 3.3 each candidate node falls into: certain reject (), certain accept (), or uncertain (). We use the results to choose the input features and the model of the rule.
Setting. Each run records the acceptance probability of every prefetched node, and these nodes are the examples. We use one run per sampler, on the first 20 prompts of LCB V6 with Qwen3.5-9B. The PreSTO-PowerMH dataset has 4,621 nodes from 579 model calls: 2,814 -certain rejects, 945 -certain accepts, and 862 -uncertain. The PreSTO-EntropyCut dataset has 4,533 nodes from 568 model calls: 2,701, 880, and 952, respectively. These are about 8 nodes per call, fewer than , for two reasons. First, the calls issue 5,690 and 5,546 requests; we drop the 1,069 and 1,013 requests that BFS places below the rejection child of a node whose acceptance-child request it deferred under Condition 1, because the MH walk of that call stops at that node and does not reach them. Second, 21 and 22 calls near the end of a prompt, when at most 6 of the transitions remain, issue fewer than 10 requests. Because the examples are the nodes that BFS actually prefetched, they follow the distribution of the prefetched subtree, not that of all candidate nodes. We group the features, all available when the batch is assembled, into four sets:
-
Feature 1 (cut fraction): the cut fraction of the request, where is the acceptance child of the node (that is, and ).
-
Feature 2 (tree position): the cut index of , the gap , the depth of , and the number of acceptances on the path from the root to .
-
Feature 3 (likelihood): four statistics of the token-wise log-likelihood of the root state under the proposal LLM: its value at the first resampled token, its changes into and out of that token, and its mean over the suffix after the cut.
• Feature 4 (entropy, PreSTO-EntropyCut only): the same four statistics of the token-wise entropy of the root state; the uniform-cut run did not log token entropies.
Classifier. Each node has a standardized feature vector and a true class : -certain reject, -certain accept, or -uncertain, in the order of Appendix C.3. We use a three-class logistic regression, that is, a linear layer with weights followed by a softmax over the three classes. It thus outputs is -certain reject) and is -certain accept) directly, and their sum is at most one by construction. To test whether a nonlinear model helps, we also train multilayer perceptrons that insert hidden layers with the ReLU activation before the softmax; with one hidden layer,
and a second hidden layer adds another linear layer followed by ReLU; we use one hidden layer of 16, 32, or 64 units, or two hidden layers of 32 or 64 units each. All models are trained to minimize the log loss (cross-entropy) on a training dataset D of nodes,
with the natural logarithm, plus the penalty times the sum of squared weights, biases excluded: for the logistic regression (scikit-learn's ), and for the multilayer perceptrons (scikit-learn's alpha), which are trained with Adam and stopped early on a 10% validation split of the training fold.
Evaluation metrics. We evaluate each classifier by 5-fold cross-validation with whole prompts held out and pool the out-of-fold predictions, so every node in the set of all nodes is scored by a model that never saw its prompt. Let be the held-out probability of class . We report two metrics, each against a constant baseline that ignores the features:
• Accuracy: the fraction of nodes whose most likely class equals ; the baseline always predicts the most frequent class.
• Log loss: in (25), computed with the held-out probabilities ; the baseline predicts the class frequencies for every node.
Log loss scores the predicted probabilities, which the predictive traversal rule uses; accuracy scores only the most likely class .
Results. We use the logistic regression with the cut fraction as the only feature. It reaches a held-out accuracy of 0.643 under PreSTO-PowerMH and 0.625 under PreSTO-EntropyCut, above the majority-class rates of 0.609 and 0.596, and lowers the log loss from 0.940 to 0.819 and from 0.954 to 0.884 relative to the class prior (Figure 18). The other choices are not useful.
single feature set
two feature sets
cumulative feature sets
constant baseline
(a) PreSTO-PowerMH
(b) PreSTO-EntropyCut

log loss
log loss
Figure 18 | Prediction of the -certainty class by feature set. Held-out accuracy against log loss of the logistic regression for PreSTO-PowerMH (a) and PreSTO-EntropyCut (b); upper left is better. Labels give the feature sets used: a single digit is one set, “1+3” combines Features 1 and 3, and “1-3” combines Features 1 through 3; comma-separated labels mark overlapping points. The cross marks the constant baseline, and the bold label is the configuration we use.
no hidden layer
one hidden layer
(a) PreSTO-PowerMH
two hidden layers
constant baseline
(b) PreSTO-EntropyCut

log loss
log loss
Figure 19 | Effect of hidden layers on predicting the -certainty class. Held-out accuracy against log loss with the cut fraction as the only feature; labels give the units per hidden layer, and “none” is the logistic regression. Markers as in Figure 18.
E.8. Case Study 8: Comparison with test-time baselines
PreSTO-PowerMH speeds up PowerMH without changing its transition kernel, but PowerMH is only one way to spend test-time compute. This case study places both among three baselines that also sharpen the base distribution or select among samples: low-temperature sampling, best-of-N (Stiennon et al., 2020; Sun et al., 2024), and PowerSMC (Azizi et al., 2026). Low-temperature sampling and best-of-N do not target : scaling each token's logits by renormalizes every conditional separately, which differs from the sequence-level power distribution (Karan and Du, 2026). We compare their generation time, peak KV-pool use, and accuracy on the same prompts.
Setting. All runs use the first 20 prompts of LCB V6 with Qwen3.5-9B, process one prompt at a time on vLLM, and target . PowerMH and PreSTO-PowerMH ignore the end-of-sequence token and always generate all 1,024 new tokens, whereas low-temperature sampling, best-of-N, and PowerSMC stop a sample at the end-of-sequence token, so they generate up to 1,024 new tokens. PowerMH and PreSTO-PowerMH run a single block of MH transitions, fewer than the of the main runs, and PreSTO-PowerMH uses the default BFS traversal at . Low-temperature sampling draws one sample at temperature ; best-of-N draws samples at the same temperature and keeps the one with the highest unnormalized sequence log-probability, the sum of its token log-probabilities under this temperature-0.25 sampling distribution rather than under . PowerSMC grows particles in blocks of 128 tokens, resamples when the effective sample size falls below half, and ramps the exponent to over the first 400 tokens. Time is the generation time per prompt, excluding model loading and grading, and peak KV-pool use is the largest fraction of the preallocated KV pool in use. Figure 20 plots peak KV-pool use against time.

Figure 20 | Speed and memory against test-time baselines. Peak KV-pool use against time per prompt on the first 20 prompts of LCB V6 with Qwen3.5-9B; lower left is better.
Results. Figure 20 shows that prefetching raises peak KV-pool use, but by less than the parallel baselines at their larger settings. Best-of-N and PowerSMC decode all samples or particles at once, so their peak KV-pool use grows with N or P, reaching 12.7% of the pool at N = 32 and 8.5% at P = 32. PreSTO-PowerMH batches 10 proposals and peaks at 2.9%–3.1% at every K, close to best-of-8 (3.3%), compared with 0.6% for PowerMH. PreSTO-PowerMH therefore narrows, but does not close, the cost gap between PowerMH and these baselines.
E.9. Example prefetched-subtree trajectory
We print the raw log of one prefetched subtree. Each line of the log is a node , printed as Node (id=i, cut_idx=c_i). Node has acceptance child and rejection child ; the rejection child keeps its parent's state and cut index. Each acceptance edge carries log_mh_ratio, the unclamped log MH ratio of the proposal at , so the edge is taken with probability ; rejection edges carry no value. The tree holds 16 of the 20 requests in the batch. The other 4 lie below the rejection child of a node whose own request violates Condition 1, such as ; the chain cannot pass such a node in this batch, so the sampler does not attach these requests, and the budget runs out before BFS reaches frontier nodes such as .
Box 1: Prefetched tree
Node(id=0, cut_idx=1024) [accept, log_mh_ratio=-0.0000] Node(id=1, cut_idx=1020) [accept, log_mh_ratio=18.5023] Node(id=3, cut_idx=535) [reject] Node(id=4, cut_idx=1020) [accept, log_mh_ratio=-10.1162] Node(id=9, cut_idx=446) [reject] Node(id=10, cut_idx=1020) [accept, log_mh_ratio=1.4901] Node(id=21, cut_idx=645) [accept, log_mh_ratio=-196.3358] Node(id=43, cut_idx=49) [reject] Node(id=44, cut_idx=645) [reject] Node(id=22, cut_idx=1020) [accept, log_mh_ratio=-4.8704] Node(id=45, cut_idx=576) [reject] Node(id=46, cut_idx=1020) [reject] Node(id=2, cut_idx=1024) [accept, log_mh_ratio=-5.1543] Node(id=5, cut_idx=842) [accept, log_mh_ratio=-222.5652] Node(id=11, cut_idx=299) [accept, log_mh_ratio=-175.3548] Node(id=23, cut_idx=1) [reject] Node(id=24, cut_idx=299) [reject] Node(id=12, cut_idx=842) [accept, log_mh_ratio=-27.9577] Node(id=25, cut_idx=751) [accept, log_mh_ratio=-11.0661] Node(id=51, cut_idx=694) [reject] Node(id=52, cut_idx=751) [reject] Node(id=26, cut_idx=842) [accept, log_mh_ratio=12.5823] Node(id=53, cut_idx=686) [reject] Node(id=54, cut_idx=842) [reject] Node(id=6, cut_idx=1024) [accept, log_mh_ratio=-2.4016] Node(id=13, cut_idx=816) [accept, log_mh_ratio=-183.1820] Node(id=27, cut_idx=29) [reject] Node(id=28, cut_idx=816) [accept, log_mh_ratio=-0.8134] Node(id=57, cut_idx=550) [reject] Node(id=58, cut_idx=816) [reject] Node(id=14, cut_idx=1024) [accept, log_mh_ratio=10.9556] Node(id=29, cut_idx=601) [reject] Node(id=30, cut_idx=1024)
Box 2: MH progress 0/100 → 2/100 (2 transitions)
sampled path in the prefetched subtree:
The sampled path (Box 2) accepts at and , advancing the chain from step 0 to step 2. Both decisions are -certain at : the ratio at accepts with probability above 0.9999, and accepts with probability 1. The -rounded tree (Box 3; Definition 1) drops each branch that rounding assigns zero probability, together with its descendants, and keeps both branches at uncertain decisions, so here it reduces to the single path , which is the sampled path.
Box 3: -rounded tree ( )
Node(id=0, cut_idx=1024) [accept, log_mh_ratio=-0.0000] Node(id=1, cut_idx=1020) [accept, log_mh_ratio=18.5023] Node(id=3, cut_idx=535)
Binary-tree views of prefetched subtrees. We plot all 19 prefetched subtrees for prompt index 0 from the Qwen3.5-9B run on LCB V6 with prefetch budget . Figure 21 shows them in sampling order; together they cover the chain's full trajectory of 100 MH transitions.

(1) MH
(2) MH

(3) MH

(4) MH

(5) MH
(6) MH
(7) MH

(8) MH

(9) MH

(10) MH
(11) MH

(12) MH

(13) MH
(14) MH
(15) MH
(16) MH

(17) MH
(18) MH

(19) MH
Figure 21 | Prefetched subtrees along one full MH trajectory. The 19 subtrees of prompt 0 (0-based) in sampling order, covering its 100 MH transitions (LCB V6, Qwen3.5-9B, PreSTO-PowerMH, BFS, ). Each label gives the MH steps the subtree advances. Solid left edges: acceptance; dashed right edges: rejection; orange: -rounded subtree ( , Definition 1); blue: sampled path (endpoint double-bordered); gray: other prefetched branches.