arXiv:2505.09970cs.AI2025-05被引 19

让大模型先规划多步动作再执行,提升智能体任务完成率

Pre-Act: Multi-Step Planning and Reasoning Improves Acting in LLM Agents

  • 先生成多步计划并逐步优化,结合工具反馈动态调整
  • 在Almita数据集上,动作召回率比ReAct高70%
  • 小模型经微调后性能超越GPT-4,适合低延迟场景

大型语言模型(LLM)中的ReAct(推理+行动)能力已成为现代智能体系统的基础。近期模型如DeepSeek-R1和OpenAI o1/o3通过生成大量中间标记来强化推理,为最终输出建立坚实基础。本文提出Pre-Act,一种新方法:在响应用户输入前,生成多步执行计划,并伴随详细推理。该计划在每一步执行后融合先前步骤与工具输出,持续优化直至得出最终结果。本方法适用于对话与非对话型智能体。为全面评估任务导向型智能体,我们提出两级评估框架:(1)回合级,(2)端到端。在五种模型的回合级评估中,Pre-Act在Almita数据集上相比ReAct提升70%的动作召回率。尽管该方法对大模型有效,但小型模型因延迟与成本限制,在复杂推理任务中表现受限。为此,我们使用Pre-Act对较小模型如Llama 3.1(8B & 70B)进行微调。实验显示,微调后的70B模型超越GPT-4,回合级动作准确率提升69.5%,端到端目标完成率提高28%(Almita,域外数据)。

原文摘要 · Abstract (English)

The ReAct (Reasoning + Action) capability in large language models (LLMs) has become the foundation of modern agentic systems. Recent LLMs, such as DeepSeek-R1 and OpenAI o1/o3, exemplify this by emphasizing reasoning through the generation of ample intermediate tokens, which help build a strong premise before producing the final output tokens. In this paper, we introduce Pre-Act, a novel approach that enhances the agent's performance by creating a multi-step execution plan along with the detailed reasoning for the given user input. This plan incrementally incorporates previous steps and tool outputs, refining itself after each step execution until the final response is obtained. Our approach is applicable to both conversational and non-conversational agents. To measure the performance of task-oriented agents comprehensively, we propose a two-level evaluation framework: (1) turn level and (2) end-to-end. Our turn-level evaluation, averaged across five models, shows that our approach, Pre-Act, outperforms ReAct by 70% in Action Recall on the Almita dataset. While this approach is effective for larger models, smaller models crucial for practical applications, where latency and cost are key constraints, often struggle with complex reasoning tasks required for agentic systems. To address this limitation, we fine-tune relatively small models such as Llama 3.1 (8B & 70B) using the proposed Pre-Act approach. Our experiments show that the fine-tuned 70B model outperforms GPT-4, achieving a 69.5% improvement in action accuracy (turn-level) and a 28% improvement in goal completion rate (end-to-end) on the Almita (out-of-domain) dataset.

智能体规划推理大模型微调

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。