mlsanityData to 14 Oct 2026

AGENTIF: Benchmarking Instruction Following of Large Language Models in Agentic Scenarios

arXiv 2505.16944 ↗First posted 22 May 2025cs.AI cs.CLcited by 49

On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks

Abstract (arXiv)

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.

Key facts. Cited by 49 papers in the map (data through 14 Oct 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 27 of its 37 references that are in the map. First posted on arXiv 22 May 2025.

Builds on

27 of 37 references.

Closest ancestors · 1

Same direction, newest first

  1. 2025Large Language Model Agent: A Survey on Methodology, Applications and Challenges27 Mar

Other references · 26

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2024GPT-4o System Cardcited by 4,588
  4. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,407
  5. 2023Instruction-Following Evaluation for Large Language Modelscited by 1,228
  6. 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
  7. 2023Prompt Injection attack against LLM-integrated Applicationscited by 605
  8. 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructionscited by 493
  9. 2024WebVoyager: Building an End-to-End Web Agent with Large Multimodal Modelscited by 438
  10. 2023AppAgent: Multimodal Agents as Smartphone Userscited by 415
  11. 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 379
  12. 2023A Real-World WebAgent with Planning, Long Context Understanding, and Program Synthesiscited by 353
14 more
  1. 2024Large Language Model-Brained GUI Agents: A Surveycited by 162
  2. 2024Benchmarking Complex Instruction-Following with Multiple Constraints Compositioncited by 152
  3. 2024InFoBench: Evaluating Instruction Following Ability in Large Language Modelscited by 135
  4. 2023FollowBench: A Multi-level Fine-grained Constraints Following Benchmark for Large Language Modelscited by 117
  5. 2024Multi-IF: Benchmarking LLMs on Multi-Turn and Multilingual Instructions Followingcited by 102
  6. 2025PPTAgent: Generating and Evaluating Presentations Beyond Text-to-Slidescited by 86
  7. 2023Can Large Language Models Understand Real-World Complex Instructions?cited by 69
  8. 2024CFBench: A Comprehensive Constraints-Following Benchmark for LLMscited by 67
  9. 2025LLM Agents for Education: Advances and Applicationscited by 59
  10. 2023When does In-context Learning Fall Short and Why? A Study on Specification-Heavy Taskscited by 37
  11. 2024SysBench: Can Large Language Models Follow System Messages?cited by 28
  12. 2024Conifer: Improving Complex Constrained Instruction-Following Ability of Large Language Modelscited by 27
  13. 2025CodeIF: Benchmarking the Instruction-Following Capabilities of Large Language Models for Code Generationcited by 19
  14. 2024Constraint Back-translation Improves Complex Instruction Following of Large Language Modelscited by 11

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 11; 2026: 38.

49 papers.

Sort:

By area:

  1. 2025Vibe Coding vs. Agentic Coding: Fundamentals and Practical Implications of Agentic AIcited by 42
  2. 2026AgentNoiseBench: Benchmarking Robustness of Tool-Using LLM Agents Under Noisy Conditioncited by 23
  3. 2026OctoBench: Benchmarking Scaffold-Aware Instruction Following in Repository-Grounded Agentic Codingcited by 15
  4. 2026TRIP-Bench: A Benchmark for Long-Horizon Interactive Agents in Real-World Scenarioscited by 10
  5. 2026IF-RewardBench: Benchmarking Judge Models for Instruction-Following Evaluationcited by 10
  6. 2026RAIN-Merging: A Gradient-Free Method to Enhance Instruction Following in Large Reasoning Models with Preserved Thinking Formatcited by 9
  7. 2025Beyond Task Completion: An Assessment Framework for Evaluating Agentic AI Systemscited by 8
  8. 2025Replay Failures as Successes: Sample-Efficient Reinforcement Learning for Instruction Followingcited by 8
  9. 2026Uncertainty-Aware Clarification in LLM Agents with Information Gaincited by 8
  10. 2025Revisiting the Reliability of Language Models in Instruction-Followingcited by 7
  11. 2026CCTU: A Benchmark for Tool Use under Complex Constraintscited by 7
  12. 2025Instructions are all you need: Self-supervised Reinforcement Learning for Instruction Followingcited by 6
37 more
  1. 2026Did You Forget What I Asked? Prospective Memory Failures in Large Language Modelscited by 6
  2. 2026Learning to Act under Noise: Enhancing Agent Robustness via Noisy Environmentscited by 6
  3. 2026PerspectiveGap: A Benchmark for Multi-Agent Orchestration Promptingcited by 6
  4. 2026EurekAgent: Agent Environment Engineering is All You Need For Autonomous Scientific Discoverycited by 6
  5. 2026S1-DeepResearch: Beyond Search, Toward Real-World Long-Horizon Research Agentscited by 5
  6. 2025Reasoning over Boundaries: Enhancing Specification Alignment via Test-time Deliberationcited by 4
  7. 2026Neuro-Symbolic Verification on Instruction Following of LLMscited by 4
  8. 2026ARKV: Adaptive and Resource-Efficient KV Cache Management under Limited Memory Budget for Long-Context Inference in LLMscited by 4
  9. 2026RecRM-Bench: Benchmarking Multidimensional Reward Modeling for Agentic Recommender Systemscited by 4
  10. 2026OneDayAgent: Towards a Long-Horizon Harness for Autonomous Agentscited by 4
  11. 2026Harness-IF: Evaluating Instruction Following Across Instruction Surfaces in Coding Agentscited by 4
  12. 2025Beyond the Trade-off: Self-Supervised Reinforcement Learning for Reasoning Models' Instruction Followingcited by 3
  13. 2025Evaluating Language Model Reasoning about Confidential Informationcited by 3
  14. 2026Evaluating Ill-Defined Tasks in Large Language Modelscited by 3
  15. 2026The Compliance Gap: Why AI Systems Promise to Follow Process Instructions but Don'tcited by 3
  16. 2026Characterization of Multi-Model Agentic AI Systems on General Tasks via Trace-Driven Simulationcited by 3
  17. 2025LogicIF: Towards Complex Logic Instruction Followingcited by 2
  18. 2025Analyzing and Internalizing Complex Policy Documents for LLM Agentscited by 2
  19. 2026Amory: Building Coherent Narrative-Driven Agent Memory through Agentic Reasoningcited by 2
  20. 2026On the Paradoxical Interference between Instruction-Following and Task Solvingcited by 2
  21. 2026One Token Away from Collapse: The Fragility of Instruction-Tuned Helpfulnesscited by 1
  22. 2026SEIF: Self-Evolving Reinforcement Learning for Instruction Followingcited by 1
  23. 2026A-ProS: Towards Reliable Autonomous Programming Through Multi-Model Feedbackcited by 1
  24. 2026Selective QA over Conflicting Multi-Source Personal Memory: A Diagnostic Testbed and Method Comparisoncited by 1
  25. 2025Diagnostics of cognitive failures in multi-agent expert systems using dynamic evaluation protocols and subsequent mutation of the processing contextcited by 0
  26. 2026LsrIF: Enhancing Logic-Structured Instruction Following of Large Language Modelscited by 0
  27. 2026UniComp: A Unified Evaluation of Large Language Model Compression via Pruning, Quantization, and Distillationcited by 0
  28. 2026Humans' ALMANAC: A Human Collaboration Dataset of Action-Level Mental Model Annotations for Agent Collaborationcited by 0
  29. 2026Long SKILL Compliance as Logical Reasoning: Closure-Grounded Detection with Scaling-Guided On-Policy Distillationcited by 0
  30. 2026LLM within MCP Matters: Measuring Inefficient Resource Utilization Driven by LLMscited by 0
  31. 2026Mitigating Exploration Bias in RL for Multi-Instruction Followingcited by 0
  32. 2026Video-IFBench: Evaluating Instruction Following of Multimodal LLMs in Video Understanding Scenarioscited by 0
  33. 2026MTAC-IFBench: Benchmarking Instruction-Following in Multi-Turn Agentic Codingcited by 0
  34. 2026What Happens During Autonomous Deep Research After the User Steps Away?cited by 0
  35. 2026Large-scale factor analysis shows machine intelligence is only partially interpretablecited by 0
  36. 2026How Do Agentic LLMs Decide to Call Tools? A Tool-Call Vector Shaped by Suppressioncited by 0
  37. 2026ANCHOR: Assessing Naturalistic Constraint Hierarchies and Ordering in Repository-Grounded Agentic Codingcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026AgentGym2: Benchmarking Large Language Model Agents in De-Idealized Real-World Environments
  2. 2023AgentBench: Evaluating LLMs as Agents
  3. 2026Enhancing LLM Instruction Following: An Evaluation-Driven Multi-Agentic Workflow for Prompt Instructions Optimization
  4. 2024AgentQuest: A Modular Benchmark Framework to Measure Progress and Improve LLM Agents
  5. 2023AgentTuning: Enabling Generalized Agent Abilities for LLMs
  6. 2025LMR-BENCH: Evaluating LLM Agent's Ability on Reproducing Language Modeling Research
  7. 2026UniACE: A Unified Framework for Evaluating LLM Agentic Capabilities
  8. 2026AgentIF-OneDay: A Task-level Instruction-Following Benchmark for General AI Agents in Daily Scenarios