用LLM自动规划推理路径,提升代码生成准确率并降低成本
ARIES: Autonomous Reasoning with LLMs on Interactive Thought Graph Environments
- 将推理过程建模为马尔可夫决策过程,用另一LLM动态生成动作策略
- 在HumanEval上比固定调度高29%准确率,推理成本降35%,无需调参
- 适合追求高效自动推理的开发者与研究者,尤其关注低资源部署场景
近期研究表明,通过扩大测试时计算量可提升LLM在推理任务中的表现。针对可分解问题,一种有前景的方法是将中间解构为图结构,并对图进行变换以探索解空间。但先前工作依赖预设、任务特定的变换调度,需搜索超参数。本文将思考图变换视为马尔可夫决策过程中的动作,引入策略代理驱动有效动作策略。具体提出ARIES,一个基于多代理架构的LLM推理系统:推理代理解决子问题,策略代理保持对思考图状态的可见性,并动态调整求解策略。大量实验表明,使用未经微调的现成LLM作为策略代理,在HumanEval上准确率最高提升29%,推理成本降低35%,且无需任何搜索。我们还分析了失败模式,指出LLM规模和问题分解深度限制是扩展LLM引导推理的主要挑战。
原文摘要 · Abstract (English)
Recent research has shown that LLM performance on reasoning tasks can be enhanced by scaling test-time compute. One promising approach, particularly with decomposable problems, involves arranging intermediate solutions as a graph on which transformations are performed to explore the solution space. However, prior works rely on pre-determined, task-specific transformation schedules which are subject to a set of searched hyperparameters. In this work, we view thought graph transformations as actions in a Markov decision process, and implement policy agents to drive effective action policies for the underlying reasoning LLM agent. In particular, we investigate the ability for another LLM to act as a policy agent on thought graph environments and introduce ARIES, a multi-agent architecture for reasoning with LLMs. In ARIES, reasoning LLM agents solve decomposed subproblems, while policy LLM agents maintain visibility of the thought graph states, and dynamically adapt the problem-solving strategy. Through extensive experiments, we observe that using off-the-shelf LLMs as policy agents with no supervised fine-tuning (SFT) can yield up to $29\%$ higher accuracy on HumanEval relative to static transformation schedules, as well as reducing inference costs by $35\%$ and avoid any search requirements. We also conduct a thorough analysis of observed failure modes, highlighting that limitations on LLM sizes and the depth of problem decomposition can be seen as challenges to scaling LLM-guided reasoning.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。