首个评估大模型在复杂任务中执行指令能力的基准测试
AGENTIF: Benchmarking Instruction Following of Large Language Models in Agentic Scenarios
- 构建包含50个真实应用的长指令数据集,平均1723字
- 现有大模型在复杂约束下表现差,尤其工具调用错误率高
- 适合研究模型指令遵循、智能体系统开发的学者和工程师
大型语言模型在实际智能体应用中展现出强大能力,但其在复杂、长篇指令下的遵循能力尚未被充分研究。本文提出AgentIF,首个系统评估大模型在智能体场景中指令遵循能力的基准。该数据集源自50个真实工业与开源智能体应用,包含707条人工标注指令,平均长度达1723词,最长15630词,平均每条含11.9个约束,涵盖工具使用、条件限制等多种类型。每条指令均标注对应约束及评估指标,包括代码验证、大模型评分和混合评估方式。实验发现,当前主流大模型在复杂约束和工具规范上普遍表现不佳。通过错误分析与元约束实验,揭示了模型失效模式。代码与数据已公开,推动后续研究。
原文摘要 · Abstract (English)
Large Language Models (LLMs) have demonstrated advanced capabilities in real-world agentic applications. Growing research efforts aim to develop LLM-based agents to address practical demands, introducing a new challenge: agentic scenarios often involve lengthy instructions with complex constraints, such as extended system prompts and detailed tool specifications. While adherence to such instructions is crucial for agentic applications, whether LLMs can reliably follow them remains underexplored. In this paper, we introduce AgentIF, the first benchmark for systematically evaluating LLM instruction following ability in agentic scenarios. AgentIF features three key characteristics: (1) Realistic, constructed from 50 real-world agentic applications. (2) Long, averaging 1,723 words with a maximum of 15,630 words. (3) Complex, averaging 11.9 constraints per instruction, covering diverse constraint types, such as tool specifications and condition constraints. To construct AgentIF, we collect 707 human-annotated instructions across 50 agentic tasks from industrial application agents and open-source agentic systems. For each instruction, we annotate the associated constraints and corresponding evaluation metrics, including code-based evaluation, LLM-based evaluation, and hybrid code-LLM evaluation. We use AgentIF to systematically evaluate existing advanced LLMs. We observe that current models generally perform poorly, especially in handling complex constraint structures and tool specifications. We further conduct error analysis and analytical experiments on instruction length and meta constraints, providing some findings about the failure modes of existing LLMs. We have released the code and data to facilitate future research.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。