arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.01707cs.CLcs.AI
收藏

可解释的对比蒙特卡洛树搜索推理

Interpretable Contrastive Monte Carlo Tree Search Reasoning

The University of Sydney(悉尼大学);Peking University(北京大学);Xiaohongshu Inc.(小红书公司);Shanghai AI Laboratory(上海人工智能实验室);Tsinghua University(清华大学);The Hong Kong University of Science and Technology(香港科技大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))

Zitian Gao, Boye Niu, Xuzheng He, Haotian Xu, Hongzhang Liu, Aiwei Liu, Xuming Hu, Lijie Wen

AI总结:

本文提出 SC-MCTS* 算法,通过可解释对比奖励模型、投机解码加速和改进 UCT 策略,在 Blocksworld 推理任务上以 Llama-3.1-70B 平均超越 o1-mini 17.4%。

摘要:

我们提出 SC-MCTS*:一种面向大语言模型(LLMs)的新型蒙特卡洛树搜索(MCTS)推理算法,显著提升了推理准确率和速度。我们的动机来自:1. 以往的 MCTS 大语言模型推理工作常常忽视其最大缺点——与 CoT 相比速度较慢;2. 以往研究主要将 MCTS 作为大语言模型在各种任务上推理的工具,但从推理可解释性角度对其组成部分进行的定量分析或消融研究有限;3. 奖励模型是 MCTS 中最关键的组成部分,然而以往工作很少对 MCTS 的奖励模型进行深入研究或改进。因此,我们对 MCTS 的组成部分进行了广泛的消融研究和定量分析,揭示了每个组成部分对大语言模型 MCTS 推理性能的影响。在此基础上,(i)我们基于对比解码原理设计了一个高度可解释的奖励模型,(ii)利用投机解码实现了每个节点平均 51.9% 的速度提升。此外,(iii)我们改进了以往工作中使用的 UCT 节点选择策略和反向传播,带来了显著的性能提升。使用 Llama-3.1-70B 和 SC-MCTS*,我们在 Blocksworld 多步推理数据集上平均比 o1-mini 高出 17.4%。我们的代码可在 https://github.com/zitian-gao/SC-MCTS 获取。

英文摘要:

We propose SC-MCTS*: a novel Monte Carlo Tree Search (MCTS) reasoning algorithm for Large Language Models (LLMs), significantly improves both reasoning accuracy and speed. Our motivation comes from: 1. Previous MCTS LLM reasoning works often overlooked its biggest drawback--slower speed compared to CoT; 2. Previous research mainly used MCTS as a tool for LLM reasoning on various tasks with limited quantitative analysis or ablation studies of its components from reasoning interpretability perspective. 3. The reward model is the most crucial component in MCTS, however previous work has rarely conducted in-depth study or improvement of MCTS's reward models. Thus, we conducted extensive ablation studies and quantitative analysis on components of MCTS, revealing the impact of each component on the MCTS reasoning performance of LLMs. Building on this, (i) we designed a highly interpretable reward model based on the principle of contrastive decoding and (ii) achieved an average speed improvement of 51.9% per node using speculative decoding. Additionally, (iii) we improved UCT node selection strategy and backpropagation used in previous works, resulting in significant performance improvement. We outperformed o1-mini by an average of 17.4% on the Blocksworld multi-step reasoning dataset using Llama-3.1-70B with SC-MCTS*. Our code is available at https://github.com/zitian-gao/SC-MCTS.

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

↑