The Berkeley Function Calling Leaderboard (BFCL): From Tool Use to Agentic Evaluation of Large Language Models

Shishir G Patil, Huanzhi Mao, Fanjia Yan, Charlie Cheng-Jie Ji, Vishnu Suresh, Ion Stoica, Joseph E. GonzalezICML 2025

TL;DR

The Berkeley Function Calling Leaderboard (BFCL) is a new gold-standard benchmark designed to evaluate how effectively Large Language Models (LLMs) use external tools and APIs. By moving beyond simple single-turn tasks to complex, multi-turn, and "agentic" scenarios, BFCL reveals that while today’s models are great at basic API calls, they still struggle significantly with memory management and long-horizon reasoning.

What Problem Does This Paper Address?

As we move from LLMs as mere "chatbots" to "agents" that can actually do things—like booking a flight, searching a database, or controlling a smart home—their ability to call functions (tool use) becomes critical. However, evaluating this ability is notoriously difficult for two main reasons:

  1. Evaluation Complexity: Determining if a function call is "correct" often requires actually executing the code, which is slow, insecure, and hard to scale.
  2. Lack of Real-World Diversity: Existing benchmarks are often too simple, focusing on single-turn interactions in narrow, synthetic domains that don't reflect how people actually use these tools.

The authors introduce BFCL to provide a rigorous, scalable, and diverse yardstick that captures the messiness of real-world agentic behavior.

Methods

The researchers developed several novel evaluation strategies to make BFCL both scalable and accurate:

  • AST Substring Matching: Instead of executing every function call (which is computationally expensive), they use Abstract Syntax Trees (AST) to parse the model's output. This allows for deterministic, "offline" validation of function names and parameters while allowing for variations in formatting.
  • Execution-Response Matching: For functions where the output is deterministic or time-sensitive (like a currency converter), they actually execute the code and compare the result against a ground-truth "minimal viable execution path."
  • Multi-Turn State Evaluation: For complex conversations, the benchmark checks the "final state" of the system after multiple turns. This ensures the model didn't just make the right calls, but achieved the correct end goal.
  • LLM-as-a-Judge: They use a high-performing model (like GPT-4o) to perform root-cause analysis on errors, categorizing failures into specific misunderstandings of the environment, user request, or documentation.

Datasets

BFCL is composed of four distinct pillars, totaling 5,551 question-function-answer pairs designed to test various facets of tool use:

Dataset distribution across the four pillars of BFCL.
  1. Single-Turn: Tests basic scenarios, including parallel calls (multiple calls at once) and "irrelevance" (knowing when not to call a tool).
  2. Crowd-Sourced: A massive collection of real-world queries (curated down to 2,251) across 15+ languages, providing a "stress test" against data contamination.
  3. Multi-Turn: Features 1,000 queries across eight API suites (like vehicle control or travel booking) to test sustained context management.
  4. Agentic: Focuses on specialized applications like Web Search, SQL database queries, and long-term memory management.

Key Insights and Ideas

  • The "FC vs. Prompting" Trade-off: Models can use tools via "Native Function Calling" (FC mode) or through system prompts. Interestingly, while FC mode is easier to parse, it is often more rigid. More capable models often perform better in prompting mode because it allows for more flexibility in complex, multi-step scenarios.
  • Parallel Call Regression: In a surprising finding, some flagship models showed a regression in parallel function calling compared to their predecessors. The authors hypothesize that these models are being optimized for sequential reasoning, which might inadvertently discourage them from making multiple calls simultaneously.
  • The Memory Wall: Memory management is the "final boss" of current LLMs. Even top-tier models reached only ~12% accuracy in the memory category. Models frequently hallucinate keys or fail to retrieve stored information correctly.
  • Generalization vs. Memorization: By comparing performance on the static single-turn set versus the newer crowd-sourced set, the authors can detect if a model has simply "memorized" the benchmark. Most state-of-the-art models showed genuine generalization, though some specialized models saw significant performance drops on the "live" data.

Key Results

  • Top Performers: GPT-4o and the o1 series currently lead the leaderboard, particularly excelling in single-turn and crowd-sourced tasks.
  • The Reasoning Gap: While models are hitting 90%+ accuracy on simple function calls, performance plummets in "Agentic" tasks.
  • Error Distribution: The most common failure mode across all models is "Failed to Understand Environment State"—meaning the model loses track of what has already happened in the conversation or the current state of the tools it's using.
Error distribution analysis revealing that understanding environment state is a primary failure mode.

Limitations and Future Work

The authors acknowledge that while BFCL is comprehensive, the "agentic" frontier is moving fast. Current limitations include:

  • Dynamic Decision-Making: Models still struggle with long-horizon reasoning where the "next step" depends entirely on the output of a previous, unpredictable tool call.
  • Memory Scaling: The benchmark highlights a massive gap in how models handle long-term state, suggesting that future research needs to focus on more robust "operating system-like" memory for LLMs.
  • Real-World Side Effects: The benchmark primarily uses simulated environments; evaluating models in "live" environments with real-world consequences remains a high-risk, high-reward challenge for the future.

Summary updated

BibTeX
@inproceedings{patil2025berkeley,
  author = {Shishir G Patil and Huanzhi Mao and Fanjia Yan and Charlie Cheng-Jie Ji and Vishnu Suresh and Ion Stoica and Joseph E. Gonzalez},
  title = {{The Berkeley Function Calling Leaderboard (BFCL): From Tool Use to Agentic Evaluation of Large Language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=2GmDdhBdDk},
}
Figure