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

动态并行树搜索用于高效大语言模型推理

Dynamic Parallel Tree Search for Efficient LLM Reasoning

Beihang University(北京航空航天大学);Nanyang Technological University(南洋理工大学);Wuhan University(武汉大学)

Yifu Ding, Wentao Jiang, Shunyu Liu, Yongcheng Jing, Jinyang Guo, Yingjie Wang, Jing Zhang, Zengmao Wang, Ziwei Liu, Bo Du, Xianglong Liu, Dacheng Tao

AI总结:

针对思维树推理效率低的问题,提出动态并行树搜索框架,通过并行流线与搜索转换机制优化推理路径,在保持准确性的同时将效率提升2-4倍。

摘要:

思维树(ToT)通过将问题解决过程构建为生成树来增强大语言模型(LLM)的推理能力。然而,近期方法侧重于搜索准确性,却忽视了计算效率。加速ToT的挑战在于推理焦点的频繁切换,以及对次优解的冗余探索。为缓解这一困境,我们提出了动态并行树搜索(DPTS),一种新颖的并行框架,旨在推理过程中动态优化推理路径。它在生成阶段包含并行流线(Parallelism Streamline),通过细粒度的缓存管理和对齐,构建具有任意路径的灵活自适应并行性。同时,搜索与转换机制(Search and Transition Mechanism)过滤潜在候选,动态维持推理焦点于更可能的解,并减少冗余。在Qwen-2.5和Llama-3上使用Math500和GSM8K数据集的实验表明,DPTS平均显著提升效率2-4倍,同时保持甚至超越现有推理算法的准确性,使基于ToT的推理更具可扩展性和计算效率。

英文摘要:

Tree of Thoughts (ToT) enhances Large Language Model (LLM) reasoning by structuring problem-solving as a spanning tree. However, recent methods focus on search accuracy while overlooking computational efficiency. The challenges of accelerating the ToT lie in the frequent switching of reasoning focus, and the redundant exploration of suboptimal solutions. To alleviate this dilemma, we propose Dynamic Parallel Tree Search (DPTS), a novel parallelism framework that aims to dynamically optimize the reasoning path in inference. It includes the Parallelism Streamline in the generation phase to build up a flexible and adaptive parallelism with arbitrary paths by fine-grained cache management and alignment. Meanwhile, the Search and Transition Mechanism filters potential candidates to dynamically maintain the reasoning focus on more possible solutions and have less redundancy. Experiments on Qwen-2.5 and Llama-3 with Math500 and GSM8K datasets show that DPTS significantly improves efficiency by 2-4x on average while maintaining or even surpassing existing reasoning algorithms in accuracy, making ToT-based reasoning more scalable and computationally efficient.

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

↑