PreSTO:面向快速LLM功率采样的预测性子树预取

·

研究论文 · 2026/10/12

Power sampling 通过在测试时从基础模型分布的锐化版本中采样来提升大语言模型(LLM)的推理能力。其采样器 PowerMH 速度较慢,因为其 Metropolis-Hastings(MH)更新是顺序的:每个接受/拒绝决策决定了生成下一个提议的状态。先前的工作通过改变采样器或模型(如序列蒙特卡洛、近似前瞻、蒸馏)来降低这一成本。我们提出 Predictive SubTree Prefetching(PreSTO),它通过预取未来提议来加速 PowerMH,并可证明地保持其 MH 转移核不变。PreSTO 将未来的 MH 结果视为一棵接受/拒绝决策树:在每次模型调用中,它批量生成该树的一个预取子树的提议,然后按照原始 MH 接受规则沿实际路径前进。我们还观察到 MH 仅到达每个预取子树的稀疏、近乎单链的部分,因此进一步设计了一种预测性遍历规则,选择子树以最大化预测的已完成转移数量。在七个数据集和五个基础 LLM 上,PreSTO 在 PowerMH 及其后续方法 EntropyCut 和 MultiTryMH 上分别实现了 1.71 倍、1.91 倍和 2.33 倍的中位加速;在前两者上,模型调用次数中位数减少 3.9 倍,每次调用仅延长 2.1 倍。在 Qwen3.5-9B 的 LCB V6 上,预测性遍历规则比默认的广度优先遍历进一步快 1.25 倍至 1.37 倍。

该工作提出了一种无需改变采样器或模型即可加速 PowerMH 的通用预取方法,在多个数据集和模型上验证了显著加速,且理论保证转移核不变,对 LLM 推理加速有实用价值。

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

阅读原文

参与讨论