[ACL 2025] An inference-time decoding strategy with adaptive foresight sampling
Python
108
23 commits
updated May 18, 2025
[🌐 PyPi Package] • [📜 Paper] • [🐱 GitHub]
Repo for "φ-Decoding: Adaptive Foresight Sampling for Balanced Inference-Time Exploration and Exploitation"
$\phi$-Decoding provides balanced inference-time exploration and exploitation. The following scaling curve offers the comparisons with other strong methods on LLaMA3.1-8B models. For more results, please refer to our paper.
To use the $\phi$-Decoding, we can try with the following command.
Firstly, create the environment and install the requirements. This implementation is accelerated and supported by vllm.
# env
conda create -n phi-decoding python==3.10
conda activate phi-decoding
pip install -r requirements.txt
Next, simply run the following command after the basic configuration:
python phi_decoding.py
P.S. If you find error in running phi_decoding.py, please refer to "origin" branch. Because we are refactoring the orignal version to provide a PyPi, so temporary bug may appear in this branch. We are so sorry for that inconvenience.
We are working on the PyPi Package of $\phi$-Decoding. Stay tuned for the updates ! You can try it with:
pip install phi-decoding
If you find it helpful, please kindly cite the paper.
@article{xu2025phi,
title={$\phi$-Decoding: Adaptive Foresight Sampling for Balanced Inference-Time Exploration and Exploitation},
author={Xu, Fangzhi and Yan, Hang and Ma, Chang and Zhao, Haiteng and Liu, Jun and Lin, Qika and Wu, Zhiyong},
journal={arXiv preprint arXiv:2503.13288},
year={2025}
}
Python
100.0%
[ACL 2025] An inference-time decoding strategy with adaptive foresight sampling
Python
108
23 commits
updated May 18, 2025
[🌐 PyPi Package] • [📜 Paper] • [🐱 GitHub]
Repo for "φ-Decoding: Adaptive Foresight Sampling for Balanced Inference-Time Exploration and Exploitation"
$\phi$-Decoding provides balanced inference-time exploration and exploitation. The following scaling curve offers the comparisons with other strong methods on LLaMA3.1-8B models. For more results, please refer to our paper.
To use the $\phi$-Decoding, we can try with the following command.
Firstly, create the environment and install the requirements. This implementation is accelerated and supported by vllm.
# env
conda create -n phi-decoding python==3.10
conda activate phi-decoding
pip install -r requirements.txt
Next, simply run the following command after the basic configuration:
python phi_decoding.py
P.S. If you find error in running phi_decoding.py, please refer to "origin" branch. Because we are refactoring the orignal version to provide a PyPi, so temporary bug may appear in this branch. We are so sorry for that inconvenience.
We are working on the PyPi Package of $\phi$-Decoding. Stay tuned for the updates ! You can try it with:
pip install phi-decoding
If you find it helpful, please kindly cite the paper.
@article{xu2025phi,
title={$\phi$-Decoding: Adaptive Foresight Sampling for Balanced Inference-Time Exploration and Exploitation},
author={Xu, Fangzhi and Yan, Hang and Ma, Chang and Zhao, Haiteng and Liu, Jun and Lin, Qika and Wu, Zhiyong},
journal={arXiv preprint arXiv:2503.13288},
year={2025}
}
Python
100.0%