TGPR:面向LLM稳健自调试的树引导策略精化
TGPR: Tree-Guided Policy Refinement for Robust Self-Debugging of LLMs
AI总结:
TGPR框架结合GRPO与汤普森采样树搜索,主动探索失败和成功路径,在代码生成基准上显著提升pass@1和pass@10,为LLM迭代精化提供通用方案。
摘要:
迭代精化已成为使大型语言模型(LLMs)能够解决困难推理和问题求解任务的一种有前景的范式。然而,关键挑战之一是如何有效地在可能的精化方案的巨大搜索空间中搜索。现有方法通常依赖预定义的启发式规则,这些规则受困于探索-利用困境,且无法基于过去的精化结果进行调整。我们提出了树引导策略精化(TGPR),一种将GRPO与基于汤普森采样的树搜索相结合的新框架。TGPR主动探索失败和成功的精化路径,具有更密集的训练轨迹和更具适应性的策略。在HumanEval、MBPP和APPS基准上,与竞争性的GRPO基线相比,我们的方法在pass@1上实现了高达+4.2个百分点的绝对改进(在MBPP上),在pass@10上实现了高达+12.51个百分点的绝对改进(在APPS上)。除了调试代码外,TGPR专注于将学习到的策略与结构化搜索方法相结合的原则性方法,为增强LLMs中的迭代精化和有状态推理提供了一个通用框架。
英文摘要:
Iterative refinement has been a promising paradigm to enable large language models (LLMs) to resolve difficult reasoning and problem-solving tasks. One of the key challenges, however, is how to effectively search through the enormous search space of possible refinements. Existing methods typically fall back on predefined heuristics, which are troubled by the exploration-exploitation dilemma and cannot adapt based on past refinement outcomes. We introduce Tree-Guided Policy Refinement (TGPR), a novel framework that combines GRPO with a Thompson-Sampling-based tree search. TGPR explores both failed and successful refinement paths actively, with denser training trajectories and more adaptive policies. On HumanEval, MBPP, and APPS benchmarks, our method achieves up to +4.2 percentage points absolute improvement in pass@1 (on MBPP) and up to +12.51 percentage points absolute improvement in pass@10 (on APPS) compared to a competitive GRPO baseline. Apart from debugging code, TGPR focuses on a principled approach to combining learned policies with structured search methods, offering a general framework for enhancing iterative refinement and stateful reasoning in LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。