arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.16033cs.CLcs.AIcs.LG
收藏

TreeBoN:通过推测式树搜索和Best-of-N采样增强推理时对齐

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

Jiahao Qiu, Yifu Lu, Yifan Zeng, Jiacheng Guo, Jiayi Geng, Chenhao Zhu, Xinzhe Juan, Ling Yang, Huazheng Wang, Kaixuan Huang, Yue Wu, Mengdi Wang

AI总结:

针对推理时对齐中计算效率与输出质量难以平衡的问题,提出整合推测式树搜索与DPO token级奖励的TreeBoN框架,在相同成本下优于标准BoN采样,多数据集上实现稳定性能提升。

摘要:

推理时对齐无需额外训练或微调即可提升大语言模型性能,但需在计算效率与高质量输出间取得平衡,因此存在挑战。Best-of-N(BoN,N选最优)采样作为一种简单且强大的方法,会生成多个响应并选出最佳结果,可实现性能提升但计算成本高昂。我们提出TreeBoN这一新型框架,将推测式树搜索策略整合进Best-of-N(BoN)采样中。TreeBoN维护一组父节点,迭代地进行分支并剪枝低质量响应,从而在保持高输出质量的同时降低计算开销。我们的方法还利用来自Direct Preference Optimization(DPO,直接偏好优化)的token级奖励来引导树扩展并剪枝低质量路径。我们使用AlpacaFarm、HH-RLHF、UltraFeedback、GSM8K和TutorEval数据集对TreeBoN进行评估,证明其能带来一致的性能提升。具体而言,TreeBoN在TutorEval上取得了65%的最高胜率,在其他不同数据集上的胜率约为60%,在相同计算成本下优于标准BoN,展现出其可扩展性与对齐效能。

英文摘要:

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. 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.

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

↑