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

Fangzhi Xu, Hang Yan, Chang Ma, Haiteng Zhao, Jun Liu +2 more
3/17/2025
cs.LGcs.AIcs.CL

Official code: xufangzhi/phi-Decoding (107 stars, last commit 2025-05-18).

Abstract

Inference-time optimization scales computation to derive deliberate reasoning steps for effective performance. While previous search-based strategies address the short-sightedness of auto-regressive generation, the vast search space leads to excessive exploration and insufficient exploitation. To strike an efficient balance to derive the optimal step, we frame the decoding strategy as foresight sampling, leveraging simulated future steps to obtain globally optimal step estimation. Built on it, we propose a novel decoding strategy, named $φ$-Decoding. To provide a precise and expressive estimation of step value, $φ$-Decoding approximates two distributions via foresight and clustering. Sampling from the joint distribution, the optimal steps can be selected for exploitation. To support adaptive computation allocation, we propose in-width and in-depth pruning strategies, featuring a light-weight solution to achieve inference efficiency. Extensive experiments across seven benchmarks show $φ$-Decoding outperforms strong baselines in both performance and efficiency. Additional analysis demonstrates its generalization across various LLMs and scalability across a wide range of computing budgets. The code will be released at https://github.com/xufangzhi/phi-Decoding, and the open-source PyPI package is coming soon.

View on arXivView PDF

Code Implementations(1)

[ACL 2025] An inference-time decoding strategy with adaptive foresight sampling

1079PythonMar 7, 20251 years ago

Similar Papers

Cite this paper

@article{xu2025decoding,
  title  = {φ-Decoding: Adaptive Foresight Sampling for Balanced Inference-Time Exploration and Exploitation},
  author = {Fangzhi Xu and Hang Yan and Chang Ma and Haiteng Zhao and Jun Liu and Qika Lin and Zhiyong Wu},
  year   = {2025},
  eprint = {2503.13288},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.13288v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.13288.svg)](https://codeofpaper.com/paper/2503.13288)

Discussion