arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.00764cs.CLcs.AIcs.LG
收藏

AgentGen:通过环境与任务生成增强基于大语言模型的智能体的规划能力

AgentGen: Enhancing Planning Abilities for Large Language Model based Agent via Environment and Task Generation

The University of Hong Kong(香港大学);Microsoft Corporation(微软公司)

Mengkang Hu, Pu Zhao, Can Xu, Qingfeng Sun, Jianguang Lou, Qingwei Lin, Ping Luo, Saravan Rajmohan

AI总结:

本文提出AgentGen框架,通过LLM自动生成多样化环境和从易到难的规划任务,并结合双向演化方法Bi-Evol合成平滑难度任务集,用于指令微调以显著增强LLM智能体的规划能力。

摘要:

基于大语言模型(LLM)的智能体已获得广泛关注并日益流行。规划能力是LLM智能体的关键组成部分,通常指从初始状态达成期望目标的能力。本文研究通过指令微调来增强LLM的规划能力,即所谓的智能体训练。近期研究表明,利用专家级轨迹对LLM进行指令微调能有效提升其规划能力。然而,现有工作主要集中于从人工设计的规划任务和环境中合成轨迹。创建这些环境和任务的劳动密集型特性阻碍了生成足够多样且广泛的轨迹。为解决这一局限,本文探索自动合成多样化环境以及从易到难的渐进式规划任务。我们提出AgentGen框架,利用LLM首先生成环境,随后以这些环境为条件生成规划任务。具体而言,为提高环境多样性,我们提出使用由多个领域特定文本片段组成的灵感语料库作为合成环境的上下文。此外,为增加生成规划任务的难度多样性,我们提出双向演化方法Bi-Evol,从更易和更难两个方向演化规划任务,以合成难度曲线更平滑的任务集。基于AgentBoard的评估结果表明,AgentGen显著提升了LLM的规划能力,例如,经AgentGen指令微调的Llama-3.1-8B在整体性能上超越了GPT-3.5。此外,经AgentGen微调的Llama-3.1-70B模型在规划任务上取得了最先进的结果。项目页面:https://agent-gen.github.io/。

英文摘要:

Large Language Model-based agents have garnered significant attention and are becoming increasingly popular. Furthermore, planning ability is a crucial component of an LLM-based agent, which generally entails achieving a desired goal from an initial state. This paper investigates enhancing the planning abilities of LLMs through instruction tuning, referred to as agent training. Recent studies have demonstrated that utilizing expert-level trajectory for instruction-tuning LLMs effectively enhances their planning capabilities. However, existing work primarily focuses on synthesizing trajectories from manually designed planning tasks and environments. The labor-intensive nature of creating these environments and tasks impedes the generation of sufficiently varied and extensive trajectories. To address this limitation, this paper explores the automated synthesis of diverse environments and a gradual range of planning tasks, from easy to difficult. We introduce a framework, AgentGen, that leverages LLMs first to generate environments and subsequently generate planning tasks conditioned on these environments. Specifically, to improve environmental diversity, we propose using an inspiration corpus composed of various domain-specific text segments as the context for synthesizing environments. Moreover, to increase the difficulty diversity of generated planning tasks, we propose a bidirectional evolution method, Bi-Evol, that evolves planning tasks from easier and harder directions to synthesize a task set with a smoother difficulty curve. The evaluation results derived from AgentBoard show that AgentGen greatly improves LLMs' planning ability, e.g., the AgentGen instruction-tuned Llama-3.1-8B surpasses GPT-3.5 in overall performance. Moreover, the AgentGen-tuned Llama-3.1-70B model achieves state-of-the-art results in planning tasks. Project page: https://agent-gen.github.io/.

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

↑