PreSTO:用于快速LLM幂次采样的预测性子树预取
PreSTO: Predictive Subtree Prefetching for Fast LLM Power Sampling
AI总结:
该研究针对PowerMH采样器串行更新导致的LLM幂次采样速度慢的问题,提出PreSTO方法,通过预取子树并设计预测遍历规则实现加速,在多数据集和模型上取得显著加速效果。
摘要:
幂次采样通过从基础大语言模型(LLM)分布的锐化版本中采样,提升了测试时的LLM推理能力。其采样器PowerMH因马尔可夫链蒙特卡洛(MH)更新是串行的而运行缓慢:每次接受/弃权(不执行)决策会确定生成下一个提议的状态。现有工作通过修改采样器或模型(如序贯蒙特卡洛、近似前瞻、蒸馏)降低该成本。我们提出预测性子树预取(PreSTO),通过预取未来提议加速PowerMH,且可证明其MH转移核保持不变。PreSTO将未来MH结果视为接受/弃权(不执行)决策树:每次模型调用时,它批量生成该树的预取子树的提议,再按原始MH接受规则遵循已实现路径。我们还观察到MH仅访问每个预取子树中稀疏、近乎一元的部分,因此设计了预测遍历规则,选择子树以最大化预测的完成转移数量。在7个数据集和5个基础LLM上,PreSTO在PowerMH及其后续版本EntropyCut、MultiTryMH上分别实现了1.71倍、1.91倍、2.33倍的中位数加速;在前两者上,它的模型调用中位数减少了3.9倍,每次调用仅长2.1倍。在LCB V6搭配Qwen3.5-9B时,预测遍历规则比默认广度优先遍历快1.25倍至1.37倍。
英文摘要:
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 \textit{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 \textit{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\times$, $1.91\times$, and $2.33\times$ on PowerMH and its follow-ups EntropyCut and MultiTryMH, respectively; on the first two, it makes a median of $3.9\times$ fewer model calls, each only $2.1\times$ longer. On LCB V6 with Qwen3.5-9B, the predictive traversal rule is a further $1.25\times$--$1.37\times$ faster than the default breadth-first traversal.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。