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

AgentTuning:为LLMs赋予泛化的智能体能力

AgentTuning: Enabling Generalized Agent Abilities for LLMs

Tsinghua University(清华大学)

Aohan Zeng, Mingdao Liu, Rui Lu, Bowen Wang, Xiao Liu, Yuxiao Dong, Jie Tang

AI总结:

提出AgentTuning方法,通过构建AgentInstruct数据集并采用混合指令微调策略,在不损害LLMs通用能力的前提下显著增强其智能体能力,开源的AgentLM在未见任务上媲美GPT-3.5-turbo。

摘要:

在各类任务中表现优异的开放大语言模型(LLMs)极大地推动了LLMs的发展。然而,当作为智能体解决现实世界中的复杂任务时,它们远不及ChatGPT和GPT-4等商业模型。这些智能体任务将LLMs作为负责规划、记忆和工具使用的中心控制器,既需要细粒度的提示方法,也需要强大的LLMs才能达到令人满意的性能。尽管已提出许多提示方法来完成特定智能体任务,但仍缺乏在不损害LLMs通用能力的前提下提升其自身智能体能力的研究。在本工作中,我们提出了AgentTuning,一种简单且通用的方法,可在保持LLMs通用能力的同时增强其智能体能力。我们构建了AgentInstruct,一个包含高质量交互轨迹的轻量级指令微调数据集。我们采用混合指令微调策略,将AgentInstruct与来自通用领域的开源指令相结合。AgentTuning被用于对Llama 2系列进行指令微调,得到AgentLM。我们的评估表明,AgentTuning在不损害通用能力的情况下赋予了LLMs智能体能力。AgentLM-70B在未见过的智能体任务上与GPT-3.5-turbo相当,展现了泛化的智能体能力。我们在https://github.com/THUDM/AgentTuning开源了AgentInstruct以及AgentLM-7B、13B和70B模型,为智能体任务提供了开放且强大的商业LLMs替代方案。

英文摘要:

Open large language models (LLMs) with great performance in various tasks have significantly advanced the development of LLMs. However, they are far inferior to commercial models such as ChatGPT and GPT-4 when acting as agents to tackle complex tasks in the real world. These agent tasks employ LLMs as the central controller responsible for planning, memorization, and tool utilization, necessitating both fine-grained prompting methods and robust LLMs to achieve satisfactory performance. Though many prompting methods have been proposed to complete particular agent tasks, there is lack of research focusing on improving the agent capabilities of LLMs themselves without compromising their general abilities. In this work, we present AgentTuning, a simple and general method to enhance the agent abilities of LLMs while maintaining their general LLM capabilities. We construct AgentInstruct, a lightweight instruction-tuning dataset containing high-quality interaction trajectories. We employ a hybrid instruction-tuning strategy by combining AgentInstruct with open-source instructions from general domains. AgentTuning is used to instruction-tune the Llama 2 series, resulting in AgentLM. Our evaluations show that AgentTuning enables LLMs' agent capabilities without compromising general abilities. The AgentLM-70B is comparable to GPT-3.5-turbo on unseen agent tasks, demonstrating generalized agent capabilities. We open source the AgentInstruct and AgentLM-7B, 13B, and 70B models at https://github.com/THUDM/AgentTuning, serving open and powerful alternatives to commercial LLMs for agent tasks.

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

↑