LinTree: 通过显式结构化搜索历史提升LLM推理能力
LinTree: Improving LLM Reasoning with Explicitly Structured Search Histories
AI总结:
针对LLM推理中隐式搜索树导致性能不佳的问题,提出LinTree方法,通过添加父指针显式表示线性化树结构,在Blocks World、网格导航和Sokoban任务中提升了任务性能和搜索效率。
摘要:
大型语言模型(LLM)通常通过生成中间轨迹来解决推理问题,这些轨迹探索并修正部分解决方案。从搜索的角度来看,这些轨迹可以视为线性化的搜索树,其中模型扩展部分解决方案,失败时放弃并回溯尝试替代方案。与传统启发式搜索相比,这种策略有一个潜在优势:它基于整个搜索轨迹而非仅当前局部状态进行条件化。我们首先测试LLM是否利用这一优势,通过比较轨迹条件推理策略与配备仅观察当前局部状态的LLM启发式的最佳优先搜索。在三个受控推理环境(Blocks World、网格导航和Sokoban)中,我们发现仅原始访问搜索历史不足以可靠地超越启发式搜索。然后我们研究了一个可能的原因:在LLM推理轨迹中,底层搜索树仅隐式表示,当模型回溯或切换分支时,轨迹并未明确标识正在重新访问哪个早期搜索状态。我们表明,添加简单的父指针以显式表示线性化树(LinTree)结构,相对于隐式推理模型和LLM启发式引导搜索,提高了任务性能和搜索效率。这些结果表明,当树结构被显式化时,搜索历史变得最为有用,从而激励LLM推理中更具结构意识的表示。
英文摘要:
Large language models (LLMs) often solve reasoning problems by generating intermediate traces that explore and revise partial solutions. From a search perspective, these traces can be viewed as linearized search trees, where the model extends a partial solution, abandons it when it fails, and backtracks to try alternatives. Compared with traditional heuristic-guided search, such a policy has a potential advantage: it conditions on the whole search trace rather than only on the current local state. We first test whether LLMs utilize this advantage by comparing trace-conditioned reasoning policies against best-first search equipped with an LLM heuristic that only observes the current local state. Across three controlled reasoning environments, Blocks World, grid Navigation, and Sokoban, we find that raw access to search history alone is not enough to reliably outperform heuristic search. We then study one possible reason: in LLM reasoning traces, the underlying search tree is only implicitly represented, and when the model backtracks or switches branches, the trace does not explicitly identify which earlier search state is being revisited. We show that adding simple parent pointers to explicitly represent the linearized tree (LinTree) structure improves both task performance and search efficiency relative to implicit reasoning models and LLM-heuristic-guided search. These results suggest that search history becomes most useful when its tree structure is made explicit, motivating more structure-aware representations for LLM reasoning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。