betaFeedback

WorksComputer Science

PreSTO: Predictive Subtree Prefetching for Fast LLM Power Sampling

Abstract

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 1.71×1.71\times, 1.91×1.91\times, and 2.33×2.33\times on PowerMH and its follow-ups EntropyCut and MultiTryMH, respectively; on the first two, it makes a median of 3.9×3.9\times fewer model calls, each only 2.1×2.1\times longer. On LCB V6 with Qwen3.5-9B, the predictive traversal rule is a further 1.25×1.25\times–1.37×1.37\times faster than the default breadth-first traversal.

Code: https://github.com/nan-jiang-group/PreSTO

Project Page: https://nan-jiang-group.github.io/PreSTO

Introduction

Large language models (LLMs) perform strongly on reasoning tasks such as competition mathematics, code generation, and graduate-level science questions ([24, 35, 45]). These capabilities are commonly improved by reinforcement learning (RL) post-training with task-specific rewards ([18, 25]). Recent work suggests that RL post-training largely sharpens the base model’s distribution ([11, 21] (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 ([28]).

However, PowerMH, the Metropolis–Hastings (MH) sampler for power sampling, is expensive [27]: on MATH500, it generates up to 8.8× as many tokens as standard sampling [28], and on LCB V6 with Qwen3.5-9B, it takes 6.5×–18.4× as long per prompt as single-sample low-temperature sampling (Case Study 8, Appendix § 12.8). Follow-up work improves it in four directions: (1) Alternative samplers replace serial MH with sequential Monte Carlo (SMC) or replica exchange [5, 22]. (2) Efficient approximations of the power target reduce inference cost [27, 44]. (3) Proposal refinements choose cut indices by token-level entropy to improve mixing [19, 61]. (4) Objective or training changes target the answer marginal [3] or fine-tune the model on power-sampled responses [54].

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 [2, 6]: 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 § 12.§ 4), so a breadth-first traversal spends much of the budget on nodes that MH rarely visits. Motivated by this, we propose an 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.

Figure 4. Most edges in prefetched subtrees are ϵ\epsilon-certain. For PreSTO-PowerMH with Qwen3.5-9B and the default BFS traversal, 67%–95% of edges are ϵ\epsilon-certain across all seven datasets, with ϵ=0.01\epsilon= 0.01 and Npf=20N_{\mathrm{pf}} = 20.

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 1.71× over PowerMH, 1.91× over EntropyCut, and 2.33× over MultiTryMH, and maximum speedups of 2.29× and 2.85× 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 1.94×–4.92× fewer calls, each taking 1.90×–3.42× 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 1.25×–1.37× faster than the default breadth-first search (BFS) traversal at all five prefetch budgets tested on LCB V6 with Qwen3.5-9B (Figure 7).

Figure 1. Across 105 sampler–LLM–dataset settings, PreSTO (ours) speeds up PowerMH, EntropyCut, and MultiTryMH by a median of 1.71×, 1.91×, and 2.33×, respectively. Each point is one setting, and faster settings lie toward the upper right.

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).

Figure 7. Predictive traversal rule against BFS for PreSTO-PowerMH on LCB V6 with Qwen3.5-9B. (a–c) The predictive rule is 1.25×–1.37× 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 ±1 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 § 12.§ 5). Label MH 0 → kk: the sampled path advances the chain from step 0 to kk. Solid left edges: acceptance; dashed right edges: rejection; orange: ϵ\epsilon-rounded subtree (ϵ=0.01\epsilon= 0.01); blue: sampled path (endpoint double-bordered); gray: other prefetched branches.

Preliminaries

Metropolis–Hastings (MH) is an MCMC algorithm for sampling from a distribution known only up to a normalizing constant [20, 39]. MH constructs a Markov chain x(0)→⋯→x(k)→⋯→x(K)x^{(0)} \to\cdots\to x^{(k)} \to\cdots\to x^{(K)} to sample from a target distribution π(x)\pi(x). Given the current state x(k)x^{(k)}, a candidate y\mathbf{y} is drawn from a proposal distribution q(⋅∣x(k))q(\cdot\mid x^{(k)}) and is accepted with probability

A(y,x(k))=min⁡{1,π(y)q(x(k)∣y)π(x(k))q(y∣x(k))}.(1)A(\mathbf{y}, x^{(k)}) = \min\left\{1, \frac{\pi(\mathbf{y})q(x^{(k)} \mid\mathbf{y})}{\pi(x^{(k)})q(\mathbf{y} \mid x^{(k)})}\right\}. \tag*{(1)}

If the proposal is accepted, the chain moves to x(k+1)←y\mathbf{x}^{(k+1)} \leftarrow\mathbf{y}; otherwise, x(k+1)←x(k)\mathbf{x}^{(k+1)} \leftarrow\mathbf{x}^{(k)}.

Power Sharpening for LLMs. Let x0\mathbf{x}_0 denote a given prompt and x0:n=(x0,x1,…,xn)\mathbf{x}_{0:n} = (x_0, x_1, \ldots, x_n) denote the prompt followed by nn generated tokens. Let p0p_0 denote the distribution of the base LLM. Recently, Karan and Du [28] proposed to sample from a power-sharpened distribution:

πα(x1:n∣x0)∝p0(x1:n∣x0)α.(2)\pi_\alpha(\mathbf{x}_{1:n} \mid\mathbf{x}_0) \propto p_0(\mathbf{x}_{1:n} \mid\mathbf{x}_0)^\alpha. \tag*{(2)}

When α>1\alpha> 1, the exponent sharpens the base distribution to amplify high-likelihood continuations and suppress low-likelihood ones [32]. Empirical results [27, 28] show that power sharpening can achieve performance competitive with RL-based post-training methods, such as Group Relative Policy Optimization (GRPO) [49].

Exact sampling from πα\pi_\alpha in (2) is intractable, as it requires summing over future continuations. Karan and Du [28] propose PowerMH, an MH-based sampler that proceeds through a sequence of intermediate targets block by block:

πα(x1:B∣x0)⟶⋯⟶πα(x1:ℓB∣x0)⟶⋯⟶πα(x1:n∣x0),(3)\pi_\alpha(\mathbf{x}_{1:B} \mid\mathbf{x}_0) \longrightarrow\cdots\longrightarrow\pi_\alpha(\mathbf{x}_{1:\ell B} \mid\mathbf{x}_0) \longrightarrow\cdots\longrightarrow\pi_\alpha(\mathbf{x}_{1:n} \mid\mathbf{x}_0), \tag*{(3)}

where BB is the block size and the stage-ℓ\ell target raises the base model’s distribution over the first ℓB\ell B generated tokens to the power α\alpha,

πα(x1:ℓB∣x0)∝p0(x1:ℓB∣x0)α,(4)\pi_\alpha(\mathbf{x}_{1:\ell B} \mid\mathbf{x}_0) \propto p_0(\mathbf{x}_{1:\ell B} \mid\mathbf{x}_0)^\alpha, \tag*{(4)}

which equals (2) at the last stage, ℓB=n\ell B = n. At the ℓ\ell-th stage, PowerMH runs MH steps targeting the distribution πα(x1:ℓB∣x0)\pi_\alpha(\mathbf{x}_{1:\ell B} \mid\mathbf{x}_0) by first extending the sample x0:(ℓ−1)B\mathbf{x}_{0:(\ell-1)B} from the previous stage by one block to produce x1:ℓB\mathbf{x}_{1:\ell B}, and then refining it with KK MH steps.

Methodology

Motivation

Prior studies [5, 27] show that PowerMH incurs substantial inference-time latency. On the MATH500 dataset, Karan and Du [28] report that PowerMH generates up to 8.8× as many tokens as standard sampling. In our measurements on LCB V6 with Qwen3.5-9B (Case Study 8, Appendix § 12.8), PowerMH with K=10K = 10, 20, and 30 MH steps takes 6.5×, 12.2×, and 18.4× 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 k+1k+1 can be generated only after the accept/reject outcome at step kk determines the next state.

We first describe the suffix-resampling procedure in the PowerMH sampler. For notational clarity, let L=(ℓ−1)BL = (\ell- 1)B and T=ℓBT = \ell B be the sequence lengths before and after the ℓ\ell-th stage. Given the sequence x0:L\mathbf{x}_{0:L} from the previous stage, the sampler first extends it to x0:T\mathbf{x}_{0:T} by sampling a continuation from the proposal LLM, and this extended sequence is the initial MH state x(0)=x0:T\mathbf{x}^{(0)} = \mathbf{x}_{0:T}. At step kk with MH state x(k)\mathbf{x}^{(k)}, the sampler draws a cut index c∼Unif⁡{0,…,T−1}c \sim\operatorname{Unif}\{0, \ldots, T - 1\}, and resamples the suffix from the proposal LLM to construct a candidate y=(x0:c(k),yc+1:T)\mathbf{y} = (\mathbf{x}^{(k)}_{0:c}, \mathbf{y}_{c+1:T}):

yt∼qτ(⋅∣x0:c(k),yc+1:t−1),for t=c+1,…,T,(5)y_t \sim q_\tau\left(\mathord{\cdot} \mid\mathbf{x}^{(k)}_{0:c}, \mathbf{y}_{c+1:t-1}\right), \qquad\text{for } t = c + 1, \ldots, T, \tag*{(5)}

where the proposal distribution qτq_\tau is the base LLM with temperature τ\tau. The next state x(k+1)\mathbf{x}^{(k+1)} is then determined by applying the acceptance rule in (1) to the candidate y\mathbf{y}.

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 accept/reject decisions are realized [2, 6, 57]. In our setting, prefetching is best understood through a depth-KK tree, which enumerates all possible accept/reject outcomes over the next KK MH steps. Each tree node viv_i is associated with a cut index cic_i 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 KK 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 x→y→y\mathbf{x} \to\mathbf{y} \to\mathbf{y}. In round 1, starting at x\mathbf{x}, the sampler draws cut index c1c_1, resamples the suffix according to (5) to generate y\mathbf{y}, and accepts the proposal, yielding x(1)=y\mathbf{x}^{(1)} = \mathbf{y}. In round 2, it draws a new cut index c2c_2 and resamples the suffix of y\mathbf{y} to generate z\mathbf{z}, but rejects this proposal, leaving x(2)=y\mathbf{x}^{(2)} = \mathbf{y}. These accept/reject decisions select the path x→y→y\mathbf{x} \to\mathbf{y} \to\mathbf{y} in the prefetched subtree in step 3 of Figure 2(b).

Figure 2. Our subtree prefetching (PreSTO) accelerates PowerMH for transitions x→y→y\mathbf{x} \to\mathbf{y} \to\mathbf{y}. (a) PowerMH performs two sequential rounds of proposal generation with qτq_\tau followed by an MH accept/reject decision. (b) Our method collects feasible requests by traversing the prefetching tree, generates proposals (y,z)(\mathbf{y}, \mathbf{z}) in one batched call, and then samples a path over the subtree.

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).

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 NpfN_{\mathrm{pf}} 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 (vi,ci)(v_i, c_i), where viv_i identifies the node and cic_i denotes its cut index. Expanding a node creates two children: an acceptance (left) child and a rejection (right) child. For each acceptance child viv_i, we draw a new cut index ci∼Unif⁡{0,…,T−1}c_i \sim\operatorname{Unif}\{0,\ldots,T-1\} and form the request (vi,ci)(v_i,c_i). If this request satisfies Condition 1, we add it to the batch and enqueue viv_i 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 Npf=10N_{\mathrm{pf}} = 10 on LCB V6 with Qwen3.5-9B, they are 19% of the issued requests (Appendix § 12.7). The traversal stops when the batch contains NpfN_{\mathrm{pf}} requests or the queue is empty. § 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 vv be a node in the prefetching tree with cut index cc and v′v' be its acceptance child with cut index c′c'. The request associated with v′v' is feasible for the current prefetch batch if c′≤cc' \le c.

Condition 1 follows from the suffix-resampling step in (5). Fix a state x=x0:T\mathbf{x} = \mathbf{x}_{0:T} and a cut 0≤c≤T−10 \le c \le T - 1, and let y=(x0:c,yc+1:T)\mathbf{y} = (\mathbf{x}_{0:c}, \mathbf{y}_{c+1:T}) be a candidate obtained by suffix resampling at cc. For any 0≤c′≤c0 \le c' \le c, the preserved prefix satisfies y0:c′=x0:c′\mathbf{y}_{0:c'} = \mathbf{x}_{0:c'}. Hence, for every suffix zc′+1:T\mathbf{z}_{c'+1:T}, autoregressive factorization gives

qτ(zc′+1:T∣y0:c′)=∏t=c′+1Tqτ(zt∣y0:c′,zc′+1:t−1)=∏t=c′+1Tqτ(zt∣x0:c′,zc′+1:t−1)=qτ(zc′+1:T∣x0:c′).q_{\tau}(\mathbf{z}_{c'+1:T} \mid\mathbf{y}_{0:c'}) = \prod_{t=c'+1}^{T} q_{\tau}(z_t \mid\mathbf{y}_{0:c'}, \mathbf{z}_{c'+1:t-1}) = \prod_{t=c'+1}^{T} q_{\tau}(z_t \mid\mathbf{x}_{0:c'}, \mathbf{z}_{c'+1:t-1}) = q_{\tau}(\mathbf{z}_{c'+1:T} \mid\mathbf{x}_{0:c'}).

Consequently, the proposal at cut c′c' can be generated in the same batch from the already available prefix x0:c′\mathbf{x}_{0:c'}, before y\mathbf{y} 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 Npf=2N_{\mathrm{pf}} = 2 requests from the tree in step 1 of Figure 2(b), we start BFS at the root node v0v_0, which represents the current sequence x0:T\mathbf{x}_{0:T}. We assign it the cut index c0=Tc_0 = T for consistency with Condition 1. We expand the tree in the order v0,v1,v2,…v_0, v_1, v_2, \ldots. 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 (v1,c1)(v_1, c_1), followed by the request (v3,c2)(v_3, c_2).

As shown in step 2 of Figure 2(b), resampling the suffix at v1v_1 after cut index c1c_1 leaves the prefix x0:c2\mathbf{x}_{0:c_2} unchanged because c2≤c1c_2 \le c_1. Then, the proposal at v3v_3 is conditioned only on the shared prefix x0:c2\mathbf{x}_{0:c_2}, which is already available at the root node v0v_0. The two suffix-resampling requests (v1,c1)(v_1, c_1) and (v3,c2)(v_3, c_2) 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 ([29] or SGLang ([60])), 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 § 9.§ 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\mathbf{x} is associated with the root v0v_0, while y\mathbf{y} and z\mathbf{z} are the newly resampled sequences associated with nodes v1v_1 and v3v_3, respectively, in the tree shown in step 3. For the request (v1,c1)(v_1, c_1), y\mathbf{y} is obtained by resampling the suffix from the proposal LLM qτq_{\tau} conditioned on the prefix x0:c1\mathbf{x}_{0:c_1}. Thus, y=(x0:c1,yc1+1:T)\mathbf{y} = (\mathbf{x}_{0:c_1}, \mathbf{y}_{c_1+1:T}). By (1), the log-acceptance probability for the MH transition

Algorithm 1 PowerMH (Karan and Du, [28]) | Algorithm 2 PreSTO-PowerMH (ours)

Common settings: the base-model distribution p0p_0, proposal-LLM distribution qτq_\tau, power-sharpening coefficient α\alpha, response length nn, block size BB, and MCMC steps per block KK.

PreSTO-PowerMH-only settings: tree traversal rule, prefetch budget NpfN_{\mathrm{pf}}.

Output: the final state x=x0:n\mathbf{x} = \mathbf{x}_{0:n} after KK MH steps per block, approximately distributed as πα\pi_\alpha.

  1. for ℓ←1,…,n/B\ell\leftarrow1,\ldots,n/B do

  2. Extend x0:L\mathbf{x}_{0:L} to x0:T\mathbf{x}_{0:T} using qτq_\tau.

  3. for k←1,…,Kk \leftarrow1,\ldots,K do

  4. y←DrawOneCandidate⁡(x)\mathbf{y} \leftarrow\operatorname{DrawOneCandidate}(\mathbf{x}).

  5. A←ComputeAcceptance⁡(y,x)A \leftarrow\operatorname{ComputeAcceptance}(\mathbf{y},\mathbf{x}).

  6. u∼Unif⁡(0,1)u \sim\operatorname{Unif}(0,1).

  7. if u≤Au \leq A then x←y\mathbf{x} \leftarrow\mathbf{y}.

  8. return x\mathbf{x}.

  1. for ℓ←1,…,n/B\ell\leftarrow1,\ldots,n/B do

  2. Extend x0:L\mathbf{x}_{0:L} to x0:T\mathbf{x}_{0:T} using qτq_\tau.

  3. k←0k \leftarrow0.

  4. while k<Kk < K do

  5. T←PrefetchAndScore⁡(x,Npf,K−k)\mathcal{T} \leftarrow\operatorname{PrefetchAndScore}(\mathbf{x},N_{\mathrm{pf}},K-k).

  6. (xΔ,kΔ)←MHTransition⁡(T,x,K−k)(\mathbf{x}_{\Delta},k_{\Delta}) \leftarrow\operatorname{MHTransition}(\mathcal{T},\mathbf{x},K-k).

  7. k←k+kΔk \leftarrow k+k_{\Delta}; x←xΔ\mathbf{x} \leftarrow\mathbf{x}_{\Delta}.

  8. return x\mathbf{x}.

from x\mathbf{x} to y\mathbf{y} is

log⁡A(y,x)=min⁡{0,log⁡qτ(xc1+1:T∣x0:c1)−log⁡qτ(yc1+1:T∣x0:c1)+α(log⁡p0(yc1+1:T∣x0:c1)−log⁡p0(xc1+1:T∣x0:c1))}.(6)\log A(\mathbf{y},\mathbf{x})=\min\left\{0,\log q_\tau(\mathbf{x}_{c_1+1:T}\mid\mathbf{x}_{0:c_1})-\log q_\tau(\mathbf{y}_{c_1+1:T}\mid\mathbf{x}_{0:c_1}) +\alpha\left(\log p_0(\mathbf{y}_{c_1+1:T}\mid\mathbf{x}_{0:c_1})-\log p_0(\mathbf{x}_{c_1+1:T}\mid\mathbf{x}_{0:c_1})\right)\right\}. \tag*{(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 log⁡qτ(yc1+1:T∣x0:c1)=∑t=c1+1Tlog⁡qτ(yt∣x0:c1,yc1+1:t−1)\log q_\tau(\mathbf{y}_{c_1+1:T}\mid\mathbf{x}_{0:c_1})=\sum_{t=c_1+1}^{T}\log q_\tau(y_t\mid\mathbf{x}_{0:c_1},\mathbf{y}_{c_1+1:t-1}). Appendix § 9.§ 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 vv, we follow the left edge with probability A(v+,v)A(v^+,v) 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 qτq_\tau and the base model p0p_0 for computing MH acceptance probabilities. Example 5 (Appendix § 9.§ 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 KK 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 kΔ≥1k_\Delta\geq1 MH steps from it. In Algorithm 2, PrefetchAndScore⁡\operatorname{PrefetchAndScore} builds the prefetching tree rooted at the current state x\mathbf{x}, collects at most NpfN_{\mathrm{pf}} feasible requests under the tree traversal rule, and generates and scores them in one batched call. It returns the scored prefetched subtree T\mathcal{T}; deferred requests keep their cut indices across rounds. MHTransition⁡\operatorname{MHTransition} then follows the realized accept/reject path through T\mathcal{T} for at most K−kK-k transitions, the number that remain in the block, and returns the reached state xΔ\mathbf{x}_{\Delta} together with the number kΔ≤K−kk_{\Delta}\leq K-k of completed transitions; PrefetchAndScore⁡\operatorname{PrefetchAndScore} likewise caps the tree at depth K−kK-k (Appendix § 10.§ 1), so the block never exceeds KK transitions. Proposition 1 further establishes that PreSTO-PowerMH preserves the original MH transition kernel.

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.

Our Observation. Fix ϵ∈(0,12)\epsilon\in(0, \frac{1}{2}) (we use ϵ=0.01\epsilon= 0.01), and let vv be an expanded node with acceptance child v+v^{+} and rejection child v−v^{-}, reached with probabilities A(v+,v)A(v^{+},v) and 1−A(v+,v)1 - A(v^{+},v), respectively. The decision at vv is an ϵ\epsilon-certain accept if A(v+,v)≥1−ϵA(v^{+},v) \ge1 - \epsilon, an ϵ\epsilon-certain reject if A(v+,v)≤ϵA(v^{+},v) \le\epsilon, and ϵ\epsilon-uncertain otherwise (see Figure 3 for an example). Rounding the acceptance probability of every ϵ\epsilon-certain decision to 1 or 0 leaves it with a single reachable child, whereas an ϵ\epsilon-uncertain decision keeps both. We call the nodes that remain reachable from the root after this rounding the ϵ\epsilon-rounded subtree.

Figure 3. The ϵ\epsilon-rounded subtree (orange) is sparse and mostly has one child per node within the full prefetched subtree. Blue edges trace a sampled MH path.

Figure 7(d) and Appendix § 12.9 show prefetched subtrees in full, with their ϵ\epsilon-rounded subtrees in orange and the sampled paths in blue. Most nodes lie outside the ϵ\epsilon-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.

The ϵ\epsilon-rounded subtree is predominantly unary because the target distribution πα\pi_{\alpha} 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 ϵ\epsilon-certain at ϵ=0.01\epsilon= 0.01: pooling the acceptance and rejection edges of all decisions, about 95% of the edges are ϵ\epsilon-certain on LCB V6 (panel (g)). Appendix § 12.§ 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 cj/Tc_j/T of each candidate request predicts the ϵ\epsilon-certainty class probabilities of the decision, and we convert them into a branch probability. We then select at most NpfN_{\mathrm{pf}} 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 § 10.§ 3 and § 10.§ 4). We call this rule the predictive traversal rule, in contrast to the default BFS traversal of § 3.2. Case Study 5 in § 5.2 compares the two rules empirically, with extended results in Appendix § 12.§ 5.

Related Work

We review related work most relevant to PreSTO here; see Appendix § 8 for an extended discussion.

MCMC prefetching. Like prior MCMC-prefetching methods [2, 6, 57], 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 [6] and Angelino et al. [2] 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 [57] 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 [9, 31, 50]. 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 [5, 22], efficient approximations [27, 44], refined proposals [19, 61], or modified objectives and training procedures [3, 54]. 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.

Experiments

We first show that PreSTO speeds up all three sequential samplers across base LLMs and datasets (Table 1). Five case studies (§ 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 ϵ\epsilon-certain, and how the traversal rule matters. Appendix § 11 describes the baselines, base LLMs, datasets, and metrics, and Appendix § 12 reports the full results.

Base LLMMATH500AIME 24&25MBPPGPQAHumanEvalMMLULCB V6
(a) PowerMH vs. PreSTO-PowerMH
Qwen3-4B2.11×2.12×1.10×1.63×1.77×1.59×2.04×
Qwen3-8B2.23×2.29×1.00×2.12×1.81×1.50×2.05×
Qwen3.5-4B1.49×1.66×1.67×1.69×1.59×1.76×2.02×
Qwen3.5-9B2.06×2.08×1.61×2.05×1.21×1.18×1.44×
Gemma4-12B-it1.74×1.76×1.44×1.67×1.71×1.52×1.95×
(b) EntropyCut vs. PreSTO-EntropyCut
Qwen3-4B1.76×1.69×1.19×2.09×1.88×2.03×1.65×
Qwen3-8B1.75×1.80×1.43×1.79×2.05×2.20×1.54×
Qwen3.5-4B1.57×2.06×2.46×1.96×2.06×1.65×1.70×
Qwen3.5-9B1.76×1.76×2.85×1.96×2.85×2.38×1.91×
Gemma4-12B-it2.27×1.52×2.10×2.16×2.32×2.35×1.79×
(c) MultiTryMH vs. PreSTO-MultiTryMH
Qwen3-4B2.30×2.02×2.35×2.34×2.21×2.14×2.32×
Qwen3-8B2.08×2.02×1.97×2.05×1.91×1.92×2.08×
Qwen3.5-4B5.80×6.12×5.35×5.64×5.59×6.36×5.76×
Qwen3.5-9B7.01×6.90×5.93×6.83×6.18×6.92×6.87×
Gemma4-12B-it2.27×2.54×2.18×2.13×2.17×2.33×2.22×

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 K=100K = 100 and Npf=20N_{\mathrm{pf}} = 20.

Acceleration Across Base LLMs and Datasets

We pair each sequential sampler (PowerMH [28], EntropyCut [61], and MultiTryMH [19]) with its PreSTO variant. Both samplers in a pair run K=100K = 100 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 α\alpha, proposal rule, initialization, and prompts held fixed (Appendix § 11.§ 4).

Table 1 reports the speedup for every base LLM–dataset pair (full metrics in Appendix § 12.§ 1). We find that (1) PreSTO speeds up all three baselines: it is never slower in the 105 settings, reaches at least 1.5× in 96, and achieves median speedups of 1.71× over PowerMH, 1.91× over EntropyCut, and 2.33× over MultiTryMH (ranges 1.00×–2.29×, 1.19×–2.85×, and 1.91×–7.01×, respectively). Over MultiTryMH, part of the speedup comes from the implementation rather than from prefetching: sequential

MultiTryMH rescores every candidate at all three temperatures, whereas PreSTO-MultiTryMH reuses the sampled log-probabilities (Appendix § 12.§ 1). Each PreSTO call completes several MH transitions, which cuts the number of model calls by 1.77×–4.92×. (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 1.45× a step and the speedup reaches 2.85×, versus 1.61× 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 1.25×, 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 2× a PowerMH step, and PreSTO-EntropyCut on MBPP with Qwen3-4B realizes 3.51 per call, each costing 2.7× an EntropyCut step.

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.

Three plots comparing PowerMH and PreSTO-PowerMH

Figure 5. Under LCB V6 and Qwen3.5-9B, PreSTO (Npf=20N_{\mathrm{pf}} = 20, default BFS traversal) speeds up PowerMH by 1.44× in mean cumulative model-call time: it makes 4.92× fewer model calls (a ratio of means), each taking 3.42× as long, while the per-prompt transitions per call average 4.96 (Appendix § 11.§ 2).

From Figure 5, we find that (1) PreSTO-PowerMH is 1.44× faster than PowerMH: it completes K=100K = 100 transitions in 375.12±35.08375.12_{\pm35.08} rather than 539.24±30.92539.24_{\pm30.92} seconds. (2) the speedup comes from fewer calls, not cheaper ones: each PreSTO-PowerMH call realizes 4.96±0.474.96_{\pm0.47} transitions instead of one, but takes 18.45±0.5118.45_{\pm0.51} rather than 5.39±0.315.39_{\pm0.31} seconds. A PreSTO-PowerMH call here takes about 18 seconds, 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×): 4.22±0.58_{ \pm0.58} transitions per call at 10.08±0.47_{ \pm0.47} rather than 4.64±0.52_{ \pm0.52} seconds; as a ratio of means, it makes 4.15× fewer calls, each 2.17× 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 (1.94×–4.92×) takes a 95% share (R2=0.78R^2 = 0.78), because time per call rises by a nearly constant 1.90×–2.42×. Over EntropyCut and MultiTryMH, the time-per-call ratio (1.37×–2.74× and 0.26×–1.00×) takes 94% and 99% shares (R2=0.75R^2 = 0.75 and 0.99), because the reduction in calls varies less (3.11×–4.52× and 1.77×–2.05×).

DatasetBase LLMTotal Time (s) ↓\downarrowTransitions per call ↑\uparrowTime/call (s) ↓\downarrowSpeedup
MATH500 (Figure 11)Qwen3-4B327.83±20.11/155.68±21.84327.83 \pm20.11/155.68 \pm21.841/4.42±0.601/4.42 \pm0.603.28±0.20/6.77±0.093.28 \pm0.20/6.77 \pm0.092.11×2.11\times
MATH500 (Figure 11)Qwen3-8B448.28±27.52/200.65±31.21448.28 \pm27.52/200.65 \pm31.211/4.37±0.681/4.37 \pm0.684.48±0.28/8.58±0.144.48 \pm0.28/8.58 \pm0.142.23×2.23\times
MATH500 (Figure 11)Qwen3.5-4B371.97±22.70/249.10±70.00371.97 \pm22.70/249.10 \pm70.001/3.57±0.991/3.57 \pm0.993.72±0.23/8.29±0.113.72 \pm0.23/8.29 \pm0.111.49×1.49\times
MATH500 (Figure 11)Qwen3.5-9B499.24±30.53/242.93±45.34499.24 \pm30.53/242.93 \pm45.341/4.50±0.751/4.50 \pm0.754.99±0.31/10.63±0.204.99 \pm0.31/10.63 \pm0.202.06×2.06\times
MATH500 (Figure 11)Gemma4-12B-it687.48±41.01/395.55±77.86687.48 \pm41.01/395.55 \pm77.861/3.96±0.681/3.96 \pm0.686.87±0.41/15.21±0.296.87 \pm0.41/15.21 \pm0.291.74×1.74\times
AIME 24&25Qwen3-4B318.76±19.59/150.66±32.25318.76 \pm19.59/150.66 \pm32.251/4.66±0.861/4.66 \pm0.863.19±0.20/6.78±0.113.19 \pm0.20/6.78 \pm0.112.12×2.12\times
AIME 24&25Qwen3-8B447.87±27.50/195.48±34.63447.87 \pm27.50/195.48 \pm34.631/4.48±0.711/4.48 \pm0.714.48±0.28/8.53±0.154.48 \pm0.28/8.53 \pm0.152.29×2.29\times
AIME 24&25Qwen3.5-4B360.89±22.43/217.57±37.98360.89 \pm22.43/217.57 \pm37.981/3.99±0.621/3.99 \pm0.623.61±0.22/8.47±0.163.61 \pm0.22/8.47 \pm0.161.66×1.66\times
AIME 24&25Qwen3.5-9B498.37±30.48/239.31±44.47498.37 \pm30.48/239.31 \pm44.471/4.56±0.721/4.56 \pm0.724.98±0.30/10.63±0.314.98 \pm0.30/10.63 \pm0.312.08×2.08\times
AIME 24&25Gemma4-12B-it686.87±38.96/389.43±57.27686.87 \pm38.96/389.43 \pm57.271/3.93±0.531/3.93 \pm0.536.87±0.39/15.04±0.236.87 \pm0.39/15.04 \pm0.231.76×1.76\times
MBPPQwen3-4B327.45±20.07/296.53±65.99327.45 \pm20.07/296.53 \pm65.991/2.42±0.651/2.42 \pm0.653.27±0.20/6.81±0.083.27 \pm0.20/6.81 \pm0.081.10×1.10\times
MBPPQwen3-8B447.85±27.46/446.25±41.30447.85 \pm27.46/446.25 \pm41.301/1.96±0.191/1.96 \pm0.194.48±0.27/8.68±0.074.48 \pm0.27/8.68 \pm0.071.00×1.00\times
MBPPQwen3.5-4B370.03±22.56/221.28±69.63370.03 \pm22.56/221.28 \pm69.631/4.13±0.941/4.13 \pm0.943.70±0.23/8.56±0.303.70 \pm0.23/8.56 \pm0.301.67×1.67\times
MBPPQwen3.5-9B497.47±30.41/309.52±88.73497.47 \pm30.41/309.52 \pm88.731/3.74±0.841/3.74 \pm0.844.97±0.30/10.92±0.324.97 \pm0.30/10.92 \pm0.321.61×1.61\times
MBPPGemma4-12B-it684.80±38.84/475.98±177.87684.80 \pm38.84/475.98 \pm177.871/3.64±1.291/3.64 \pm1.296.85±0.39/15.29±0.156.85 \pm0.39/15.29 \pm0.151.44×1.44\times
GPQAQwen3-4B323.68±21.46/198.61±42.79323.68 \pm21.46/198.61 \pm42.791/3.55±0.591/3.55 \pm0.593.24±0.21/6.83±0.083.24 \pm0.21/6.83 \pm0.081.63×1.63\times
GPQAQwen3-8B442.49±29.28/208.59±77.96442.49 \pm29.28/208.59 \pm77.961/4.40±0.911/4.40 \pm0.914.42±0.29/8.55±0.124.42 \pm0.29/8.55 \pm0.122.12×2.12\times
GPQAQwen3.5-4B365.82±24.10/217.07±79.59365.82 \pm24.10/217.07 \pm79.591/4.16±0.921/4.16 \pm0.923.66±0.24/8.38±0.203.66 \pm0.24/8.38 \pm0.201.69×1.69\times
GPQAQwen3.5-9B491.59±32.48/239.92±79.83491.59 \pm32.48/239.92 \pm79.831/4.73±1.121/4.73 \pm1.124.92±0.32/10.57±0.254.92 \pm0.32/10.57 \pm0.252.05×2.05\times
GPQAGemma4-12B-it687.19±39.51/411.00±127.19687.19 \pm39.51/411.00 \pm127.191/3.90±0.811/3.90 \pm0.816.87±0.40/15.12±0.216.87 \pm0.40/15.12 \pm0.211.67×1.67\times
HumanEvalQwen3-4B327.25±20.07/184.93±54.81327.25 \pm20.07/184.93 \pm54.811/3.89±1.041/3.89 \pm1.043.27±0.20/6.70±0.113.27 \pm0.20/6.70 \pm0.111.77×1.77\times
HumanEvalQwen3-8B447.42±27.44/247.81±73.78447.42 \pm27.44/247.81 \pm73.781/3.72±0.951/3.72 \pm0.954.47±0.27/8.59±0.094.47 \pm0.27/8.59 \pm0.091.81×1.81\times
HumanEvalQwen3.5-4B369.89±22.61/231.97±54.39369.89 \pm22.61/231.97 \pm54.391/3.79±0.921/3.79 \pm0.923.70±0.23/8.36±0.243.70 \pm0.23/8.36 \pm0.241.59×1.59\times
HumanEvalQwen3.5-9B498.37±30.48/412.74±78.17498.37 \pm30.48/412.74 \pm78.171/2.67±0.461/2.67 \pm0.464.98±0.30/10.72±0.214.98 \pm0.30/10.72 \pm0.211.21×1.21\times
HumanEvalGemma4-12B-it687.16±39.54/400.87±82.35687.16 \pm39.54/400.87 \pm82.351/3.93±0.741/3.93 \pm0.746.87±0.40/15.19±0.176.87 \pm0.40/15.19 \pm0.171.71×1.71\times
MMLUQwen3-4B327.51±20.06/205.84±62.37327.51 \pm20.06/205.84 \pm62.371/3.59±1.061/3.59 \pm1.063.28±0.20/6.82±0.113.28 \pm0.20/6.82 \pm0.111.59×1.59\times
MMLUQwen3-8B447.91±27.44/298.07±123.34447.91 \pm27.44/298.07 \pm123.341/3.29±1.171/3.29 \pm1.174.48±0.27/8.57±0.134.48 \pm0.27/8.57 \pm0.131.50×1.50\times
MMLUQwen3.5-4B370.51±22.60/210.37±47.85370.51 \pm22.60/210.37 \pm47.851/4.12±0.811/4.12 \pm0.813.71±0.23/8.32±0.173.71 \pm0.23/8.32 \pm0.171.76×1.76\times
MMLUQwen3.5-9B493.44±31.14/418.01±122.83493.44 \pm31.14/418.01 \pm122.831/2.72±0.781/2.72 \pm0.784.93±0.31/10.52±0.154.93 \pm0.31/10.52 \pm0.151.18×1.18\times
MMLUGemma4-12B-it686.89±39.47/452.21±61.30686.89 \pm39.47/452.21 \pm61.301/3.40±0.611/3.40 \pm0.616.87±0.39/15.03±0.216.87 \pm0.39/15.03 \pm0.211.52×1.52\times
LCB V6Qwen3-4B318.79±19.56/156.14±35.60318.79 \pm19.56/156.14 \pm35.601/4.92±0.761/4.92 \pm0.763.19±0.20/7.44±0.143.19 \pm0.20/7.44 \pm0.142.04×2.04\times
LCB V6Qwen3-8B432.26±25.14/210.55±51.09432.26 \pm25.14/210.55 \pm51.091/4.85±0.901/4.85 \pm0.904.32±0.25/9.77±0.154.32 \pm0.25/9.77 \pm0.152.05×2.05\times
LCB V6Qwen3.5-4B368.07±20.61/182.61±21.80368.07 \pm20.61/182.61 \pm21.801/4.95±0.581/4.95 \pm0.583.68±0.21/8.92±0.283.68 \pm0.21/8.92 \pm0.282.02×2.02\times
LCB V6Qwen3.5-9B539.24±30.92/375.12±35.08539.24 \pm30.92/375.12 \pm35.081/4.96±0.471/4.96 \pm0.475.39±0.31/18.45±0.515.39 \pm0.31/18.45 \pm0.511.44×1.44\times
LCB V6Gemma4-12B-it685.34±39.07/351.02±53.96685.34 \pm39.07/351.02 \pm53.961/4.47±0.681/4.47 \pm0.686.85±0.39/15.35±0.296.85 \pm0.39/15.35 \pm0.291.95×1.95\times

Table 7. PowerMH execution metrics across base LLMs.

Figure 11. PowerMH and PreSTO-PowerMH on MATH500.

Case Study 2: Effect of prefetch budget. We sweep Npf∈{8,10,12,16,20}N_{\mathrm{pf}} \in\{8, 10, 12, 16, 20\} 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.

PowerMHPreSTO-PowerMH, prefetch budget NpfN_{\mathrm{pf}}
810121620
MH transitions per model call1.003.593.944.274.634.91
Time per model call (s)5.3916.1516.5617.5818.1518.43
Speedup over PowerMH1.00×1.20×1.28×1.31×1.38×1.44×

Table 2. Under dataset LCB V6 and base LLM Qwen3.5-9B, raising the prefetch budget NpfN_{\mathrm{pf}} from 8 to 20 increases the speedup of PreSTO-PowerMH over PowerMH from 1.20× to 1.44×. Transitions per call is KK divided by the mean number of calls, and time per call is the total call time divided by the total number of calls.

From Table 2, we find that (1) the speedup grows with the budget up to the default Npf=20N_{\mathrm{pf}} = 20: from Npf=8N_{\mathrm{pf}} = 8 to 20, transitions per call rise from 3.59 to 4.91 and the speedup from 1.20× to 1.44×. (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 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 p0p_0 [28]. We rescore the terminal traces of each pair under p0p_0 after K=100K = 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 § 12.§ 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 § 12.§ 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 ±0.2\pm0.2-SD margin (peq<0.001p_{\mathrm{eq}} < 0.001).

Case Study 4: Distribution of ϵ\epsilon-certainty. Figure 15 and Figure 16 in Appendix § 12.§ 4 report the distribution of ϵ\epsilon-certainty for all five base LLMs under PreSTO-PowerMH and PreSTO-EntropyCut. We find that (1) most decisions are ϵ\epsilon-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 ϵ\epsilon-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.

Figure 15. Edge certainty under PreSTO-PowerMH across models and datasets.

Figure 16. Edge certainty under PreSTO-EntropyCut across models and datasets.

Case Study 5: Effect of traversal rules. We compare the default BFS traversal with the predictive traversal rule, which solves the objective in (18) 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 Npf∈{8,10,12,16,20}N_{\mathrm{pf}} \in\{8, 10, 12, 16, 20\} on the same 20 prompts (Appendix § 12.§ 5). Appendix § 12.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 1.25×–1.37× 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 1.19×–1.33× fewer calls, while its time per call is 2.6%–4.9% shorter (panel (b)). (3) the gain is largest at Npf=20N_{\mathrm{pf}} = 20 (1.37×), 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 § 12.§ 5 shows three more prompts.

Three further case studies compare serving engines (Case Study 6, Appendix § 12.§ 6), predict ϵ\epsilon-certainty before generation (Case Study 7, Appendix § 12.7), and compare PreSTO-PowerMH with test-time baselines (Case Study 8, Appendix § 12.8); Appendix § 12.9 shows an example prefetched-subtree trajectory.

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 1.71× over PowerMH, 1.91× over EntropyCut, and 2.33× 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 1.25×1.25\times–1.37×1.37\times 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.

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.

Sampling from the Power Distribution

Power sampling draws complete responses from πα∝p0α\pi_\alpha\propto p_0^\alpha with α>1\alpha> 1 [28]. 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 [43, 46].

Why token-level sharpening is not enough. Token-level temperature scaling and filtering [14, 55, 62] sharpen each next-token distribution and renormalize at every prefix. The exact next-token conditional of the power target is instead

πα(xt∣x0:t−1)∝p0(xt∣x0:t−1)αZα(x0:t),whereZα(x0:t)=∑xt+1:np0(xt+1:n∣x0:t)α.\pi_\alpha(x_t \mid x_{0:t-1}) \propto p_0(x_t \mid x_{0:t-1})^\alpha Z_\alpha(x_{0:t}), \qquad\text{where} \qquad Z_\alpha(x_{0:t}) = \sum_{x_{t+1:n}} p_0(x_{t+1:n} \mid x_{0:t})^\alpha.

Token-level temperature τ=1/α\tau= 1/\alpha keeps the first factor and drops ZαZ_\alpha. For α>1\alpha> 1, ZαZ_\alpha 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 ZαZ_\alpha 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 ZαZ_\alpha entirely: it compares complete sequences through the ratio πα(y)/πα(x)=(p0(y)/p0(x))α\pi_\alpha(\mathbf{y})/\pi_\alpha(\mathbf{x}) = (p_0(\mathbf{y})/p_0(\mathbf{x}))^\alpha. 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 [41]. Regenerating a complete sequence or a suffix with an LLM instead makes large, coherent edits whose proposal probabilities come from the same forward pass [16, 17]. PowerMH applies suffix regeneration to πα\pi_\alpha with a blockwise schedule [28], and later variants keep this structure while changing where cuts are placed or how many candidates each step considers. EntropyCut [61] places cuts using token entropy, and MultiTryMH, a variant of the entropy-guided sampler of [19], draws several candidate suffixes per step and moves with a multiple-try Metropolis update [37]. Other variants add terms to the target [38]. 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 ZαZ_\alpha 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 ZαZ_\alpha; twisted variants learn approximations of ZαZ_\alpha so that the intermediate weights account for it [59]. For power targets, these samplers are consistent as the number of particles grows [5, 22], and in practice their quality depends on resampling rules that prevent weight degeneracy and particle collapse [1]. Lookahead methods instead estimate Zα(x0:t)Z_\alpha(x_{0:t}) directly by sampling a few continuations for each candidate token, and use the estimate to correct the next-token distribution [27, 44]. 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 [3]. 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 [47, 54]. Evidence on when sharpening helps is mixed: raising sequence likelihood through decoding need not improve correctness [58], and reward-trained models can gain in ways that sharpening does not recover [42].

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 [50, 56]. 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 [9, 31]. 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 [40]. 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 [7], and autoregression at the level of the target model’s features gives a drafter that tracks the target more closely [34]. 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 [7, 40]. Later methods add branches where the drafter is confident, since those nodes are more likely to be accepted [33], or choose the tree shape by dynamic programming over estimated acceptance rates [12]. 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 [15]. 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 πα\pi_\alpha 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.

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 [6, 52]. It rests on one observation: from any state, the next dd accept/reject outcomes form a binary tree of depth dd, 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 2d−12^d - 1 decision nodes, of which only dd lie on the realized path, so the speedup obtained from pp parallel workers grows only logarithmically in pp [6]. 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 [52]. Predictive prefetching uses a cheap approximation of the target to estimate each branch probability, and still decides every realized transition with the exact target [2].

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 [37]. Multiproposal MH instead moves according to a Markov chain over the candidate set [8]. Both preserve the stationary distribution but change the transition kernel. Multiproposal steps can be combined with prefetching by expanding a tree of multiproposal steps [57]. MultiTryMH [19] applies multiple-try Metropolis to πα\pi_\alpha, drawing its candidate suffixes in parallel; PreSTO is complementary to this within-transition parallelism, and PreSTO-MultiTryMH prefetches across MultiTryMH transitions.

Implementation and Correctness of PreSTO

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 TT: every proposal is generated to the full horizon and does not stop at the end-of-sequence token. Fix a current state x=x0:T\mathbf{x} = \mathbf{x}_{0:T} and a cut index cc. At this cut, the proposal retains the prefix x0:c\mathbf{x}_{0:c} and samples a new suffix yc+1:T∼qτ(⋅∣x0:c)\mathbf{y}_{c+1:T} \sim q_{\tau}(\cdot\mid\mathbf{x}_{0:c}) from the proposal LLM. The resulting candidate is y=(x0:c,yc+1:T)\mathbf{y} = (\mathbf{x}_{0:c}, \mathbf{y}_{c+1:T}), so y0:c=x0:c\mathbf{y}_{0:c} = \mathbf{x}_{0:c}. We write q(y∣x,c)q(\mathbf{y} \mid\mathbf{x}, c) for the MH proposal kernel conditional on the cut, to distinguish it from the token-level LLM conditionals qτq_{\tau}. PowerMH draws c∼Unif⁡{0,…,T−1}c \sim\operatorname{Unif}\{0,\ldots,T-1\} independently of the state, and the reverse move from y\mathbf{y} to x\mathbf{x} uses the same cut. Each cut-conditional kernel with the acceptance probability below is πα\pi_{\alpha}-reversible, and so is their uniform mixture over cc. For this candidate, the acceptance rule in (1) becomes

A(y,x)=min⁡{1,πα(y1:T∣x0) q(x∣y,c)πα(x1:T∣x0) q(y∣x,c)}.(7)A(\mathbf{y},\mathbf{x}) = \min\left\{1,\frac{\pi_{\alpha}(\mathbf{y}_{1:T}\mid\mathbf{x}_0)\,q(\mathbf{x}\mid\mathbf{y},c)}{\pi_{\alpha}(\mathbf{x}_{1:T}\mid\mathbf{x}_0)\,q(\mathbf{y}\mid\mathbf{x},c)}\right\}. \tag*{(7)}

We next simplify the proposal and target ratios in (7) separately.

  1. Proposal log-ratio. At the fixed cut cc, the candidate differs from x\mathbf{x} only in the resampled suffix, so the forward proposal probability is

q(y∣x,c)=qτ(yc+1:T∣x0:c).q(\mathbf{y}\mid\mathbf{x},c) = q_{\tau}(\mathbf{y}_{c+1:T}\mid\mathbf{x}_{0:c}).

The reverse move applies the same cut cc to propose x\mathbf{x} from y\mathbf{y}. It preserves y0:c\mathbf{y}_{0:c} and generates the original suffix xc+1:T\mathbf{x}_{c+1:T}. Using y0:c=x0:c\mathbf{y}_{0:c} = \mathbf{x}_{0:c}, the reverse proposal probability becomes

q(x∣y,c)=qτ(xc+1:T∣y0:c)=qτ(xc+1:T∣x0:c).q(\mathbf{x}\mid\mathbf{y},c) = q_{\tau}(\mathbf{x}_{c+1:T}\mid\mathbf{y}_{0:c}) = q_{\tau}(\mathbf{x}_{c+1:T}\mid\mathbf{x}_{0:c}).

Therefore, the log-proposal ratio is

log⁡q(x∣y,c)q(y∣x,c)=log⁡qτ(xc+1:T∣x0:c)−log⁡qτ(yc+1:T∣x0:c).(8)\log\frac{q(\mathbf{x}\mid\mathbf{y},c)}{q(\mathbf{y}\mid\mathbf{x},c)} = \log q_{\tau}(\mathbf{x}_{c+1:T}\mid\mathbf{x}_{0:c}) - \log q_{\tau}(\mathbf{y}_{c+1:T}\mid\mathbf{x}_{0:c}). \tag*{(8)}
  1. Target log-ratio. By the stage target (4) with ℓB=T\ell_B = T, πα(x1:T∣x0)∝p0(x1:T∣x0)α\pi_{\alpha}(\mathbf{x}_{1:T}\mid\mathbf{x}_0) \propto p_0(\mathbf{x}_{1:T}\mid\mathbf{x}_0)^{\alpha}. Because the numerator and denominator use the same prompt and the same fixed length TT, their common normalizing constant cancels:

πα(y1:T∣x0)πα(x1:T∣x0)=(p0(y1:T∣x0)p0(x1:T∣x0))α.\frac{\pi_{\alpha}(\mathbf{y}_{1:T}\mid\mathbf{x}_0)}{\pi_{\alpha}(\mathbf{x}_{1:T}\mid\mathbf{x}_0)} = \left(\frac{p_0(\mathbf{y}_{1:T}\mid\mathbf{x}_0)}{p_0(\mathbf{x}_{1:T}\mid\mathbf{x}_0)}\right)^{\alpha}.

Since y1:c=x1:c\mathbf{y}_{1:c} = \mathbf{x}_{1:c}, autoregressively factorizing each term on the right-hand side at the cut gives

p0(y1:T∣x0)=p0(x1:c∣x0)p0(yc+1:T∣x0:c),p_0(\mathbf{y}_{1:T}\mid\mathbf{x}_0) = p_0(\mathbf{x}_{1:c}\mid\mathbf{x}_0)p_0(\mathbf{y}_{c+1:T}\mid\mathbf{x}_{0:c}),
p0(x1:T∣x0)=p0(x1:c∣x0)p0(xc+1:T∣x0:c).p_0(\mathbf{x}_{1:T}\mid\mathbf{x}_0) = p_0(\mathbf{x}_{1:c}\mid\mathbf{x}_0)p_0(\mathbf{x}_{c+1:T}\mid\mathbf{x}_{0:c}).

Canceling the common prefix probability p0(x1:c∣x0)p_0(\mathbf{x}_{1:c}\mid\mathbf{x}_0) and taking logarithms yields

log⁡πα(y1:T∣x0)πα(x1:T∣x0)=α(log⁡p0(yc+1:T∣x0:c)−log⁡p0(xc+1:T∣x0:c)).(9)\log\frac{\pi_{\alpha}(\mathbf{y}_{1:T}\mid\mathbf{x}_0)}{\pi_{\alpha}(\mathbf{x}_{1:T}\mid\mathbf{x}_0)} = \alpha\left(\log p_0(\mathbf{y}_{c+1:T}\mid\mathbf{x}_{0:c}) - \log p_0(\mathbf{x}_{c+1:T}\mid\mathbf{x}_{0:c})\right). \tag*{(9)}

3. Combined log-ratio. Taking the logarithm of the acceptance rule in (7), using log⁡min⁡{1,r}=min⁡{0,log⁡r}\log\min\{1,r\}=\min\{0,\log r\}, and substituting (8) and (9) yields

log⁡A(y,x)=min⁡{0, log⁡qτ(xc+1:T∣x0:c)−log⁡qτ(yc+1:T∣x0:c)+α(log⁡p0(yc+1:T∣x0:c)−log⁡p0(xc+1:T∣x0:c))}\log A(\mathbf{y},\mathbf{x})=\min\left\{0,\ \log q_{\tau}(\mathbf{x}_{c+1:T}\mid\mathbf{x}_{0:c})-\log q_{\tau}(\mathbf{y}_{c+1:T}\mid\mathbf{x}_{0:c})+\alpha\left(\log p_0(\mathbf{y}_{c+1:T}\mid\mathbf{x}_{0:c})-\log p_0(\mathbf{x}_{c+1:T}\mid\mathbf{x}_{0:c})\right)\right\}

which is (6) with c1c_1 replaced by cc. Each suffix log-probability on the right-hand side is evaluated by summing token-level conditional log-probabilities from the serving engine. For example,

log⁡qτ(yc+1:T∣x0:c)=∑t=c+1Tlog⁡qτ(yt∣x0:c,yc+1:t−1).\log q_{\tau}(\mathbf{y}_{c+1:T}\mid\mathbf{x}_{0:c})=\sum_{t=c+1}^{T}\log q_{\tau}(y_t\mid\mathbf{x}_{0:c},y_{c+1:t-1}).

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 qτq_{\tau} and p0p_0, using the same logits with and without temperature scaling.

Exactness of Subtree Prefetching

Reproducing the sequential chain under speculative evaluation is a standard property of MCMC prefetching ([2, 6]). 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 K≥0K\ge0. For k=0,…,Kk=0,\ldots,K, let xpf(k)\mathbf{x}_{\mathrm{pf}}^{(k)} and xMH(k)\mathbf{x}_{\mathrm{MH}}^{(k)} denote the states after kk 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

xpf(k)=xMH(k),for every k=0,…,K.\mathbf{x}_{\mathrm{pf}}^{(k)}=\mathbf{x}_{\mathrm{MH}}^{(k)},\qquad\text{for every }k=0,\ldots,K.

Consequently, if PMHP_{\mathrm{MH}} denotes the PowerMH transition kernel, the kernel of PreSTO-PowerMH after KK committed transitions is PMHKP_{\mathrm{MH}}^K.

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 k<Kk < K committed transitions. By Condition 1 and the prefix identity established in § 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 KK. Each committed transition consequently has kernel PMHP_{\mathrm{MH}}, and the KK-step kernel is PMHKP_{\mathrm{MH}}^{K}.

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.

Examples of Prefix Sharing and MH Transitions through the Prefetched Subtree

Example 4. Suppose x0:T\mathbf{x}_{0:T} is cached and c2≤c1c_2 \le c_1. In Figure 8(a), the requests for y\mathbf{y} and z\mathbf{z} condition on x0:c1\mathbf{x}_{0:c_1} and x0:c2\mathbf{x}_{0:c_2}, respectively. Both requests reuse the cached prefix x0:c2\mathbf{x}_{0:c_2}; the request for y\mathbf{y} also reuses xc2+1:c1\mathbf{x}_{c_2+1:c_1}. Figure 8(c) represents these shared KV-cache segments as a radix tree, as in SGLang (Zheng et al., [60]). vLLM (Kwon et al., [29]) 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.

Two batched suffix-resampling requests, their prefetching tree, and their shared KV cache, showing cached and newly added segments and the relationships among sequences x, y, and z

Figure 8. (a) Both requests reuse the cached prefix x0:c2x_{0:c_2}, and the request for yy also reuses xc2+1:c1x_{c_2+1:c_1}. (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.

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 (v1,c1)(v_1,c_1) produces y\mathbf{y} by resampling the suffix of the cached state x\mathbf{x} after cut index c1c_1. Using (6) with cut index c1c_1, we compute log⁡A(y,x)\log A(\mathbf{y},\mathbf{x}) and associate it with the acceptance edge v0→v1v_0 \to v_1 in Figure 8(b). Likewise, request (v3,c2)(v_3,c_2) proposes z\mathbf{z} from y\mathbf{y}. We compute log⁡A(z,y)\log A(\mathbf{z},\mathbf{y}) using cut index c2c_2 and associate it with the acceptance edge v1→v3v_1 \to v_3.

We simulate the sequential MH decisions by traversing the prefetched subtree in Figure 8(b) from its root. At node v0v_0, draw u∼Unif⁡(0,1)u \sim\operatorname{Unif}(0,1) and select the next node as

vnext={v1,if u≤A(y,x),v2,otherwise.v_{\mathrm{next}} = \begin{cases} v_1, & \text{if } u \le A(\mathbf{y},\mathbf{x}),\\ v_2, & \text{otherwise}. \end{cases}

where A(y,x)A(\mathbf{y},\mathbf{x}) is the MH acceptance probability of y\mathbf{y} from x\mathbf{x}. The realization in Figure 2 accepts y\mathbf{y}, so the traversal proceeds from v0v_0 to v1v_1. At v1v_1, draw u′∼Unif⁡(0,1)u' \sim\operatorname{Unif}(0,1) independently. In this realization, u′>A(z,y)u' > A(\mathbf{z},\mathbf{y}), so the second proposal z\mathbf{z} is rejected, yielding the tree path v0→v1→v4v_0 \to v_1 \to v_4 and the corresponding MH trajectory

x(0)=x→x(1)=y→x(2)=y.(10)\mathbf{x}^{(0)} = \mathbf{x} \to\mathbf{x}^{(1)} = \mathbf{y} \to\mathbf{x}^{(2)} = \mathbf{y}. \tag*{(10)}

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.

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.

Setup and Notation

We use the prefetching tree of § 3.2, with nodes v0,v1,…v_0, v_1, \ldots and root v0v_0 holding the current MH state. When only the parent–child relation matters, we write vv for a node and v+v^{+} and v−v^{-} for its acceptance and rejection children, as in § 3.3. Suppose that kk of the KK transitions of the current block are complete (Algorithm 2), and let K′=K−kK^{\prime}=K-k be the number that remain. We cap the tree at depth K′K^{\prime} and write TK′\mathcal{T}_{K^{\prime}} for the resulting finite tree.

  • Expandable node. A node vi∈TK′v_i \in\mathcal{T}_{K^{\prime}} with d(vi)<K′d(v_i)<K^{\prime} is expandable if the request at its acceptance child vjv_j satisfies Condition 1, that is, cj≤cic_j \le c_i, where cic_i and cjc_j are the cut indices of viv_i and vjv_j.

  • Candidate node. An expandable node whose strict ancestors are all expandable; Imax⁡\mathcal{I}_{\max} denotes the set of candidate nodes. Once the proposal at v+v^{+} is generated, the chain moves from a candidate node vv to v+v^{+} if the proposal is accepted and to v−v^{-} if it is rejected.

  • Ancestor-closed. A set I⊆Imax⁡\mathcal{I} \subseteq\mathcal{I}_{\max} is ancestor-closed if, for every v∈Iv \in\mathcal{I}, every strict ancestor of vv also lies in I\mathcal{I}.

  • Selection. A selection is any ancestor-closed I⊆Imax⁡\mathcal{I} \subseteq\mathcal{I}_{\max}; its elements are the expanded nodes.

  • Prefetched subtree. The root v0v_0 together with both children of every v∈Iv \in\mathcal{I}. Its internal nodes are exactly the nodes in I\mathcal{I}, and its leaves are its nodes outside I\mathcal{I}; for I=∅\mathcal{I}=\varnothing, it consists of v0v_0 alone, which is then its only leaf.

Because a selection is ancestor-closed, a selection of at most NpfN_{\mathrm{pf}} nodes contains no node deeper than Npf−1N_{\mathrm{pf}}-1, so the depth cap is inactive when K′≥NpfK^{\prime} \ge N_{\mathrm{pf}}.

Definition 1. Fix a realization of the proposals and of their acceptance probabilities, with ϵ∈(0,12)\epsilon\in(0,\frac{1}{2}) as in § 3.3.

Rounded branch probabilities. At each node vv,

h(v+;ϵ):={0,A(v+,v)≤ϵ,1,A(v+,v)≥1−ϵ,A(v+,v),otherwise,(11)h(v^{+};\epsilon):= \begin{cases} 0, & A(v^{+},v)\le\epsilon,\\ 1, & A(v^{+},v)\ge1-\epsilon,\\ A(v^{+},v), & \text{otherwise}, \end{cases} \tag*{(11)}
h(v−;ϵ):=1−h(v+;ϵ).h(v^{-};\epsilon):=1-h(v^{+};\epsilon).

Traversal. Fix a set I\mathcal{I} of nodes of TK′\mathcal{T}_{K^{\prime}}, for example a selection. A traversal follows one child of each node of I\mathcal{I} that it reaches: from a reached node v∈Iv \in\mathcal{I}, it moves to v+v^{+} with probability h(v+;ϵ)h(v^{+};\epsilon) and to v−v^{-} with probability h(v−;ϵ)h(v^{-};\epsilon), independently across nodes, and it stops at the first node outside I\mathcal{I}. The traversal completes a transition at each node of I\mathcal{I} that it reaches, whichever child it then moves to. Write FI(v;ϵ)F_{\mathcal{I}}(v;\epsilon) for the expected number of transitions completed by a traversal started at vv.

Reaching weights. The reaching weight of a node is the product of the branch probabilities along its path from the root:

R(v0;ϵ)=1,R(v+;ϵ)=R(v;ϵ)h(v+;ϵ)for every node v.(12)R(v_0;\epsilon)=1,\qquad R(v^{+};\epsilon)=R(v;\epsilon)h(v^{+};\epsilon)\quad\text{for every node }v. \tag*{(12)}

The traversal, FIF_{\mathcal{I}}, and RR use only branch probabilities in [0,1][0,1] with h(v−;ϵ)=1−h(v+;ϵ)h(v^{-};\epsilon)=1-h(v^{+};\epsilon); the lemmas below therefore also hold for any such branch probabilities, in particular for the predicted h^\hat{h} of Appendix C.3.

The Transition-Count Objective

Following prior prefetching analyses [52], we score a selection I\mathcal{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\mathcal{I} that it visits, whether the proposal there is accepted or rejected. Lemma 1 writes the expected count from the root, FI(v0;ϵ)F_{\mathcal{I}}(v_0;\epsilon), 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\mathcal{I} of nodes of TK′\mathcal{T}_{K}^{\prime} (in particular, any selection), with reaching weights R(v;ϵ)R(v;\epsilon) as in (12),

FI(v0;ϵ)=∑v∈IR(v;ϵ).(13)F_{\mathcal{I}}(v_0;\epsilon)=\sum_{v\in\mathcal{I}}R(v;\epsilon). \tag*{(13)}

Proof. A traversal from v0v_0 follows a single path, so it visits each node at most once, and its transition count equals the number of nodes in I\mathcal{I} it visits. By linearity of expectation,

FI(v0;ϵ)=∑v∈IP(the traversal visits v).F_{\mathcal{I}}(v_0;\epsilon)=\sum_{v\in\mathcal{I}}P(\text{the traversal visits }v).

Fix v∈Iv\in\mathcal{I}. By ancestor closure, every strict ancestor of vv lies in I\mathcal{I}, so the traversal cannot stop on the path from v0v_0 to vv. It therefore visits vv 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, R(v;ϵ)R(v;\epsilon) by (12). Summing over v∈Iv\in\mathcal{I} gives (13); for I=∅\mathcal{I}=\varnothing, both sides are zero. □

Lemma 2 (Recursive form). For any set I\mathcal{I} of nodes of TK′\mathcal{T}_{K}^{\prime}, FI(v;ϵ)=0F_{\mathcal{I}}(v;\epsilon)=0 for v∉Iv\notin\mathcal{I}, and

FI(v;ϵ)=1+h(v+;ϵ)FI(v+;ϵ)+h(v−;ϵ)FI(v−;ϵ),v∈I.(14)F_{\mathcal{I}}(v;\epsilon)=1+h(v^{+};\epsilon)F_{\mathcal{I}}(v^{+};\epsilon)+h(v^{-};\epsilon)F_{\mathcal{I}}(v^{-};\epsilon),\qquad v\in\mathcal{I}. \tag*{(14)}

Proof. A traversal started at v∉Iv\notin\mathcal{I} stops immediately and completes no transition. A traversal started at v∈Iv\in\mathcal{I} completes one transition at vv and, since the choices at different nodes are independent, then proceeds as a traversal started at the child it moves to. By (11), the MH decision at vv falls into one of three cases (Figure 9):

Visualization of certain rejection, certain acceptance, and uncertain decision

Figure 9. Visualization of (14): (a) ϵ\epsilon-certain rejection, (b) ϵ\epsilon-certain acceptance, and (c) an uncertain rounded decision. A ✗ marks a pruned edge. The proposal at v+v^{+} is required in every case.

  • Certain rejection (h(v+;ϵ)=0h(v^{+};\epsilon)=0, panel (a)). The traversal moves to v−v^{-} with probability one, so FI(v;ϵ)=1+FI(v−;ϵ)F_{\mathcal{I}}(v;\epsilon)=1+F_{\mathcal{I}}(v^{-};\epsilon), which is (14) with a vanishing v+v^{+} term.

  • Certain acceptance (h(v+;ϵ)=1h(v^{+};\epsilon)=1, panel (b)). The traversal moves to v+v^{+} with probability one, so FI(v;ϵ)=1+FI(v+;ϵ)F_{\mathcal{I}}(v;\epsilon)=1+F_{\mathcal{I}}(v^{+};\epsilon), which is (14) with a vanishing v−v^{-} term.

  • Uncertain decision (0<h(v+;ϵ)<10<h(v^{+};\epsilon)<1, panel (c)). The traversal moves to v+v^{+} with probability h(v+;ϵ)h(v^{+};\epsilon) and to v−v^{-} with probability h(v−;ϵ)h(v^{-};\epsilon); conditioning on this outcome gives (14).

Lemma 2 is the basis of the dynamic program in Proposition 2: by (14), FI(v;ϵ)F_{\mathcal{I}}(v;\epsilon) depends on I\mathcal{I} only through its parts below v+v^{+} and v−v^{-}, so an optimal selection below vv combines optimal selections below its two children.

Remark. The request count depends only on I\mathcal{I}, not on the traversal: expanding a node vv issues exactly one request, for the proposal at v+v^{+}, while the rejection child v−v^{-} keeps the state of vv and needs no proposal. A selection I\mathcal{I} thus issues ∣I∣|\mathcal{I}| requests and yields a prefetched subtree of 2∣I∣+12|\mathcal{I}|+1 nodes. Rounding does not lower this cost: at a certain rejection, h(v+;ϵ)=0h(v^{+};\epsilon)=0 makes the acceptance branch unreachable, yet expanding vv still costs the request for the proposal at v+v^{+}. Rounding only prunes the low-probability branch below vv, so that no further requests are spent there.

Predictive Subtree Allocation

We want to expand the selection I\mathcal{I} that maximizes the expected transition count FI(v0;ϵ)F_{\mathcal{I}}(v_0;\epsilon) within the request budget. This count depends on the branch probabilities h(v+;ϵ)h(v^{+};\epsilon), which by (10) are determined by the acceptance probability A(v+,v)A(v^{+},v). However, A(v+,v)A(v^{+},v) is known only after the proposal at v+v^{+} 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 ϵ\epsilon-certain reject, an ϵ\epsilon-certain accept, or ϵ\epsilon-uncertain (Appendix E.7 reports its empirical results). Below, we convert these class probabilities into predicted branch probabilities h^\widehat{h} and formulate the allocation objective with h^\widehat{h} in place of hh.

Notation. Throughout this subsection, A:=A(v+,v)A:=A(v^{+},v) denotes the acceptance probability of the proposal at v+v^{+}, viewed as a random variable, and conditioning on vv means conditioning on the information available before allocation. As in Section 3.3, vv is an ϵ\epsilon-certain reject if A≤ϵA\leq\epsilon, an ϵ\epsilon-certain accept if A≥1−ϵA\geq1-\epsilon, and ϵ\epsilon-uncertain otherwise; P(v is ϵ-certain reject)P(v\text{ is }\epsilon\text{-certain reject}) denotes the probability of this event given the information available before allocation, and similarly for the other two classes.

Computing h^\widehat{h} from the classifier. For each candidate node vv, the classifier takes the features of vv that are available before generation (in our implementation, the cut fraction of the request at v+v^{+}) and outputs, through a softmax (Appendix E.7), a predicted probability for each of the three classes rather than only the most likely class:

P^(v is ϵ-certain reject),P^(v is ϵ-certain accept),and\widehat{P}(v\text{ is }\epsilon\text{-certain reject}),\qquad \widehat{P}(v\text{ is }\epsilon\text{-certain accept}),\qquad\text{and}
P^(v is ϵ-uncertain)=1−P^(v is ϵ-certain reject)−P^(v is ϵ-certain accept).\widehat{P}(v\text{ is }\epsilon\text{-uncertain})=1-\widehat{P}(v\text{ is }\epsilon\text{-certain reject})-\widehat{P}(v\text{ is }\epsilon\text{-certain accept}).

We then compute the predicted branch probabilities as

h^(v+;ϵ)=12[1+P^(v is ϵ-certain accept)−P^(v is ϵ-certain reject)],h^(v−;ϵ)=1−h^(v+;ϵ).(15)\begin{aligned} \widehat{h}(v^{+};\epsilon)&=\frac{1}{2}\left[1+\widehat{P}(v\text{ is }\epsilon\text{-certain accept})-\widehat{P}(v\text{ is }\epsilon\text{-certain reject})\right],\\ \widehat{h}(v^{-};\epsilon)&=1-\widehat{h}(v^{+};\epsilon). \tag*{(15)} \end{aligned}

That is, h^(v+;ϵ)\widehat{h}(v^{+};\epsilon) is the average of 11 (certain accept), 00 (certain reject), and 12\frac{1}{2} (uncertain, the midpoint of [ϵ,1−ϵ][\epsilon,1-\epsilon]), weighted by the predicted class probabilities; it is the value h⋆(v+;ϵ)h^{\star}(v^{+};\epsilon) of Lemma 3 with the predicted class probabilities in place of the exact ones.

Lemma 3 (Midpoint branch probability). Fix a node vv. Its exact class probabilities bound the mean rounded branch probability:

E[h(v+;ϵ)∣v]≥P(v is ϵ-certain accept)+ϵP(v is ϵ-uncertain),\mathbb{E}[h(v^{+};\epsilon)\mid v]\geq P(v\text{ is }\epsilon\text{-certain accept})+\epsilon P(v\text{ is }\epsilon\text{-uncertain}),
E[h(v+;ϵ)∣v]≤P(v is ϵ-certain accept)+(1−ϵ)P(v is ϵ-uncertain).(16)\mathbb{E}[h(v^{+};\epsilon)\mid v]\leq P(v\text{ is }\epsilon\text{-certain accept})+(1-\epsilon)P(v\text{ is }\epsilon\text{-uncertain}). \tag*{(16)}

Optimal Budget Allocation via Dynamic Programming

Define the error of a candidate value x∈[0,1]x \in[0,1] as ∣x−E[h(v+;ϵ)∣v]∣|x-\mathbb{E}[h(v^+;\epsilon)\mid v]|, and its worst-case error as the largest such error over all means allowed by (16). The worst-case error is smallest at the midpoint of this interval,

h∗(v+;ϵ)=12[1+P(v is ϵ-certain accept)−P(v is ϵ-certain reject)].(17)h^*(v^+;\epsilon)=\frac{1}{2}\left[1+P(v\text{ is }\epsilon\text{-certain accept})-P(v\text{ is }\epsilon\text{-certain reject})\right]. \tag*{(17)}

Proof. By (11), h(v+;ϵ)h(v^+;\epsilon) is 1 on the certain-accept class, 0 on the certain-reject class, and AA on the uncertain class, so

E[h(v+;ϵ)∣v]=P(v is ϵ-certain accept)+P(v is ϵ-uncertain)E[A∣v is ϵ-uncertain].\mathbb{E}[h(v^+;\epsilon)\mid v]=P(v\text{ is }\epsilon\text{-certain accept})+P(v\text{ is }\epsilon\text{-uncertain})\mathbb{E}[A\mid v\text{ is }\epsilon\text{-uncertain}].

The conditional mean of AA on the uncertain class lies in [ϵ,1−ϵ][\epsilon,1-\epsilon], which gives (16). For a quantity known only to lie in an interval [a,b][a,b], an estimate xx has worst-case error max⁡{∣x−a∣,∣x−b∣}≥(b−a)/2\max\{|x-a|,|x-b|\}\ge(b-a)/2, with equality exactly at x=(a+b)/2x=(a+b)/2. The midpoint of the interval in (16) is

P(v is ϵ-certain accept)+12P(v is ϵ-uncertain)=12[1+P(v is ϵ-certain accept)−P(v is ϵ-certain reject)],\begin{aligned} P(v\text{ is }\epsilon\text{-certain accept})+\frac{1}{2}P(v\text{ is }\epsilon\text{-uncertain}) \\ &=\frac{1}{2}\left[1+P(v\text{ is }\epsilon\text{-certain accept})-P(v\text{ is }\epsilon\text{-certain reject})\right], \end{aligned}

where the equality uses that the three class probabilities sum to one. This is (17). □

Objective formulation. With h^\widehat{h} in place of hh, Lemma 1 gives the allocation objective: choose the selection I\mathcal{I} that maximizes the predicted expected transition count within the request budget,

max⁡IF^I(v0;ϵ)=∑v∈IR^(v;ϵ)s.t.I⊆Imax⁡ ancestor-closed,∣I∣≤Npf,(18)\begin{aligned} \max_{\mathcal{I}}\quad&\widehat{F}_{\mathcal{I}}(v_0;\epsilon)=\sum_{v\in\mathcal{I}}\widehat{R}(v;\epsilon)\\ \text{s.t.}\quad&\mathcal{I}\subseteq\mathcal{I}_{\max}\text{ ancestor-closed},\\ &|\mathcal{I}|\le N_{\mathrm{pf}}, \tag*{(18)} \end{aligned}

where

  • R^\widehat{R} and F^\widehat{F} are the reaching weights and the expected transition count of Definition 1, computed with the predicted branch probabilities h^\widehat{h} in (15) in place of the unknown hh;

  • the candidate set Imax⁡\mathcal{I}_{\max}, determined by Condition 1 and the depth cap K′K', 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 R^(v;ϵ)=0\widehat{R}(v;\epsilon)=0 would contribute nothing to the objective but still cost a request; this requires some h^\widehat{h} 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 FI(v0;0)F_{\mathcal{I}}(v_0;0) requires the value of AA, which is unknown until the proposal is generated, and an estimate of AA itself would carry error at every decision. Rounding removes the need to estimate AA on the ϵ\epsilon-certain decisions, at a bias of at most ϵ\epsilon per branch probability, but it does not remove the error of the class probabilities themselves. On the ϵ\epsilon-certain decisions, h(v+;ϵ)h(v^+;\epsilon) is exactly 0 or 1 and is determined by the class alone; on the ϵ\epsilon-uncertain ones, given exact class probabilities, the midpoint estimate is off by at most 12(1−2ϵ)P(v is ϵ-uncertain)\frac{1}{2}(1-2\epsilon)P(v\text{ is }\epsilon\text{-uncertain}) (Lemma 3). Since only 5%–33% of decisions are ϵ\epsilon-uncertain (Figure 4), the midpoint error affects a minority of decisions; the error of the classifier adds to it on every decision.

Optimal Budget Allocation via Dynamic Programming

Define V(v,b;ϵ)V(v,b;\epsilon) as the largest predicted transition count attainable from vv with at most bb requests,

V(v,b;ϵ)=max⁡Iv feasible below v,∣Iv∣≤bF^Iv(v;ϵ),(19)V(v,b;\epsilon)=\max_{\substack{\mathcal{I}_v\text{ feasible below }v,\\|\mathcal{I}_v|\le b}}\widehat{F}_{\mathcal{I}_v}(v;\epsilon), \tag*{(19)}

where a set of candidate nodes Iv\mathcal{I}_v is feasible below vv if Iv⊆Imax⁡\mathcal{I}_v\subseteq\mathcal{I}_{\max}, every element of Iv\mathcal{I}_v lies in the subtree rooted at vv, and every candidate node on the path from vv to an element of Iv\mathcal{I}_v also lies in Iv\mathcal{I}_v.

The optimization in (19) decomposes the budget at each node: one request expands vv itself, and the remaining b−1b-1 are split between its two child subtrees before the outcome at vv is known (Figure 10). This decomposition is inspired by the tree-based speculative decoding of Sequoia (Chen et al. [12]).

Budget decomposition visualization for Proposition 2

Figure 10. Budget decomposition visualization for Proposition 2.

Proposition 2 (Optimal predictive allocation). Fix ϵ\epsilon and the predicted branch probabilities h^(v+;ϵ)\hat{h}(v^+;\epsilon) and h^(v−;ϵ)\hat{h}(v^-;\epsilon) in (15). For every node vv and every budget b≥0b\ge0,

V(v,b;ϵ)={0,if v∉Imax⁡,0,if b=0,1+max⁡0≤m≤b−1{h^(v+;ϵ)V(v+,m;ϵ)+h^(v−;ϵ)V(v−,b−1−m;ϵ)},otherwise.(20)V(v,b;\epsilon)= \begin{cases} 0, & \text{if }v\notin\mathcal{I}_{\max},\\ 0, & \text{if }b=0,\\ 1+\max_{0\le m\le b-1}\left\{\hat{h}(v^+;\epsilon)V(v^+,m;\epsilon)+\hat{h}(v^-;\epsilon)V(v^-,b-1-m;\epsilon)\right\}, & \text{otherwise.} \end{cases} \tag*{(20)}

The maximum in (18) equals V(v0,Npf;ϵ)V(v_0,N_{\mathrm{pf}};\epsilon).

Proof. Boundary cases. A nonempty selection feasible below vv contains vv, so it needs both v∈Imax⁡v\in\mathcal{I}_{\max} and b≥1b\ge1. Either boundary case therefore leaves only the empty selection, giving V(v,b;ϵ)=0V(v,b;\epsilon)=0. Fix v∈Imax⁡v\in\mathcal{I}_{\max} and b≥1b\ge1 below.

Upper bound. Expanding vv alone has value one by Lemma 2, so an optimal Iv\mathcal{I}_v is nonempty and hence contains vv, 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 mm of them lie below v+v^+ and at most b−1−mb-1-m below v−v^-, where 0≤m≤b−10\le m\le b-1, then Lemma 2 with h^\hat{h} in place of hh and the optimality of each child value give

F^Iv(v;ϵ)≤1+h^(v+;ϵ)V(v+,m;ϵ)+h^(v−;ϵ)V(v−,b−1−m;ϵ).\widehat{F}_{\mathcal{I}_v}(v;\epsilon)\le1+\hat{h}(v^+;\epsilon)V(v^+,m;\epsilon)+\hat{h}(v^-;\epsilon)V(v^-,b-1-m;\epsilon).

Maximizing over mm gives the upper bound in (20).

Attainability. Conversely, combine a maximizing mm with optimal selections below v+v^+ and v−v^- at capacities mm and b−1−mb-1-m. Together with the expansion of vv they are feasible below vv and use at most bb requests, and Lemma 2 gives them exactly the maximized value. The bound is attained, which proves (20); induction from the leaves of the finite tree TK′\mathcal{T}_{K}^{\prime} then determines every V(v,b;ϵ)V(v,b;\epsilon).

Finally, feasibility below v0v_0 is ancestor closure within Imax⁡\mathcal{I}_{\max}, so V(v0,Npf;ϵ)V(v_0,N_{\mathrm{pf}};\epsilon) is the optimum of (18). ∎

Remark. Proposition 2 requires the predicted branch probabilities h^\hat{h} at every candidate node. Estimating them reduces to classification (Appendix § 12.7): by (11), h(v+;ϵ)h(v^{+}; \epsilon) is exactly zero or one on the two ϵ\epsilon-certain classes, so a classifier only needs to predict the class probabilities of each candidate node, and Lemma 3 converts them into h^(v+;ϵ)\hat{h}(v^{+}; \epsilon) without modeling AA within the uncertain class.

Experimental Settings

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 ([28]) 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 ([61]) 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 ([37]). We use a simplified version of Entropy-Guided Power Sampling (EGPS) ([19]), 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.

Datasets. We evaluate on seven datasets in three task categories (Table 3): mathematical reasoning (MATH500 ([36]), a 500-problem subset of MATH ([24]), and AIME 24&25), code generation (HumanEval ([10]), MBPP ([4]), and LiveCodeBench V6 (LCB V6) ([26])), and scientific and general knowledge (GPQA Diamond (GPQA) ([45]) and MMLU ([23])).

CategoryDatasetSource (Hugging Face)Instances
Mathematical reasoningMATH500HuggingFaceH4/MATH-500500
Mathematical reasoningAIME 24&25Maxwell-Jia/AIME_2024 MathArena/aime_202545
Code generationHumanEvalopenai/openai_humaneval164
Code generationMBPPgoogle-research-datasets/mbpp257
Code generationLCB V6livecodebench/code_generation_lite175
Scientific and general knowledgeGPQAIdavidrein/gpqa198
Scientific and general knowledgeMMLUcais/mmlu14,042

Table 3. Datasets and their full sizes; every run uses only the first 20 prompts of each dataset.

Base LLMs. We evaluate five base LLMs (Table 4), where “base LLM” denotes the backbone p0p_0. 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.

FamilyBase LLMSource (Hugging Face)Released
Qwen3Qwen3-4BQwen/Qwen3-4BApr 2025
Qwen3Qwen3-8BQwen/Qwen3-8BApr 2025
Qwen3.5Qwen3.5-4BQwen/Qwen3.5-4BFeb 2026
Qwen3.5Qwen3.5-9BQwen/Qwen3.5-9BFeb 2026
Gemma4Gemma4-12B-itgoogle/gemma-4-12B-itMay 2026

Table 4. Base LLMs and their sources.

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 KK realized MH transitions realizes K/# of model callsK/\#\text{ 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\#\text{ of model calls} \times\text{time per call} is its cumulative model-call time. Every reported speedup is a ratio of means over the prompts i=1,…,Ni=1,\ldots,N: the mean cumulative model-call time of the sequential sampler divided by that of its PreSTO variant,

Speedup⁡=1N∑icall time⁡i(sampler)1N∑icall time⁡i(PreSTO variant).(21)\operatorname{Speedup} = \frac{\frac{1}{N}\sum_i \operatorname{call\ time}_i(\text{sampler})} {\frac{1}{N}\sum_i \operatorname{call\ time}_i(\text{PreSTO variant})}. \tag*{(21)}

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 ([17] (Du et al. 2024)). For power sharpening, Karan and Du [28] characterize sampled responses by their length-normalized base-model likelihood and confidence. Let x0:n(K)=(x0,x1:n(K))\mathbf{x}_{0:n}^{(K)} = (\mathbf{x}_0,\mathbf{x}_{1:n}^{(K)}) be the terminal state after exactly KK realized MH transitions: the prompt x0\mathbf{x}_0 followed by a response of length nn. Its length-normalized log-likelihood is

Log-Likelihood⁡(x(K))=1nlog⁡p0(x1:n(K)∣x0),(22)\operatorname{Log-Likelihood}(\mathbf{x}^{(K)}) = \frac{1}{n}\log p_0(\mathbf{x}_{1:n}^{(K)} \mid\mathbf{x}_0), \tag*{(22)}

and its confidence is the mean negative entropy of the base model’s next-token distributions along the sequence:

Confidence⁡(x(K))=1n∑t=1n∑u∈Vp0(u∣x0:t−1(K))log⁡p0(u∣x0:t−1(K)),(23)\operatorname{Confidence}(\mathbf{x}^{(K)}) = \frac{1}{n}\sum_{t=1}^{n}\sum_{u\in\mathcal{V}} p_0(u \mid\mathbf{x}_{0:t-1}^{(K)})\log p_0(u \mid\mathbf{x}_{0:t-1}^{(K)}), \tag*{(23)}

where V\mathcal{V} is the vocabulary. Both statistics are computed under the same base model p0p_0, so they are comparable across samplers. Higher log-likelihood means a higher mean token log-probability under p0p_0, 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 δ\delta. For each sampler and its PreSTO variant, we match prompts and seeds, run both for the same KK, and take the per-prompt difference did_i of each statistic (PreSTO variant

minus sequential sampler), with mean μd\mu_d. The two one-sided tests (TOST) procedure Lakens, [30]; Schuirmann [48] tests

H0:∣μd∣≥δagainstH1:∣μd∣<δ(24)H_0 : \lvert\mu_d\rvert\ge\delta\qquad\text{against} \qquad H_1 : \lvert\mu_d\rvert< \delta \tag*{(24)}

with two one-sided paired tt-tests; peqp_{\mathrm{eq}} is the larger of their two pp-values. We set δ\delta to 0.2 standard deviations of the statistic across prompts under the sequential sampler, a conventional small effect, and declare equivalence when peq<0.05p_{\mathrm{eq}} < 0.05, that is, when the 90% confidence interval for μd\mu_d lies within (−δ,δ)(-\delta,\delta).

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.

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 § 12.§ 6), we also implement PowerMH and PreSTO-PowerMH on SGLang.

SoftwareVersion / configuration
Python3.13.0
PyTorch2.13.0
vLLM0.27.1 (V1 engine) with custom engine patches
Transformers5.14.1
HardwareSpecification
GPU1× NVIDIA H100 96 GB (GH200 Grace Hopper Superchip)
CPUNVIDIA Grace CPU, 72 cores (3.456 GHz)
Memory480 GB LPDDR5X unified memory

Table 5. Software and hardware configuration. (a) Software configuration. (b) Hardware configuration.

vLLM engine patches. Each MH transition needs the log-probability of a proposed suffix under both the proposal qτq_\tau and the base model p0p_0, and EntropyCut also needs the next-token entropy of p0p_0 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 xtx_t, it returns (i) the proposal log-probability log⁡qτ(xt∣x0:t−1)\log q_\tau(x_t \mid x_{0:t-1}) from the processed logits, as in unmodified vLLM; (ii) the base-model log-probability log⁡p0(xt∣x0:t−1)\log p_0(x_t \mid x_{0:t-1}) from the unprocessed copy; and (iii) the full-vocabulary entropy of p0p_0, computed from the unprocessed copy with the natural logarithm,

Ht=−∑u∈Vp0(u∣x0:t−1)log⁡p0(u∣x0:t−1),H_t = - \sum_{u \in\mathcal{V}} p_0(u \mid x_{0:t-1}) \log p_0(u \mid x_{0:t-1}),

Hyperparameter Configurations

Table 6 lists the default power-sampling settings and the settings of our case studies. Following Karan and Du [28], we set the proposal temperature to τ=1/α\tau= 1/\alpha for every sampler except MultiTryMH and PreSTO-MultiTryMH, whose candidates use the temperatures in Table 6(a); all runs use seed 10086.

ParameterSetting
Response lengthn=1024n = 1024 tokens (fixed; no early stop at EOS)
Block sizea single block, B=n=1024B = n = 1024
Power exponentα=4.0\alpha= 4.0
Proposal LLMqτ=q_\tau= base model sampled at temperature τ\tau
Proposal temperatureτ=1/α=0.25\tau= 1/\alpha= 0.25
Realized MH transitionsK=100K = 100
Prompts per datasetfirst 20 prompts
Seed10086
Traversal ruledefault BFS
Prefetch budgetNpf=20N_{\mathrm{pf}} = 20
EntropyCut cut-law exponentβ=4.0\beta= 4.0 (dimensionless)
MultiTryMH candidates per transition4, each at a temperature drawn from {0.25,0.5,1.0}\{0.25, 0.5, 1.0\}
ParameterSetting
Base model and datasetp0=p_0 = Qwen3.5-9B on LCB (Case Studies 1, 2, 5–8)
Realized MH transitionsK∈{10,20,30}K \in\{10, 20, 30\} (Case Study 8)
Certainty thresholdϵ=0.01\epsilon= 0.01 (Case Studies 4, 5, 7)
Prefetch budget (Case Study 2,5)Npf∈{8,10,12,16,20}N_{\mathrm{pf}} \in\{8, 10, 12, 16, 20\}

Table 6. Hyperparameter configurations. (a) Default power-sampling configuration. (b) Case study configuration.

Additional Experimental Results

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 Table 7, Table 8, and Table 9 report the mean and standard deviation of each metric for the three samplers.

DatasetBase LLMTotal Time (s) ↓Transitions per call ↑Time/call (s) ↓Speedup
MATH500 (Figure 12)Qwen3-4B277.41±45.48/157.85±20.51277.41 \pm45.48/157.85 \pm20.511/4.26±0.541/4.26 \pm0.542.77±0.45/6.62±0.232.77 \pm0.45/6.62 \pm0.231.76×1.76\times
MATH500 (Figure 12)Qwen3-8B336.64±58.87/192.00±24.30336.64 \pm58.87/192.00 \pm24.301/4.34±0.471/4.34 \pm0.473.37±0.59/8.23±0.273.37 \pm0.59/8.23 \pm0.271.75×1.75\times
MATH500 (Figure 12)Qwen3.5-4B365.78±80.61/233.47±73.77365.78 \pm80.61/233.47 \pm73.771/3.81±0.991/3.81 \pm0.993.66±0.81/8.22±0.473.66 \pm0.81/8.22 \pm0.471.57×1.57\times
MATH500 (Figure 12)Qwen3.5-9B478.02±74.36/272.29±59.03478.02 \pm74.36/272.29 \pm59.031/3.84±0.651/3.84 \pm0.654.78±0.74/10.11±0.524.78 \pm0.74/10.11 \pm0.521.76×1.76\times
MATH500 (Figure 12)Gemma4-12B-it980.09±240.16/431.85±175.94980.09 \pm240.16/431.85 \pm175.941/4.07±2.001/4.07 \pm2.009.80±2.40/15.06±1.379.80 \pm2.40/15.06 \pm1.372.27×2.27\times
AIME 24&25Qwen3-4B255.04±37.63/150.54±16.85255.04 \pm37.63/150.54 \pm16.851/4.57±0.491/4.57 \pm0.492.55±0.38/6.81±0.182.55 \pm0.38/6.81 \pm0.181.69×1.69\times
AIME 24&25Qwen3-8B345.86±62.77/192.57±26.84345.86 \pm62.77/192.57 \pm26.841/4.37±0.561/4.37 \pm0.563.46±0.63/8.28±0.303.46 \pm0.63/8.28 \pm0.301.80×1.80\times
AIME 24&25Qwen3.5-4B405.21±104.47/196.78±41.26405.21 \pm104.47/196.78 \pm41.261/4.29±0.641/4.29 \pm0.644.05±1.04/8.20±0.664.05 \pm1.04/8.20 \pm0.662.06×2.06\times
AIME 24&25Qwen3.5-9B490.26±82.75/277.80±65.23490.26 \pm82.75/277.80 \pm65.231/3.83±0.751/3.83 \pm0.754.90±0.83/10.21±0.514.90 \pm0.83/10.21 \pm0.511.76×1.76\times
AIME 24&25Gemma4-12B-it684.74±165.29/449.67±125.04684.74 \pm165.29/449.67 \pm125.041/3.55±0.851/3.55 \pm0.856.85±1.65/15.01±0.696.85 \pm1.65/15.01 \pm0.691.52×1.52\times
MBPPQwen3-4B260.73±60.29/218.41±48.68260.73 \pm60.29/218.41 \pm48.681/3.51±1.251/3.51 \pm1.252.61±0.60/7.15±0.202.61 \pm0.60/7.15 \pm0.201.19×1.19\times
MBPPQwen3-8B367.12±82.44/256.66±96.78367.12 \pm82.44/256.66 \pm96.781/4.00±1.421/4.00 \pm1.423.67±0.82/9.02±0.143.67 \pm0.82/9.02 \pm0.141.43×1.43\times
MBPPQwen3.5-4B509.39±79.35/207.31±22.63509.39 \pm79.35/207.31 \pm22.631/4.13±0.371/4.13 \pm0.375.09±0.79/8.49±0.275.09 \pm0.79/8.49 \pm0.272.46×2.46\times
MBPPQwen3.5-9B762.07±70.82/267.03±54.05762.07 \pm70.82/267.03 \pm54.051/4.30±0.921/4.30 \pm0.927.62±0.71/11.03±0.177.62 \pm0.71/11.03 \pm0.172.85×2.85\times
MBPPGemma4-12B-it1022.57±156.01/486.63±107.741022.57 \pm156.01/486.63 \pm107.741/3.25±0.731/3.25 \pm0.7310.23±1.56/15.12±1.0610.23 \pm1.56/15.12 \pm1.062.10×2.10\times
GPQAQwen3-4B372.97±69.04/178.64±32.15372.97 \pm69.04/178.64 \pm32.151/4.30±0.671/4.30 \pm0.673.73±0.69/7.49±0.423.73 \pm0.69/7.49 \pm0.422.09×2.09\times
GPQAQwen3-8B377.49±64.81/210.70±24.84377.49 \pm64.81/210.70 \pm24.841/4.39±0.501/4.39 \pm0.503.77±0.65/9.14±0.383.77 \pm0.65/9.14 \pm0.381.79×1.79\times
GPQAQwen3.5-4B397.44±97.55/203.25±52.71397.44 \pm97.55/203.25 \pm52.711/4.36±0.771/4.36 \pm0.773.97±0.98/8.50±0.493.97 \pm0.98/8.50 \pm0.491.96×1.96\times
GPQAQwen3.5-9B529.97±101.82/269.92±75.09529.97 \pm101.82/269.92 \pm75.091/4.21±0.751/4.21 \pm0.755.30±1.02/10.87±0.705.30 \pm1.02/10.87 \pm0.701.96×1.96\times
GPQAGemma4-12B-it943.24±225.03/435.88±116.35943.24 \pm225.03/435.88 \pm116.351/3.64±0.721/3.64 \pm0.729.43±2.25/15.17±1.479.43 \pm2.25/15.17 \pm1.472.16×2.16\times
HumanEvalQwen3-4B380.83±108.02/203.08±60.14380.83 \pm108.02/203.08 \pm60.141/3.68±1.371/3.68 \pm1.373.81±1.08/6.83±0.773.81 \pm1.08/6.83 \pm0.771.88×1.88\times
HumanEvalQwen3-8B441.98±154.66/215.14±88.83441.98 \pm154.66/215.14 \pm88.831/4.44±1.791/4.44 \pm1.794.42±1.55/8.30±1.044.42 \pm1.55/8.30 \pm1.042.05×2.05\times
HumanEvalQwen3.5-4B435.56±105.27/211.17±46.11435.56 \pm105.27/211.17 \pm46.111/3.71±0.761/3.71 \pm0.764.36±1.05/7.59±1.064.36 \pm1.05/7.59 \pm1.062.06×2.06\times
HumanEvalQwen3.5-9B767.76±90.41/268.95±108.36767.76 \pm90.41/268.95 \pm108.361/4.78±2.471/4.78 \pm2.477.68±0.90/10.56±0.447.68 \pm0.90/10.56 \pm0.442.85×2.85\times
HumanEvalGemma4-12B-it930.27±168.82/401.23±108.00930.27 \pm168.82/401.23 \pm108.001/3.76±1.021/3.76 \pm1.029.30±1.69/14.13±1.849.30 \pm1.69/14.13 \pm1.842.32×2.32\times
MMLUQwen3-4B390.39±105.60/192.26±42.67390.39 \pm105.60/192.26 \pm42.671/4.01±0.731/4.01 \pm0.733.90±1.06/7.44±0.343.90 \pm1.06/7.44 \pm0.342.03×2.03\times
MMLUQwen3-8B612.03±184.09/278.39±93.41612.03 \pm184.09/278.39 \pm93.411/3.90±1.151/3.90 \pm1.156.12±1.84/9.88±0.426.12 \pm1.84/9.88 \pm0.422.20×2.20\times
MMLUQwen3.5-4B395.79±86.46/240.24±86.12395.79 \pm86.46/240.24 \pm86.121/3.75±0.831/3.75 \pm0.833.96±0.86/8.39±0.833.96 \pm0.86/8.39 \pm0.831.65×1.65\times
MMLUQwen3.5-9B841.38±140.68/352.80±95.07841.38 \pm140.68/352.80 \pm95.071/3.49±0.871/3.49 \pm0.878.41±1.41/11.54±0.408.41 \pm1.41/11.54 \pm0.402.38×2.38\times
MMLUGemma4-12B-it887.63±220.26/376.96±167.32887.63 \pm220.26/376.96 \pm167.321/4.50±2.021/4.50 \pm2.028.88±2.20/14.11±1.678.88 \pm2.20/14.11 \pm1.672.35×2.35\times
LCB V6Qwen3-4B250.62±56.09/151.82±26.30250.62 \pm56.09/151.82 \pm26.301/4.19±0.621/4.19 \pm0.622.51±0.56/6.20±0.302.51 \pm0.56/6.20 \pm0.301.65×1.65\times
LCB V6Qwen3-8B340.08±82.22/220.38±65.17340.08 \pm82.22/220.38 \pm65.171/3.92±0.901/3.92 \pm0.903.40±0.82/8.15±0.733.40 \pm0.82/8.15 \pm0.731.54×1.54\times
LCB V6Qwen3.5-4B337.14±37.91/198.35±48.78337.14 \pm37.91/198.35 \pm48.781/4.31±0.591/4.31 \pm0.593.37±0.38/8.36±1.403.37 \pm0.38/8.36 \pm1.401.70×1.70\times
LCB V6Qwen3.5-9B463.80±52.32/242.89±35.93463.80 \pm52.32/242.89 \pm35.931/4.22±0.581/4.22 \pm0.584.64±0.52/10.08±0.474.64 \pm0.52/10.08 \pm0.471.91×1.91\times
LCB V6Gemma4-12B-it844.27±204.00/472.94±164.09844.27 \pm204.00/472.94 \pm164.091/3.56±0.991/3.56 \pm0.998.44±2.04/15.34±0.778.44 \pm2.04/15.34 \pm0.771.79×1.79\times

Table 8. EntropyCut execution metrics across base LLMs.

Figure 12. EntropyCut and PreSTO-EntropyCut on MATH500.

DatasetBase LLMTotal Time (s) ↓Transitions per call ↑Time/call (s) ↓Speedup
MATH500Qwen3-4B741.55±35.32/322.90±17.49741.55 \pm35.32/322.90 \pm17.491/2.02±0.111/2.02 \pm0.117.42±0.35/6.49±0.177.42 \pm0.35/6.49 \pm0.172.30×2.30\times
MATH500Qwen3-8B865.84±42.90/417.08±21.21865.84 \pm42.90/417.08 \pm21.211/2.04±0.101/2.04 \pm0.108.66±0.43/8.50±0.188.66 \pm0.43/8.50 \pm0.182.08×2.08\times
MATH500Qwen3.5-4B2174.72±142.35/375.23±14.432174.72 \pm142.35/375.23 \pm14.431/2.05±0.081/2.05 \pm0.0821.75±1.42/7.68±0.1621.75 \pm1.42/7.68 \pm0.165.80×5.80\times
MATH500Qwen3.5-9B3246.66±262.85/463.26±25.283246.66 \pm262.85/463.26 \pm25.281/2.05±0.111/2.05 \pm0.1132.47±2.63/9.48±0.1532.47 \pm2.63/9.48 \pm0.157.01×7.01\times
MATH500Gemma4-12B-it1558.70±79.33/686.49±45.491558.70 \pm79.33/686.49 \pm45.491/1.86±0.131/1.86 \pm0.1315.59±0.79/12.75±0.2015.59 \pm0.79/12.75 \pm0.202.27×2.27\times
AIME 24&25Qwen3-4B633.31±31.36/313.16±17.48633.31 \pm31.36/313.16 \pm17.481/2.03±0.111/2.03 \pm0.116.33±0.31/6.33±0.186.33 \pm0.31/6.33 \pm0.182.02×2.02\times
AIME 24&25Qwen3-8B867.08±41.03/429.22±17.70867.08 \pm41.03/429.22 \pm17.701/1.99±0.061/1.99 \pm0.068.67±0.41/8.52±0.208.67 \pm0.41/8.52 \pm0.202.02×2.02\times
AIME 24&25Qwen3.5-4B2337.06±148.90/381.74±16.292337.06 \pm148.90/381.74 \pm16.291/2.04±0.091/2.04 \pm0.0923.37±1.49/7.79±0.1923.37 \pm1.49/7.79 \pm0.196.12×6.12\times
AIME 24&25Qwen3.5-9B3522.15±239.42/510.54±27.053522.15 \pm239.42/510.54 \pm27.051/2.03±0.111/2.03 \pm0.1135.22±2.39/10.35±0.2435.22 \pm2.39/10.35 \pm0.246.90×6.90\times
AIME 24&25Gemma4-12B-it1705.50±87.72/672.72±34.821705.50 \pm87.72/672.72 \pm34.821/2.05±0.111/2.05 \pm0.1117.06±0.88/13.79±0.2817.06 \pm0.88/13.79 \pm0.282.54×2.54\times
MBPPQwen3-4B747.32±38.12/317.69±16.22747.32 \pm38.12/317.69 \pm16.221/2.00±0.101/2.00 \pm0.107.47±0.38/6.35±0.167.47 \pm0.38/6.35 \pm0.162.35×2.35\times
MBPPQwen3-8B857.30±42.10/434.58±29.62857.30 \pm42.10/434.58 \pm29.621/1.96±0.121/1.96 \pm0.128.57±0.42/8.50±0.238.57 \pm0.42/8.50 \pm0.231.97×1.97\times
MBPPQwen3.5-4B2083.62±128.92/389.74±22.832083.62 \pm128.92/389.74 \pm22.831/1.97±0.131/1.97 \pm0.1320.84±1.29/7.66±0.1520.84 \pm1.29/7.66 \pm0.155.35×5.35\times
MBPPQwen3.5-9B3088.45±181.21/520.56±38.973088.45 \pm181.21/520.56 \pm38.971/1.83±0.131/1.83 \pm0.1330.88±1.81/9.46±0.1630.88 \pm1.81/9.46 \pm0.165.93×5.93\times
MBPPGemma4-12B-it1485.77±74.38/682.29±31.671485.77 \pm74.38/682.29 \pm31.671/1.82±0.091/1.82 \pm0.0914.86±0.74/12.41±0.2614.86 \pm0.74/12.41 \pm0.262.18×2.18\times
GPQAQwen3-4B760.17±39.39/324.25±18.52760.17 \pm39.39/324.25 \pm18.521/1.97±0.131/1.97 \pm0.137.60±0.39/6.38±0.187.60 \pm0.39/6.38 \pm0.182.34×2.34\times
GPQAQwen3-8B873.76±43.90/427.11±25.97873.76 \pm43.90/427.11 \pm25.971/2.01±0.141/2.01 \pm0.148.74±0.44/8.54±0.198.74 \pm0.44/8.54 \pm0.192.05×2.05\times
GPQAQwen3.5-4B2135.71±126.60/378.95±16.082135.71 \pm126.60/378.95 \pm16.081/2.03±0.101/2.03 \pm0.1021.36±1.27/7.69±0.1421.36 \pm1.27/7.69 \pm0.145.64×5.64\times
GPQAQwen3.5-9B3197.39±221.97/467.95±19.993197.39 \pm221.97/467.95 \pm19.991/2.04±0.091/2.04 \pm0.0931.97±2.22/9.51±0.1731.97 \pm2.22/9.51 \pm0.176.83×6.83\times
GPQAGemma4-12B-it1444.83±69.75/678.05±50.571444.83 \pm69.75/678.05 \pm50.571/1.87±0.151/1.87 \pm0.1514.45±0.70/12.61±0.2714.45 \pm0.70/12.61 \pm0.272.13×2.13\times
HumanEvalQwen3-4B753.01±39.06/341.15±23.26753.01 \pm39.06/341.15 \pm23.261/1.94±0.141/1.94 \pm0.147.53±0.39/6.59±0.187.53 \pm0.39/6.59 \pm0.182.21×2.21\times
HumanEvalQwen3-8B867.99±45.68/455.50±29.38867.99 \pm45.68/455.50 \pm29.381/1.89±0.141/1.89 \pm0.148.68±0.46/8.56±0.208.68 \pm0.46/8.56 \pm0.201.91×1.91\times
HumanEvalQwen3.5-4B2179.86±113.33/390.14±23.082179.86 \pm113.33/390.14 \pm23.081/1.97±0.131/1.97 \pm0.1321.80±1.13/7.66±0.1921.80 \pm1.13/7.66 \pm0.195.59×5.59\times
HumanEvalQwen3.5-9B3248.00±177.40/525.50±26.423248.00 \pm177.40/525.50 \pm26.421/1.78±0.091/1.78 \pm0.0932.48±1.77/9.32±0.1832.48 \pm1.77/9.32 \pm0.186.18×6.18\times
HumanEvalGemma4-12B-it1473.37±73.60/680.25±59.151473.37 \pm73.60/680.25 \pm59.151/1.89±0.111/1.89 \pm0.1114.73±0.74/12.81±1.1714.73 \pm0.74/12.81 \pm1.172.17×2.17\times
MMLUQwen3-4B736.92±35.99/345.12±28.39736.92 \pm35.99/345.12 \pm28.391/1.85±0.171/1.85 \pm0.177.37±0.36/6.35±0.227.37 \pm0.36/6.35 \pm0.222.14×2.14\times
MMLUQwen3-8B858.38±44.28/446.25±28.97858.38 \pm44.28/446.25 \pm28.971/1.90±0.151/1.90 \pm0.158.58±0.44/8.44±0.198.58 \pm0.44/8.44 \pm0.191.92×1.92\times
MMLUQwen3.5-4B2445.00±125.15/384.31±22.862445.00 \pm125.15/384.31 \pm22.861/2.01±0.121/2.01 \pm0.1224.45±1.25/7.70±0.1524.45 \pm1.25/7.70 \pm0.156.36×6.36\times
MMLUQwen3.5-9B3764.61±197.19/544.38±54.163764.61 \pm197.19/544.38 \pm54.161/1.82±0.211/1.82 \pm0.2137.65±1.97/9.81±0.2137.65 \pm1.97/9.81 \pm0.216.92×6.92\times
MMLUGemma4-12B-it1673.76±80.51/717.93±43.531673.76 \pm80.51/717.93 \pm43.531/1.92±0.121/1.92 \pm0.1216.74±0.81/13.74±0.2116.74 \pm0.81/13.74 \pm0.212.33×2.33\times
LCB V6Qwen3-4B781.77±48.77/337.69±8.76781.77 \pm48.77/337.69 \pm8.761/1.96±0.061/1.96 \pm0.067.82±0.49/6.61±0.167.82 \pm0.49/6.61 \pm0.162.32×2.32\times
LCB V6Qwen3-8B908.99±62.75/436.38±22.48908.99 \pm62.75/436.38 \pm22.481/2.00±0.131/2.00 \pm0.139.09±0.63/8.69±0.259.09 \pm0.63/8.69 \pm0.252.08×2.08\times
LCB V6Qwen3.5-4B2197.08±189.19/381.58±12.132197.08 \pm189.19/381.58 \pm12.131/2.04±0.091/2.04 \pm0.0921.97±1.89/7.79±0.2221.97 \pm1.89/7.79 \pm0.225.76×5.76\times
LCB V6Qwen3.5-9B3260.87±315.74/474.97±21.883260.87 \pm315.74/474.97 \pm21.881/2.03±0.091/2.03 \pm0.0932.61±3.16/9.62±0.2232.61 \pm3.16/9.62 \pm0.226.87×6.87\times
LCB V6Gemma4-12B-it1494.62±85.17/673.93±96.531494.62 \pm85.17/673.93 \pm96.531/1.93±0.191/1.93 \pm0.1914.95±0.85/12.88±0.8714.95 \pm0.85/12.88 \pm0.872.22×2.22\times

Table 9. MultiTryMH execution metrics across base LLMs.

Case Study 2: Effect of prefetch budget

Setting. On LCB V6 with Qwen3.5-9B under the default BFS traversal at K=100K = 100, we compare PreSTO-PowerMH at Npf∈{8,10,12,16,20}N_{\mathrm{pf}} \in\{8, 10, 12, 16, 20\} 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 K=100K = 100 realized MH transitions, and confirms the findings of § 5.2.

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 NpfN_{\mathrm{pf}}) to dark (large NpfN_{\mathrm{pf}}). Dashed curves show PowerMH, and shaded bands show ±1 SD over traces.

  • Transitions per call grow with the budget. They rise from 3.59 at Npf=8N_{\mathrm{pf}} = 8 to 4.91 at the default Npf=20N_{\mathrm{pf}} = 20 (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 1.20× at Npf=8N_{\mathrm{pf}} = 8 to 1.44× at Npf=20N_{\mathrm{pf}} = 20, the largest budget tested.

Case Study 3: Likelihood and confidence

Setting. Following Karan and Du [28], we describe each terminal trace by its token-normalized log-likelihood (Eq. (22)) and confidence (Eq. (23)) under p0p_0. We compare each sampler with its PreSTO variant at Npf=20N_{\mathrm{pf}} = 20 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 § 11 to the per-prompt difference, PreSTO minus baseline, with margin δ=0.2\delta= 0.2 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 p0p_0 changes the scoring distribution itself.

Results. Figure 14 shows all retained pairs and confirms the findings of § 5.2.

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 p0p_0 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 (peq<0.05p_{\mathrm{eq}} < 0.05).

  • 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.

  • 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.

Case Study 4: Distribution of ϵ\epsilon-certainty

Setting. This case study extends the certainty analysis of § 3.3 to more base LLMs, more datasets, and the EntropyCut proposal rule. With ϵ=0.01\epsilon= 0.01, an MH decision with acceptance probability AA is an ϵ\epsilon-certain reject if A≤ϵA \le\epsilon, an ϵ\epsilon-certain accept if A≥1−ϵA \ge1 - \epsilon, and ϵ\epsilon-uncertain otherwise.

The histograms count both outgoing edges of every scored decision, with transition probabilities AA and 1−A1 - A, and call an edge ϵ\epsilon-certain when its transition probability is at most ϵ\epsilon or at least 1−ϵ1 - \epsilon; the two outer categories therefore have equal mass, and their combined share equals the fraction of ϵ\epsilon-certain decisions.

Results. Figures 15 and 16 confirm the findings of § 5.2. We find that Most decisions are ϵ\epsilon-certain. Under PreSTO-PowerMH, 56%–95% of edges are ϵ\epsilon-certain for the Qwen models and 67%–78% for Gemma4-12B-it; under PreSTO-EntropyCut, 60%–92% and 60%–93%.

Case Study 5: Effect of traversal rules

We compare the predictive traversal rule (Appendix § 10.§ 3) with the default BFS traversal; Appendix § 12.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 Npf∈{8,10,12,16,20}N_{\mathrm{pf}} \in\{8, 10, 12, 16, 20\}. The classifier of the predictive rule is the cut-fraction logistic regression of Appendix § 12.7.

Results.

  • Faster at every budget. The predictive rule is 1.25×1.25\times–1.37×1.37\times 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 19%–33% more MH transitions per call, so it needs 1.19×1.19\times–1.33×1.33\times fewer calls for the same KK (Figure 7(a)); its time per call is also 2.6%–4.9% shorter (Figure 7(b)).

  • The gain is largest at Npf=20N_{\mathrm{pf}} = 20 (1.37×1.37\times), where the predictive rule raises the transitions per call from 4.91 to 6.54.

NpfN_{\mathrm{pf}}Model callsTransitions per callTime per call (s)Model-call time (s)Speedup
BFSPredictiveBFSPredictiveBFSPredictiveBFSPredictive
827.8523.403.594.2716.1515.35449.7±19.1449.7 \pm19.1359.2±28.0359.2 \pm28.01.25×1.25\times
1025.4020.153.944.9616.5616.00420.7±25.5420.7 \pm25.5322.3±28.5322.3 \pm28.51.31×1.31\times
1223.4018.904.275.2917.5817.13411.4±38.7411.4 \pm38.7323.8±39.5323.8 \pm39.51.27×1.27\times
1621.6017.104.635.8518.1517.34392.1±33.8392.1 \pm33.8296.6±45.8296.6 \pm45.81.32×1.32\times
2020.3515.304.916.5418.4317.95375.1±35.1375.1 \pm35.1274.7±40.1274.7 \pm40.11.37×1.37\times

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.

Figure 7(d) and Figure 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.

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.

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.

Results. PreSTO-PowerMH is faster than PowerMH under both engines, so the acceleration is not specific to vLLM (Table 11).

EngineSamplerCallsTime per call (s)Model-call time (s)Speedup
vLLMPowerMH1005.39±0.315.39 \pm0.31539.24±30.92539.24 \pm30.921.40×1.40\times
vLLMPreSTO-PowerMH20.60±1.3120.60 \pm1.3118.75±0.4318.75 \pm0.43385.97±21.25385.97 \pm21.251.40×1.40\times
SGLangPowerMH1003.57±0.243.57 \pm0.24357.40±23.67357.40 \pm23.671.97×1.97\times
SGLangPreSTO-PowerMH21.25±1.8621.25 \pm1.868.56±0.108.56 \pm0.10181.74±15.25181.74 \pm15.251.97×1.97\times

Table 11. PowerMH and PreSTO-PowerMH on vLLM and SGLang.

  • The speedup is larger under SGLang (1.97×1.97\times against 1.40×1.40\times under vLLM). Both engines cut the number of calls by a similar factor (4.7×4.7\times and 4.9×4.9\times), but a PreSTO-PowerMH call costs 2.4×2.4\times a PowerMH step under SGLang against 3.5×3.5\times under vLLM.

  • SGLang is faster in absolute time: 1.5×1.5\times faster than vLLM for PowerMH and 2.1×2.1\times for PreSTO-PowerMH.

Case Study 7: Predicting ϵ\epsilon-certainty before generation

The predictive traversal rule (Appendix § 10.§ 3) needs the class probabilities P^(v is ϵ-certain reject)\widehat{P}(v\text{ is }\epsilon\text{-certain reject}) and P^(v is ϵ-certain accept)\widehat{P}(v\text{ is }\epsilon\text{-certain accept}) of every candidate node vv before the proposal at v+v^+ is generated. We therefore predict, from information available before generation, which of the three classes of § 3.3 each candidate node falls into: certain reject (A≤ϵA \le\epsilon), certain accept (A≥1−ϵA \ge1-\epsilon), or uncertain (ϵ<A<1−ϵ\epsilon< A < 1-\epsilon). We use the results to choose the input features and the model of the rule.

Setting. Each run records the acceptance probability A=A(v+,v)A=A(v^+,v) 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 ϵ\epsilon-certain rejects, 945 ϵ\epsilon-certain accepts, and 862 ϵ\epsilon-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 Npf=10N_{\mathrm{pf}}=10, 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 KK 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 cj/Tc_j/T of the request, where vjv_j is the acceptance child of the node viv_i (that is, vi=vv_i=v and vj=v+v_j=v^+).

  • Feature 2 (tree position): the cut index cic_i of viv_i, the gap ci−cjc_i-c_j, the depth of viv_i, and the number of acceptances on the path from the root to viv_i.

  • 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 vv has a standardized feature vector x∈Rd\mathbf{x} \in\mathbb{R}^{d} and a true class y(v)∈{1,2,3}y(v) \in\{1, 2, 3\}: ϵ\epsilon-certain reject, ϵ\epsilon-certain accept, or ϵ\epsilon-uncertain, in the order of Appendix § 10.§ 3. We use a three-class logistic regression, that is, a linear layer with weights WW followed by a softmax over the three classes. It thus outputs P^(v is ϵ-certain reject)\widehat{P}(v\text{ is }\epsilon\text{-certain reject}) and P^(v is ϵ-certain accept)\widehat{P}(v\text{ is }\epsilon\text{-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,

P^(y=k∣v)=softmax⁡k(W2ReLU⁡(W1x+b1)+b2),k=1,2,3,(25)\widehat{P}(y=k \mid v)=\operatorname{softmax}_{k}\left(W_{2}\operatorname{ReLU}(W_{1}\mathbf{x}+b_{1})+b_{2}\right), \qquad k=1,2,3, \tag*{(25)}

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\mathcal{D} of nodes,

L(D)=−1∣D∣∑v∈Dlog⁡P^(y=y(v)∣v),(26)\mathcal{L}(\mathcal{D})=-\frac{1}{\lvert\mathcal{D}\rvert}\sum_{v\in\mathcal{D}}\log\widehat{P}(y=y(v)\mid v), \tag*{(26)}

with the natural logarithm, plus the L2L_{2} penalty λ2∣D∣\frac{\lambda}{2\lvert\mathcal{D}\rvert} times the sum of squared weights, biases excluded: λ=1\lambda=1 for the logistic regression (scikit-learn’s C=1/λ=1C=1/\lambda=1), and λ=10−3\lambda=10^{-3} 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 vv in the set U\mathcal{U} of all nodes is scored by a model that never saw its prompt. Let sk(v)=P^(y=k∣v)s_k(v)=\widehat{P}(y=k\mid v) be the held-out probability of class kk. We report two metrics, each against a constant baseline that ignores the features:

  • Accuracy: the fraction of nodes whose most likely class y^(v)=arg⁡max⁡ksk(v)\widehat{y}(v)=\arg\max_k s_k(v) equals y(v)y(v); the baseline always predicts the most frequent class.

  • Log loss: L(U)\mathcal{L}(\mathcal{U}) in (26), computed with the held-out probabilities sk(v)s_k(v); 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 y^(v)\widehat{y}(v).

Results. We use the logistic regression with the cut fraction cj/Tc_j/T 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.

Prediction of the $\epsilon$-certainty class by feature set

Figure 18. Prediction of the ϵ\epsilon-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.

Figure 19. Effect of hidden layers on predicting the ϵ\epsilon-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.

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-NN ([51, 53]), and PowerSMC ([5]). Low-temperature sampling and best-of-NN do not target p0αp_0^{\alpha}: scaling each token’s logits by α\alpha renormalizes every conditional separately, which differs from the sequence-level power distribution ([28]). 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 α=4\alpha= 4. PowerMH and PreSTO-PowerMH ignore the end-of-sequence token and always generate all 1,024 new tokens, whereas low-temperature sampling, best-of-NN, 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 K∈{10,20,30}K \in\{10, 20, 30\} MH transitions, fewer than the K=100K = 100 of the main runs, and PreSTO-PowerMH uses the default BFS traversal at Npf=10N_{\mathrm{pf}} = 10. Low-temperature sampling draws one sample at temperature 1/α=0.251/\alpha= 0.25; best-of-NN draws N∈{4,8,16,32}N \in\{4, 8, 16, 32\} 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 p0p_0. PowerSMC grows P∈{2,4,8,16,32}P \in\{2, 4, 8, 16, 32\} particles in blocks of 128 tokens, resamples when the effective sample size falls below half, and ramps the exponent to α\alpha 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-NN and PowerSMC decode all samples or particles at once, so their peak KV-pool use grows with NN or PP, reaching 12.7% of the pool at N=32N = 32 and 8.5% at P=32P = 32. PreSTO-PowerMH batches 10 proposals and peaks at 2.9%–3.1% at every KK, 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.

Example prefetched-subtree trajectory

We print the raw log of one prefetched subtree. Each line of the log is a node viv_i, printed as Node(id=i, cut_idx=c_i). Node viv_i has acceptance child v2i+1v_{2i+1} and rejection child v2i+2v_{2i+2}; 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 v2i+1v_{2i+1}, so the edge is taken with probability min⁡{1,exp⁡(log_mh_ratio)}\min\{1,\exp(\text{log\_mh\_ratio})\}; 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 v9v_9; 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 v30v_{30}.

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: 0 → 1 → 3

The sampled path (Box 2) accepts at v0v_0 and v1v_1, advancing the chain from step 0 to step 2. Both decisions are ϵ\epsilon-certain at ϵ=0.01\epsilon= 0.01: the ratio at v0v_0 accepts with probability above 0.9999, and v1v_1 accepts with probability 1. The ϵ\epsilon-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 v0→v1→v3v_0 \to v_1 \to v_3, which is the sampled path.

Box 3:  ε-rounded tree (ε = 0.01)

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 Npf=20N_{\mathrm{pf}} = 20. Figure 21 shows them in sampling order; together they cover the chain’s full trajectory of 100 MH transitions.

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, Npf=20N_{\mathrm{pf}} = 20). Each label gives the MH steps the subtree advances. Solid left edges: acceptance; dashed right edges: rejection; orange: ϵ\epsilon-rounded subtree (ϵ=0.01\epsilon= 0.01, Definition 1); blue: sampled path (endpoint double-bordered); gray: other prefetched branches.

References

  1. [1]Minoo Ahmadi, Seyedamin Azizi, Erfan Baghaei Potraghloo, Mehdi Kamal, and Massoud Pedram. Chopthin-Consensus Power Sampling: A Diversity-Preserving Approach to LLM Decoding. In COLM 2026 Workshop on Efficient Reasoning, 2026.arxiv.org/abs/2609.12243
  2. [2]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.arxiv.org/abs/1403.7265
  3. [3]Aleksei Arzhantsev, Ot mane Sakhi, and Nicolas Chopin. Self-Consistency via Marginal Sharpening. arXiv preprint arXiv:2605.28142, 2026.arxiv.org/abs/2605.28142
  4. [4]Jacob Austin, Augustus Odena, Maxwell I. Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie J. Cai, Michael Terry, Qouc V. Le, and Charles Sutton. Program Synthesis with Large Language Models. arXiv preprint arXiv:2108.07732, 2021.arxiv.org/abs/2108.07732
  5. [5]Seyedamin Azizi, Erfan Baghaei Potraghloo, Minoo Ahmadi, Souvik Kundu, and Massoud Pedram. Power-SMG: Low-Latency Sequence-Level Power Sampling for Training-Free LLM Reasoning. arXiv preprint arXiv:2602.10273, 2026.arxiv.org/abs/2602.10273
  6. [6]A. E. Brockwell. Parallel Markov chain Monte Carlo Simulation by Pre-Fetching. Journal of Computational and Graphical Statistics, 15(1):246–261, 2006.DOI
  7. [7]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.arxiv.org/abs/2401.10774
  8. [8]Ben Calderhead. A General Construction for Parallelizing Metropolis–Hastings Algorithms. Proceedings of the National Academy of Sciences, 111(49):17408–17413, 2014.DOI
  9. [9]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.arxiv.org/abs/2302.01318
  10. [10]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. Chantzıs, 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.
  11. [11]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.arxiv.org/abs/2504.13837
  12. [12]Zhuoming Chen, Avner May, Ruslan Svirschевski, Yuhsun Huang, Max Ryabinin, Zhihao Jia, and Beidi Chen. Sequoia: Scalable and Robust Speculative Decoding. volume 37, 2024.arxiv.org/abs/2402.12374
  13. [14]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.arxiv.org/abs/2502.05234
  14. [15]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.arxiv.org/abs/2604.15672
  15. [16]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.arxiv.org/abs/2406.00049
  16. [17]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.arxiv.org/abs/2312.04510
  17. [18]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.DOI
  18. [19]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.arxiv.org/abs/2606.09926
  19. [20]W. K. Hastings. Monte Carlo sampling methods using Markov chains and their applications. Biometrika, 57(1):97–109, 1970.
  20. [21]Andre He, Daniel Fried, and Sean Welleck. Rewarding the unlikely: Lifting GRPO beyond distribution sharpening. arXiv preprint arXiv:2506.02355, 2025.arxiv.org/abs/2506.02355
  21. [22]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.arxiv.org/abs/2608.26120
  22. [23]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.
  23. [24]Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Stiven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring Mathematical Problem Solving With the MATH Dataset. In NeurIPS Datasets and Benchmarks, 2021b.arxiv.org/abs/2103.03874
  24. [25]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.arxiv.org/abs/2503.24290
  25. [26]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.arxiv.org/abs/2403.07974
  26. [27]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.arxiv.org/abs/2601.21590
  27. [28]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.arxiv.org/abs/2510.14901
  28. [29]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.arxiv.org/abs/2309.06180
  29. [30]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.DOI
  30. [31]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.arxiv.org/abs/2211.17192
  31. [32]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.arxiv.org/abs/2502.00921
  32. [33]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.arxiv.org/abs/2406.16858
  33. [34]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.arxiv.org/abs/2401.15077
  34. [35]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.DOI
  35. [36]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.arxiv.org/abs/2305.20050
  36. [37]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.DOI
  37. [38]Zibin Meng, Peng Xie, and Kani Chen. Depth-Entropy Guided Sampling for Training-Free LLM Reasoning. arXiv preprint arXiv:2607.09693, 2026.arxiv.org/abs/2607.09693
  38. [39]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.
  39. [40]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.DOI
  40. [41]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.
  41. [42]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.arxiv.org/abs/2604.16259
  42. [43]Radford M. Neal. Annealed importance sampling. Statistics and Computing, 11(2):125–139, 2001.
  43. [44]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.arxiv.org/abs/2605.02427
  44. [45]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.arxiv.org/abs/2311.12022
  45. [46]Malcolm Sambridge. A Parallel Tempering algorithm for probabilistic sampling and optimization. Geophysical Journal International, 196(1):357–374, 2014.DOI
  46. [47]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.
  47. [48]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.pubmed.ncbi.nlm.nih.gov/3450848
  48. [49]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.arxiv.org/abs/2402.03300
  49. [50]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.arxiv.org/abs/1811.03115
  50. [51]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.arxiv.org/abs/2009.01325
  51. [52]Ingvar Strid. Efficient parallelisation of Metropolis–Hastings algorithms using a prefetching approach. Computational Statistics & Data Analysis, 54(11):2814–2835, 2010.DOI
  52. [53]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.arxiv.org/abs/2410.20290
  53. [54]Akiyoshi Tomihari and Issei Sato. Power Distribution Bridges Sampling, Self-Reward RL, and Self-Distillation. arXiv preprint arXiv:2605.04542, 2026.arxiv.org/abs/2605.04542
  54. [55]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.arxiv.org/abs/2510.01218
  55. [56]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.arxiv.org/abs/2401.07851
  56. [57]Guifeng Ye and Shaowen Lu. Prefetching-based Multiproposal Markov Chain Monte Carlo Algorithm. IEEE Transactions on Artificial Intelligence, 5(9):4493–4505, 2024.DOI
  57. [58]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.arxiv.org/abs/2606.27359
  58. [59]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.arxiv.org/abs/2404.17546
  59. [60]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.arxiv.org/abs/2312.07104
  60. [61]Felix Zhou, Anay Mehrotra, and Quanquan C. Liu. Reasoning with Sampling: Cutting at Decision Points. arXiv preprint arXiv:2605.30327, 2026.arxiv.org/abs/2605.30327
  61. [62]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.arxiv.org/abs/2309.02772

Paper details

vlnc:W_t6syw329
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents