arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.15482cs.LGcs.AI
收藏

鞅前瞻性采样:一种推断时间LLM解码的原理性方法

Martingale Foresight Sampling: A Principled Approach to Inference-Time LLM Decoding

University of Arizona(亚利桑那大学);Microsoft Research Asia(微软亚洲研究院);Villanova University(维拉诺瓦大学)

Huayu Li, ZhengXiao He, Siyuan Tian, Jinghao Wen, Ao Li

AI总结:

本文提出鞅前瞻性采样,通过概率论原理改进LLM解码,提升推理准确性和计算效率。

摘要:

大型语言模型(LLM)中的标准自回归解码本质上是短视的,由于其逐token生成过程,往往无法找到全局最优的推理路径。虽然推断时间策略如前瞻性采样试图通过模拟未来步骤来缓解这一问题,但它们通常依赖于为路径估值和修剪搜索空间而采用的随意启发式方法。本文介绍了鞅前瞻性采样(MFS),一种原理性框架,将LLM解码重新表述为识别最优随机过程的问题。通过将推理路径的质量建模为随机过程,我们利用鞅理论设计了一个理论上站得住的算法。我们的方法用概率论的原则取代了启发式机制:步骤估值通过Doob分解定理来衡量路径的可预测优势,路径选择使用可选停止理论对次优候选进行原理性修剪,而基于鞅收敛定理的自适应停止规则在路径质量已证明收敛时终止探索。在六个推理基准测试中,实验表明MFS在准确性方面超过了最先进的方法,同时显著提高了计算效率。代码将在https://github.com/miraclehetech/EACL2026-Martingale-Foresight-Sampling上发布。

英文摘要:

Standard autoregressive decoding in large language models (LLMs) is inherently short-sighted, often failing to find globally optimal reasoning paths due to its token-by-token generation process. While inference-time strategies like foresight sampling attempt to mitigate this by simulating future steps, they typically rely on ad-hoc heuristics for valuing paths and pruning the search space. This paper introduces Martingale Foresight Sampling (MFS), a principled framework that reformulates LLM decoding as a problem of identifying an optimal stochastic process. By modeling the quality of a reasoning path as a stochastic process, we leverage Martingale theory to design a theoretically-grounded algorithm. Our approach replaces heuristic mechanisms with principles from probability theory: step valuation is derived from the Doob Decomposition Theorem to measure a path's predictable advantage, path selection uses Optional Stopping Theory for principled pruning of suboptimal candidates, and an adaptive stopping rule based on the Martingale Convergence Theorem terminates exploration once a path's quality has provably converged. Experiments on six reasoning benchmarks demonstrate that MFS surpasses state-of-the-art methods in accuracy while significantly improving computational efficiency. Code will be released at https://github.com/miraclehetech/EACL2026-Martingale-Foresight-Sampling.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑