Source-linked AI summary
Instruction-Following Evaluation in Function Calling for Large Language Models
Nikolai Skripko
TL;DR
Existing function-calling benchmarks often omit format instructions embedded in parameter descriptions, despite their relevance to valid tool use. IFEval-FC evaluates such instructions with a benchmark of function-call tasks and algorithmic checks. The latest models outperform predecessors, yet no evaluated model exceeds 80% accuracy, and the current benchmark is limited to English-language calls.
Problem
Existing function-calling benchmarks often evaluate functional correctness or API selection while overlooking argument formatting, leaving a dimension of agent robustness under-evaluated.
Source: §1 · p. 2Method
IFEval-FC embeds verifiable format instructions in JSON-schema parameter descriptions and evaluates them with automated checks.
Source: §1 · p. 2Results
No evaluated model surpassed 80% accuracy, although the latest models performed significantly better than their predecessors.
Source: §3 · p. 4Takeaways & Limitations
Overlooked formatting requirements can produce invalid function calls and downstream failures in agent workflows.
Source: §1 · p. 1The current benchmark focuses on English-language function calls and provides only one function for the model to call.
Source: §3 · p. 4
Abstract
from arXiv · showhide
Function calling is a core capability of large language models, essential for AI agents. Existing benchmarks such as the Berkeley Function Calling Leaderboard (BFCL), tau^2-Bench (arXiv:2506.07982), and ACEBench (arXiv:2501.12851) evaluate argument correctness but do not test adherence to format instructions embedded in parameter descriptions, such as enclosing values in double quotes or using ISO date formats. We introduce IFEval-FC, a benchmark inspired by IFEval (arXiv:2311.07911) that assesses precise instruction following in function calling. IFEval-FC encodes verifiable formats directly within JSON schema descriptions, for example specifying that a value must not contain punctuation. It includes 750 test cases, each consisting of a function with an embedded format for one of its input parameters and a corresponding user query. Evaluation is fully algorithmic, ensuring objectivity, reproducibility, and scalability. Our results show that even state-of-the-art proprietary models, including GPT-5 and Claude 4.1 Opus, frequently fail to follow basic formatting rules, highlighting a practical limitation for real-world agent systems. The complete codebase and data are publicly available at https://github.com/Skripkon/IFEval-FC.
1 INTRODUCTION
Function-calling agents need to follow formatting requirements embedded in JSON-schema parameter descriptions. Existing benchmarks often assess functional correctness or API selection while overlooking argument formatting, and this gap motivates IFEval-FC.
1 INTRODUCTION
- Formatting requirements in JSON-schema parameter descriptions are a critical part of function calling, and overlooking them can lead to invalid calls and downstream agent failures.Examples include requiring a capitalized string or an ISO 8601 date.Source: §1 · p. 1
- Existing function-calling benchmarks often assess functional correctness or API selection but overlook whether arguments follow required formats.The paper describes this omission as leaving a crucial dimension of agent robustness under-evaluated.Source: §1 · p. 2
- IFEval-FC evaluates verifiable format instructions embedded in JSON-schema parameter descriptions using automated checks for reproducible evaluation.The benchmark is inspired by IFEval and avoids reliance on human or LLM-as-a-Judge evaluation.Source: §1 · p. 2
2 VERIFIABLE INSTRUCTIONS
IFEval-FC adapts verifiable instructions to function parameters, then constructs and filters function-call tasks to evaluate adherence to embedded formats. It reports binary instruction-following scores and presents overall model performance, with higher scores indicating better adherence.
2 VERIFIABLE INSTRUCTIONS
- IFEval-FC evaluates precise formatting constraints embedded in JSON-schema parameter descriptions, extending function-calling benchmarks beyond functional correctness and API selection.The approach adapts verifiable instructions from IFEval.Source: §2 · p. 2
2.1 INSTRUCTION CATEGORIES AND TYPES
- The benchmark organizes 19 instruction types into seven categories, adapting many from IFEval and introducing types such as Cyrillic Greek and Python List Format.Table 1 gives examples of format-instruction categories encoded in parameter descriptions.Source: §2.1 · p. 2, Table 1 · p. 3
2.2.1 FUNCTIONS
- Functions combine BFCL schemas enhanced with constraints and GPT-5-generated schemas across 80 domains, with instructions injected into a suitable string parameter.Generated functions include a free-form natural-language parameter without an enum or format field; BFCL functions use a randomly chosen string parameter without those fields.Source: §2.2.1 · p. 2
2.2.2 USER QUERY GENERATION
- GPT-5 generated five conversational queries per function, supplying required parameter values without embedded formats so the model must transform values to meet constraints.Queries are based on the original functions, before format instructions are embedded.Source: §2.2.2 · pp. 2–3
- Tasks were retained only when the function was necessary but not uniformly too difficult or too easy across five queries; an LLM ensemble supported validation.Because Claude Opus 4.1 models more often refused function calls, evaluation added a system message requiring function invocation without clarification.Source: §2.2.2 · p. 3
2.3 INSTRUCTION DIFFICULTY AND FILTERING
- Instruction types that yielded 90–100% accuracy across models, including trivial case constraints, were excluded to preserve the benchmark’s discriminative power.Source: §2.3 · p. 4
2.4 IFEVAL-FC METRICS
- The metric assigns 1 when a response follows a verifiable instruction and 0 otherwise, and the authors evaluated models using this score.Source: §2.4 · p. 4
- Figure 1 presents overall performance across format constraints, with higher scores indicating better adherence.Source: Figure 1 · p. 4, §2.4 · p. 4
3 DISCUSSION AND FUTURE WORK
The latest evaluated models perform better than their predecessors, but none exceeds 80% accuracy on precise instruction following in function calling. The authors identify single-function and English-only evaluation as current scope boundaries.
3 DISCUSSION AND FUTURE WORK
- No evaluated model exceeded 80% accuracy, although the latest models performed significantly better than their predecessors.The authors conclude that precise instruction following in function calling remains an open problem for LLMs.Source: §3 · p. 4
- The current setup offers only one function, so it does not test selecting the correct function from alternatives; adding that challenge may lower observed performance.Future work also proposes expanding the function set and selecting more difficult samples.Source: §3 · p. 4
- The benchmark currently focuses on English-language function calls; future iterations could add multilingual support to assess cross-lingual instruction following.Source: §3 · p. 4
4 DETAILED RESULTS
Section 4 presents evaluation results in separate tables for GigaChat, Anthropic, and OpenAI models.
- Table 2 presents evaluation results for GigaChat models.Source: Table 2 · p. 6
- Table 3 presents evaluation results for Anthropic models.Source: Table 3 · p. 6
- Table 4 presents evaluation results for OpenAI models.Source: Table 4 · p. 7