Martingale Foresight Sampling: A Principled Approach to Inference-Time LLM Decoding
Huayu Li, ZhengXiao He, Siyuan Tian, Jinghao Wen, and Ao Li

TL;DR
This paper introduces Martingale Foresight Sampling, a theoretically grounded decoding method for large language models that improves reasoning accuracy and efficiency by modeling path quality as a stochastic process and applying martingale theory.
Contribution
It presents a novel, principled decoding framework for LLMs using martingale theory, replacing heuristics with rigorous probabilistic methods.
Findings
Outperforms state-of-the-art in accuracy on reasoning benchmarks.
Achieves significant computational efficiency improvements.
Provides a theoretically grounded approach to inference-time decoding.
Abstract
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,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsNatural Language Processing Techniques · Topic Modeling · Speech Recognition and Synthesis
