TreeBoN: Enhancing Inference-Time Alignment with Speculative Tree-Search and Best-of-N Sampling

Jiahao Qiu, Yifu Lu, Yifan Zeng, Jiacheng Guo, Jiayi Geng +7 more
10/18/2024
cs.CLcs.AIcs.LG
rlhf-rlvr-dpo

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Inference-time alignment enhances the performance of large language models without requiring additional training or fine-tuning but presents challenges due to balancing computational efficiency with high-quality output. Best-of-N (BoN) sampling, as a simple yet powerful approach, generates multiple responses and selects the best one, achieving improved performance but with a high computational cost.

Show full abstract

We propose TreeBoN, a novel framework that integrates a speculative tree-search strategy into Best-of-N (BoN) Sampling. TreeBoN maintains a set of parent nodes, iteratively branching and pruning low-quality responses, thereby reducing computational overhead while maintaining high output quality. Our approach also leverages token-level rewards from Direct Preference Optimization (DPO) to guide tree expansion and prune low-quality paths. We evaluate TreeBoN using AlpacaFarm, HH-RLHF, UltraFeedback, GSM8K, and TutorEval datasets, demonstrating consistent improvements. Specifically, TreeBoN achieves the highest win rate of 65% on TutorEval and around 60% win rates across other different datasets, outperforming standard BoN with the same computational cost and showcasing its scalability and alignment efficacy.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{qiu2024treebon,
  title  = {TreeBoN: Enhancing Inference-Time Alignment with Speculative Tree-Search and Best-of-N Sampling},
  author = {Jiahao Qiu and Yifu Lu and Yifan Zeng and Jiacheng Guo and Jiayi Geng and Chenhao Zhu and Xinzhe Juan and Ling Yang and Huazheng Wang and Kaixuan Huang and Yue Wu and Mengdi Wang},
  year   = {2024},
  eprint = {2410.16033},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.16033v4}
}

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/2410.16033.svg)](https://codeofpaper.com/paper/2410.16033)

Discussion