arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.01716cs.AIcs.CL
收藏

自我挑战的语言模型智能体

Self-Challenging Language Model Agents

UC Berkeley(伯克利大学);FAIR at Meta(Meta 公司人工智能研究部)

Yifei Zhou, Sergey Levine, Jason Weston, Xian Li, Sainbayar Sukhbaatar

AI总结:

本文提出Self-Challenging框架,让智能体通过Code-as-Task形式自生成高质量任务并以强化学习自我训练,在仅用自生成数据的情况下于两个工具使用基准上实现超过两倍的性能提升。

摘要:

大型语言模型正迅速成为能够使用工具的智能体的基础。然而,训练此类智能体具有挑战性,因为它需要人工创建和标注多样化的任务、工具和评估标准。在本文中,我们提出了Self-Challenging框架,用于在智能体自身生成的高质量任务上训练智能体。该智能体首先扮演挑战者角色,在与给定工具交互后生成任务。这些任务采用一种新颖的通用问题类别形式,称为Code-as-Task,其由指令、验证函数以及作为测试的解决方案和失败案例定义,从而能够仅筛选出高质量任务。随后,该智能体扮演执行者角色,利用评估反馈作为奖励,通过强化学习在这些任务上进行训练。在两个现有的多轮工具使用智能体基准M3ToolEval和TauBench上的评估表明,尽管仅使用自生成的训练数据,Self-Challenging框架在Llama-3.1-8B-Instruct上实现了超过两倍的改进。

英文摘要:

Large language models are quickly becoming the foundation for intelligent agents that are capable of using tools. However, training such agents is challenging because it requires human creation and annotation of a diverse set of tasks, tools, and evaluation criteria. In this paper, we propose the Self-Challenging framework for training an agent on high-quality tasks that are generated by itself. The agent first plays the role of challenger and generates a task after interacting with the given tools. The tasks take the form of a novel general class of problems termed Code-as-Task, which are defined by an instruction, a verification function and solution and failure cases which serve as tests, allowing to filter only for high-quality tasks. The agent then takes an executor role and trains on those tasks with reinforcement learning using the evaluation feedback as a reward. Evaluation on two existing multi-turn tool-use agent benchmarks, M3ToolEval and TauBench, shows the Self-Challenging framework achieves over a two-fold improvement in Llama-3.1-8B-Instruct, despite using only self-generated training data.

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

↑