φ-Decoding: Adaptive Foresight Sampling for Balanced Inference-Time Exploration and Exploitation

Fangzhi Xu, Hang Yan, Chang Ma, Haiteng Zhao, Jun Liu, Qika Lin, Zhiyong Wu

Introduction

Large Language Models (LLMs) primarily operate through auto-regressive decoding, predicting the next token based solely on preceding context. While effective for many tasks, this "short-sighted" approach often fails in complex reasoning scenarios where a locally probable step leads to a logical dead-end. Traditional solutions involve search-based methods like Monte Carlo Tree Search (MCTS) or Tree-of-Thought (ToT). However, these methods typically suffer from extreme computational overhead and often require external Process Reward Models (PRMs), which are costly to train and domain-specific.

Comparison of decoding strategies: Auto-Regressive, Search-Based, and the proposed Foresight Sampling (φ-Decoding).

To address these challenges, we introduce φ-Decoding, a training-free inference strategy that implements "Foresight Sampling." This method allows models to evaluate candidate steps by simulating potential future outcomes, balancing the global awareness of search with the efficiency of standard decoding.

The φ-Decoding Framework

The core of φ-Decoding is the evaluation of candidate reasoning steps through simulated future rollouts. Unlike search-based methods that build exhaustive trees, φ-Decoding uses two internal signals to assess the quality of a path:

  1. Dynamic Advantage Estimation: This metric captures the "absolute value" of a candidate step. It measures the change in the model's log-probability (confidence) between the current step and the simulated future. A high "Advantage" indicates that a particular step significantly clarifies the path toward a solution.
  2. Alignment Assessment via Clustering: This provides a "relative value" by grouping simulated future paths into clusters. If multiple independent simulations converge on similar reasoning trajectories or final answers, the candidate step is deemed "aligned" and reliable—a "wisdom of the crowd" effect generated internally by the model.

Efficiency through Dynamic Pruning

To maintain high inference speeds, φ-Decoding employs two pruning strategies:

  • In-Width Pruning: Low-confidence candidate steps are filtered out before simulations begin, focusing compute on the most promising paths.
  • In-Depth Pruning (Early Stopping): If a candidate's simulations show overwhelming dominance (e.g., a single massive cluster), the model terminates the search early and proceeds, effectively bypassing "overthinking" on straightforward steps.

Experimental Results

We evaluated φ-Decoding across seven benchmarks, including GSM8K, MATH-500, GPQA, and AIME 2024, using models such as LLaMA 3.1 (8B/70B) and Qwen2.5.

Key findings include:

  • Performance Gains: φ-Decoding improved average reasoning performance by 14.62% on LLaMA 3.1-8B compared to standard Chain-of-Thought (CoT).
  • Computational Efficiency: The method achieved state-of-the-art results while being up to 6x more efficient than traditional search-based baselines.
  • Scalability: The approach successfully enhanced the performance of larger models (70B) and specialized reasoning models like DeepSeek-R1-Distill, which saw an 8.86% improvement on the challenging AIME benchmark.

Conclusion

φ-Decoding offers a robust, training-free mechanism for enhancing LLM reasoning. By leveraging internal model signals for foresight, it achieves a superior balance between performance and efficiency, providing a scalable alternative to compute-intensive search algorithms.

Summary updated

BibTeX
@inproceedings{xu2025decoding,
  author = {Fangzhi Xu and Hang Yan and Chang Ma and Haiteng Zhao and Jun Liu and Qika Lin and Zhiyong Wu},
  title = {{φ-Decoding: Adaptive Foresight Sampling for Balanced Inference-Time Exploration and Exploitation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure