All benchmarks

  Paper

An 8B model scored above GPT-4o, GPT-4.5 and o1 on Berkeley’s function-calling board

Made by Akshara Prabhakar and 14 co-authors

arXiv preprint; GPT-4o’s scores from the Berkeley Function-Calling Leaderboard

The result

  • Quality

    BFCL v3 overall accuracy (weighted average of the leaderboard’s categories), leaderboard snapshot of 3 Apr 2025. Small model: xLAM-2-8b-fc-r (function-calling mode). Large model: GPT-4o-2024-11-20, prompt mode (its better mode; 69.58% in function-calling mode).

    72.83%vs 72.08%

    Ahead by 0.75 points

    xLAM-2 8B72.83%
    GPT-4o, prompt mode72.08%

    BFCL v3 overall accuracy · higher is better

The story

Agents live on tool calls

Business agents are asked to manage transactions, schedule appointments and handle customer service, which means talking with a person over several turns, working out what they want and calling the right functions with the right arguments. The paper puts the bottleneck in the models themselves, held back by agent conversation data that is scarce and expensive to collect by hand. Salesforce AI Research set out to generate it.

Its pipeline, APIGen-MT, works in two phases. First, an LLM agent drafts task blueprints with the correct sequence of tool calls, checked by format and execution tests and by a committee of LLM reviewers whose feedback goes back to the drafter. Then each blueprint is played out as a conversation between a simulated customer and an agent, GPT-4o in function-calling mode, and only conversations that end in the right state are kept.

Data

APIGen-MT-5k, plus earlier function-calling and agent data

5,000 multi-turn conversations released; the size of the full training mix isn’t given

Generated with GPT-4o and DeepSeek-V3 inside tau-bench’s Retail and Airline environments (its tools, policies and domain data)

Released on Hugging Face under CC BY-NC 4.0. The v1 paper counted 3,820 validated trajectories and also listed DeepSeek R1.

The small model

Small model

xLAM-2-8b-fc-r

8B (8.03B per Hugging Face) · Salesforce AI Research

Full fine-tune on the generated conversations, learning only the agent’s turns

Base
A Llama 3.1/3.2 Instruct model; the 8B’s exact base isn’t named
Salesforce/Llama-xLAM-2-8b-fc-r

Training is supervised: each conversation is split at every agent reply, and the model learns to predict only the agent’s tokens. Salesforce trained a family from 1B to 70B parameters on Llama 3.1/3.2 and Qwen 2.5 Instruct models, mixing in its earlier function-calling data and other agent data. The 8B is the Llama-based one, published as Llama-xLAM-2-8b-fc-r.

Training

Method
Full fine-tuning (filtered behavioral cloning) with LLaMA-Factory, DeepSpeed ZeRO-3, Flash Attention 2, bf16 and AdamW, for at most 3 epochs
Hardware
One NVIDIA H200 node (GPU count not stated)

Not reported: time and cost.

The scoreboard

Large model

GPT-4o (gpt-4o-2024-11-20)

Size not disclosed · OpenAI

Used as released on the BFCL leaderboard, in prompt mode (function calls written as text from BFCL’s instructions)

Base
General model

Evaluation

Test set
Berkeley Function-Calling Leaderboard v3, snapshot of 3 Apr 2025, with the xLAM-2 models added
Metric
BFCL v3 overall accuracy: a weighted average of single-turn, multi-turn and relevance categories
Items
Not stated in the paper
How it was compared
Same benchmark categories and checker. GPT-4o’s row is the leaderboard’s own run, in prompt mode with BFCL’s standard instructions at temperature 0.001 (BFCL code); the xLAM-2 rows appear to be Salesforce’s own runs, since the leaderboard only listed the models from 9 Apr 2025.

The paper’s results table is the BFCL v3 leaderboard as of 3 April 2025, with the xLAM-2 models added. xLAM-2-8b-fc-r scored 72.83% overall, fourth, just above GPT-4o-2024-11-20 in prompt mode (72.08%) and above GPT-4.5-Preview (69.94%) and o1 (67.87%). Its lead comes from multi-turn calls, 69.25% against 47.62%. GPT-4o was ahead on single-turn calls and on spotting requests that no function fits (83.76% against 64.11%).

On tau-bench, a separate test of agents in retail and airline customer-service conversations, GPT-4o stays ahead: 52.9% against 46.7%, averaged over at least five trials. That benchmark is also where the training data’s tools, policies and domain data came from.

Who scored which row matters here. The xLAM-2 models were not on the public leaderboard on 3 April: a Salesforce researcher opened the pull request adding them that day, and the leaderboard listed them from 9 April 2025. The paper reports no cost, latency or inference hardware for any model.

All the numbers

Show all numbersHide all numbersEvery model · Cost, latency and energy · 7 more results

Every model on the headline test

Cost, latency and energy, as reported

Cost
Not reported
Latency
Not reported
Energy
Not reported

More from the source

  • BFCL v3 overall, other proprietary models: GPT-4.5-Preview-02-27 (FC) / GPT-4o-2024-11-20 (FC) / GPT-4-2024-04-09 (FC) / o1-2024-12-17 (Prompt) / o3-mini-25-01-31 (Prompt)

    Small model 72.83Large model 69.94 / 69.58 / 67.88 / 67.87 / 65.12 %

    Table 1

  • BFCL v3 multi-turn accuracy (vs GPT-4o Prompt)

    Small model 69.25Large model 47.62 %

    Table 1; Section 5.2 also cites o1 at 36% and GPT-4o FC at 41%

  • BFCL v3 single-turn, Live (AST)

    Small model 66.73Large model 79.83 %

    GPT-4o is ahead here.

    Table 1

  • BFCL v3 single-turn, Non-live (AST)

    Small model 84.35Large model 88.1 %

    GPT-4o is ahead here.

    Table 1

  • BFCL v3 irrelevance detection

    Small model 64.11Large model 83.76 %

    GPT-4o is ahead here.

    Table 1

  • tau-bench overall success (Retail + Airline average), pass@1

    Small model 46.7Large model 52.9 %

    The 8B loses on this agent benchmark.

    Table 2 (gpt-4o-2024-11-20)

  • Models above it on BFCL v3 (all open fine-tunes): xLAM-2-70b-fc-r / xLAM-2-32b-fc-r / watt-tool-70b

    Small model 72.83Large model 78.19 / 75.83 / 74.31 %

    Table 1

Worth knowing

  • The overall lead over GPT-4o (prompt mode) is narrow (72.83% vs 72.08%) and comes from multi-turn calls; GPT-4o is ahead on single-turn live and non-live calls and on irrelevance detection.
  • On tau-bench, a separate agent benchmark whose domains the training data was built around, the 8B scores 46.7% vs GPT-4o’s 52.9%.
  • Vendor paper; the leaderboard is independent, but the paper does not say who scored the xLAM-2 entries.
  • Three open fine-tunes (two of them larger xLAM-2 models, all 32B-70B) scored higher.
2 more caveats
  • The training data was generated with gpt-4o and DeepSeek V3/R1, so the small model partly learns from large models.
  • Weights are licensed cc-by-nc-4.0 (non-commercial).

Weights on Hugging Face

Published

Published as Salesforce/Llama-xLAM-2-8b-fc-r (the paper’s name is xLAM-2-8b-fc-r; the bare ‘Salesforce/xLAM-2-8b-fc-r’ path does not exist on 03 Oct 2026). Licence cc-by-nc-4.0. Training data: https://huggingface.co/datasets/Salesforce/APIGen-MT-5k

Sources

  1. Prabhakar, Liu, Zhu et al. (Salesforce AI Research), ‘APIGen-MT: Agentic Pipeline for Multi-Turn Data Generation via Simulated Agent-Human Interplay’, arXiv 2504.03601
  2. APIGen-MT project page
  3. Berkeley Function-Calling Leaderboard (current version; the 04/03/2025 snapshot is the one in the paper)
  4. arXiv v1, 4 Apr 2025 (latest v4, 19 Jul 2025, ‘fixes typo in fig 6’); Table 1 and Table 2 are the same in v1 and v4. Leaderboard snapshot dated 04/03/2025.
6 more sources behind this page
  1. arXiv 2504.03601v4
  2. github.com/ShishirPatil/gorilla/pull/972
  3. github.com/ShishirPatil/gorilla/…/CHANGELOG.md
  4. huggingface.co/Salesforce/Llama-xLAM-2-8b-fc-r
  5. github.com/ShishirPatil/gorilla/berkeley-function-call-leaderboard
  6. github.com/zuxin666
Share this benchmark

Drawing the image…

Post text