arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.13288cs.LGcs.AIcs.CL
收藏

$ϕ$-Decoding:用于平衡推理时探索与利用的自适应前瞻采样

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

Shanghai AI Lab(上海人工智能实验室);Xi’an Jiaotong University(西安交通大学);The University of Hong Kong(香港大学);Peking University(北京大学);National University of Singapore(新加坡国立大学)

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

AI总结:

本文提出 $ϕ$-Decoding,通过前瞻采样、分布近似及宽度/深度剪枝平衡推理时探索与利用,在七个基准上提升性能与效率。

摘要:

推理时优化通过扩展计算来推导审慎的推理步骤,从而实现有效性能。尽管以往基于搜索的策略解决了自回归生成的短视问题,但巨大的搜索空间会导致过度探索和利用不足。为了在推导最优步骤时实现高效平衡,我们将解码策略构建为前瞻采样,利用模拟的未来步骤获得全局最优的步骤估计。在此基础上,我们提出了一种名为 $ϕ$-Decoding 的新型解码策略。为了对步骤价值进行精确且富有表达力的估计,$ϕ$-Decoding 通过前瞻和聚类来近似两个分布。从联合分布中采样,可以选择最优步骤进行利用。为支持自适应计算分配,我们提出了宽度内和深度内剪枝策略,以轻量级方案实现推理效率。在七个基准上的大量实验表明,$ϕ$-Decoding 在性能和效率上均优于强基线。进一步分析证明了其在多种 LLM 上的泛化能力,以及在广泛计算预算范围内的可扩展性。代码将发布于 https://github.com/xufangzhi/phi-Decoding,开源 PyPI 包也即将推出。

英文摘要:

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.

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

↑