arXiv:2610.13171cs.CLOct 2026

Manuscript Offprint

arXiv:2610.13171

PreSTO: Predictive Subtree Prefetching for Fast LLM Power Sampling

Nan Jiang, Panagiotis Theodoropoulos, Wei Deng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Nan Jiang 1^{1}, Panagiotis Theodoropoulos 2^{2} and Wei Deng 3^{3}

1^{1}University of Texas at El Paso, 2^{2}Georgia Institute of Technology, 3^{3}Morgan Stanley

Power sampling improves large language model (LLM) reasoning at test time by sampling from a sharpened version of the base model's distribution. Its sampler, PowerMH, is slow because its Metropolis–Hastings (MH) updates are sequential: each accept/reject decision sets the state from which the next proposal is generated. Prior work reduces this cost by changing the sampler or the model (e.g., sequential Monte Carlo, approximate lookahead, distillation). We propose Predictive SubTree Prefetching (PreSTO), which accelerates PowerMH by prefetching future proposals and provably leaves its MH transition kernel unchanged. PreSTO views future MH outcomes as a tree of accept/reject decisions: in each model call, it generates the proposals of a prefetched subtree of this tree in one batch, then follows the realized path with the original MH acceptance rule. We also observe that MH reaches only a sparse, nearly unary part of each prefetched subtree, we further design a predictive traversal rule that chooses the subtree to maximize the predicted number of completed transitions. Across seven datasets and five base LLMs, PreSTO achieves median speedups of 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.37×1.25\times-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

1. Introduction

Large language models (LLMs) perform strongly on reasoning tasks such as competition mathematics, code generation, and graduate-level science questions (Hendrycks et al., 2021b; Li et al., 2022; Rein et al., 2024). These capabilities are commonly improved by reinforcement learning (RL) post-training with task-specific rewards (Guo et al., 2025; Hu et al., 2025). Recent work suggests that RL post-training largely sharpens the base model's distribution (Chen et al., 2025; He et al., 2025; Shao et al., 2026), and that sampling directly from a sharpened distribution, known as power sampling, can perform comparably to RL post-training without additional training (Karan and Du, 2026).

(a) vs. PowerMH

Figure

(b) vs. EntropyCut

(c) vs. MultiTryMH

base LLM

Qwen3-4B

Qwen3.5-4B

Qwen3.5-9B

Gemma4-12B-it

Qwen3-8B

dataset

MATH500

×LCB V6

MBPP

GPQA

HumanEval

+MMLU

AIME 24&25

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

Corresponding Author: njiang@utep.edu

However, PowerMH, the Metropolis–Hastings (MH) sampler for power sampling, is expensive (Ji et al., 2026): on MATH500, it generates up to 8.8×8.8\times as many tokens as standard sampling (Karan and Du, 2026), and on LCB V6 with Qwen3.5-9B, it takes 6.5×−18.4×6.5\times-18.4\times as long per prompt as single-sample low-temperature sampling (Case Study 8, Appendix E.8). Follow-up work improves it in four directions: (1) Alternative samplers replace serial MH with sequential Monte Carlo (SMC) or replica exchange (Azizi et al., 2026; He et al., 2026). (2) Efficient approximations of the power target reduce inference cost (Ji et al., 2026; Nguyen et al., 2026). (3) Proposal refinements choose cut indices by token-level entropy to improve mixing (Guo et al., 2026; Zhou et al., 2026). (4) Objective or training changes target the answer marginal (Arzhantsev et al., 2026) or fine-tune the model on power-sampled responses (Tomihari and Sato, 2026).

The main bottleneck of PowerMH is the sequential dependence between MH transitions: in a standard implementation, each proposal must be accepted or rejected before the next is generated from the resulting state. We draw on prefetching in classical MCMC (Angelino et al., 2014; Brockwell, 2006): future MH transitions form a tree of accept/reject outcomes, and each sequential run traces one root-to-leaf path. If the proposals on this path are available in advance, several transitions complete without another model call.

We present Predictive SubTree Prefetching (PreSTO), a framework for accelerating MH-based sharpened sampling by completing several MH transitions per model call. In each round, PreSTO builds a prefetched subtree, generates its feasible proposals in one batched model call, and follows the realized path with the original MH acceptance rule. We prove that PreSTO-PowerMH leaves the MH transition kernel of PowerMH unchanged (Proposition 1). We further observe that, under the power-sharpened target, MH reaches only a sparse, nearly unary part of each prefetched subtree (Figure 4 and Appendix E.4), so a breadth-first traversal spends much of the budget on nodes that MH rarely visits. Motivated by this, we propose a improved predictive traversal rule that allocates the prefetch budget to maximize the expected number of MH transitions completed per call. PreSTO trades fewer serial calls for a costlier batched call; with prefix-cache reuse across requests, total latency falls whenever the saved calls outweigh the extra cost per batch.

In experiments, we apply PreSTO to PowerMH, EntropyCut, and MultiTryMH on seven datasets and five base LLMs. PreSTO is never slower than its baseline in all 105 settings, with median speedups of 1.71×1.71\times over PowerMH, 1.91×1.91\times over EntropyCut, and 2.33×2.33\times over MultiTryMH, and maximum speedups of 2.29×2.29\times and 2.85×2.85\times 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×1.94\times-4.92\times fewer calls, each taking 1.90×−3.42×1.90\times-3.42\times 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×1.25\times-1.37\times faster than the default breadth-first search (BFS) traversal at all five prefetch budgets tested on LCB V6 with Qwen3.5-9B (Figure 7).