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

不要在树中迷失:通过克服树搜索探索陷阱优化大语言模型推理

Don't Get Lost in the Trees: Streamlining LLM Reasoning by Overcoming Tree Search Exploration Pitfalls

Tencent AI Lab(腾讯AI实验室)

Ante Wang, Linfeng Song, Ye Tian, Dian Yu, Haitao Mi, Xiangyu Duan, Zhaopeng Tu, Jinsong Su, Dong Yu

AI总结:

针对验证器引导的LLM树搜索推理存在的过度探索与探索不足问题,提出即插即用的FETCH框架,通过语义聚类合并状态、优化验证器降方差并集成,在多数据集上提升了推理准确率与计算效率。

摘要:

近年来,由验证器引导的树搜索算法取得的进展显著提升了大语言模型(LLM)的推理能力,但代价是计算资源消耗增加。在本研究中,我们明确了导致这种低效性的两个关键挑战:由内容语义等价的冗余状态引发的**过度探索**,以及由验证器评分高方差导致轨迹频繁切换造成的**探索不足**。为解决这些问题,我们提出FETCH——一种高效树搜索框架,它是灵活的即插即用系统,可兼容多种树搜索算法。该框架通过对微调后的SimCSE模型得到的文本嵌入进行凝聚聚类,合并语义相似的状态,从而缓解过度探索问题。为应对探索不足,我们对验证器进行了优化:在训练阶段引入时序差分学习并结合调整后的λ-回报以降低方差,在推理阶段采用验证器集成来聚合分数。在GSM8K、GSM-Plus和MATH数据集上的实验表明,我们的方法在四种不同的树搜索算法中均显著提升了推理准确率和计算效率,为基于LLM的推理的更实际应用铺平了道路。代码可在https://github.com/Soistesimmer/Fetch获取。

英文摘要:

Recent advancements in tree search algorithms guided by verifiers have significantly enhanced the reasoning capabilities of large language models (LLMs), but at the cost of increased computational resources. In this work, we identify two key challenges contributing to this inefficiency: $\textit{over-exploration}$ due to redundant states with semantically equivalent content, and $\textit{under-exploration}$ caused by high variance in verifier scoring leading to frequent trajectory switching. To address these issues, we propose FETCH, an e$\textbf{f}$fici$\textbf{e}$nt $\textbf{t}$ree sear$\textbf{ch}$ framework, which is a flexible, plug-and-play system compatible with various tree search algorithms. Our framework mitigates over-exploration by merging semantically similar states using agglomerative clustering of text embeddings obtained from a fine-tuned SimCSE model. To tackle under-exploration, we enhance verifiers by incorporating temporal difference learning with adjusted $λ$-returns during training to reduce variance, and employing a verifier ensemble to aggregate scores during inference. Experiments on GSM8K, GSM-Plus, and MATH datasets demonstrate that our methods significantly improve reasoning accuracy and computational efficiency across four different tree search algorithms, paving the way for more practical applications of LLM-based reasoning. The code is available at https://github.com/Soistesimmer/Fetch.

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

↑