← Latest papers
🤖 AI

PluginEval: A Diagnostic Benchmark for Fine-Grained Error Attribution in Function Calling

This paper introduces PluginEval, a diagnostic benchmark that employs a two-stage framework combining LLM generation with deterministic API execution to systematically address data distribution gaps and lack of adversarial testing, thereby enabling fine-grained error attribution for evaluating tool routing in large language models.

Original authors: Dongjie Xu, Julius, Hanchi Dong, Minghua Tang, Yuxuan Sun, Ziwei Nie, Zicheng Liu, Dujun Qing, Jiajie Xu

Published 2026-08-11
📖 6 min read🧠 Deep dive

Original authors: Dongjie Xu, Julius, Hanchi Dong, Minghua Tang, Yuxuan Sun, Ziwei Nie, Zicheng Liu, Dujun Qing, Jiajie Xu

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are teaching a very smart, very eager robot butler how to use a giant toolbox filled with thousands of different gadgets. You tell the robot, "I'm hungry," and it has to decide three things: first, does it actually need to use a tool, or can it just think of a snack? Second, if it needs a tool, which specific gadget is the right one (a blender, not a hammer)? And third, can it actually grab that gadget and use it correctly without breaking it? This is the world of "function calling" in Artificial Intelligence. It's the skill that lets AI models stop just chatting and start actually doing things, like booking flights or checking the weather. But here's the tricky part: just because a robot says the right words doesn't mean it picked the right tool or used it correctly. We need a way to test if the robot is truly smart or just lucky.

That's exactly what the researchers behind this paper, PluginEval, are trying to fix. They noticed that most current tests for these AI robots are like a driving test where everyone gets an easy, empty parking lot. The tests don't have enough tricky situations, they don't catch the specific ways robots fail, and they often rely on other robots to grade the answers, which can be biased. So, the team built a new, much tougher "driving test" specifically for Chinese language queries. They created a system that doesn't just look at the final score but acts like a detective, figuring out exactly why a robot failed: did it forget to bring a tool, did it grab the wrong one, or did it try to use the right tool but spill the ingredients?

The Detective's Toolkit: How They Built the Test

To build this new benchmark, the authors didn't just write down a bunch of questions and hope for the best. They invented a "Closed-Loop Construction Framework" (PCCF), which is a fancy way of saying they built a self-correcting machine to make the test.

Think of it like a video game level designer that keeps replaying a level until it's perfect.

  1. Stage One (The Reality Check): First, they take a question (like "Find me a cheap flight to Tokyo") and ask several AI models to try to solve it. But here's the twist: they don't just trust the AI's word. They actually run the code. If the AI says "I'll call the flight API," the system tries to make that call. If the API says "Error: Missing date," the system knows the AI failed. This separates the "idea" from the "reality."
  2. Stage Two (The Gap Filler): The system then looks at the results and asks, "Where are we missing tricky questions?" Maybe the test has too many easy questions about weather and not enough hard questions about booking complex travel. The system then generates new, harder questions specifically to fill those holes. It creates "adversarial" questions—traps designed to trick the AI into making mistakes.
  3. The Loop: These new, tricky questions go back to Stage One to be tested again. If they are too easy, the system makes them harder. If they are too confusing, it uses recognition evidence to strengthen the negative examples before re-verifying them. This loop keeps spinning until the test covers every possible way an AI could get confused, from simple mistakes to complex logic traps.

The Verdict: What the Test Revealed

Once they had their perfect test (which included 3,000 human-verified questions across 54 different tools), they put five of the world's smartest AI models to the test. These included big names like GPT-5.4, Claude 4.6, and Gemini 3.1 Pro.

The results were eye-opening. The authors found that aggregate scores (the final grade) are misleading.

  • The Difficulty Trap: When the test was mostly easy questions, all the AIs looked like geniuses, scoring over 80%. But as soon as they hit the "Hard" questions, the scores plummeted. For the hardest questions, even the best AI only got about 10% right. This suggests that current models are very fragile; they work great on simple tasks but crumble when things get complicated.
  • Different Flaws for Different Models: The paper didn't just say "Model A is better." It broke down the errors like a mechanic checking a car engine.
    • GPT-5.4 was the worst at both identifying required tools and avoiding unnecessary calls, exhibiting the highest rates of both "miss recall" (forgetting to use a needed tool) and "over recall" (using a tool when it shouldn't).
    • Claude Opus 4.6 was the best at remembering to use tools (lowest "miss recall"), but it sometimes used them when it shouldn't have (high "over recall").
    • Gemini 3.1 Pro had the most balanced error profile, achieving the lowest "over recall" rate, which helped it maintain competitive accuracy despite having a lower recall than Claude.
  • The "Time" Problem: One specific type of error stood out for every model: Temporal Errors. Whether it was asking for "next Tuesday" or "last month," the AIs consistently struggled to get the dates and times right. This was the biggest source of failure across the board.

Why This Matters

The paper argues that we can't just look at a single percentage to judge an AI's ability to use tools. A model might have a high score because it's good at easy questions, or because it's lucky. By using their new "Gold-Anchored" judging system—which compares the AI's answer against a human-verified "gold standard" rather than another AI's guess—they could pinpoint exactly where the robot failed.

The authors suggest that to make truly reliable AI agents, we need to stop treating them like black boxes that either work or don't. Instead, we need to diagnose them like a doctor: checking if they missed a step, if they grabbed the wrong tool, or if they just got the timing wrong. Their work shows that while today's AI is powerful, it still has significant blind spots, especially when the task gets hard or the timing gets tricky. The paper doesn't claim to have "solved" AI tool use, but it provides the first real map of where the robots are stumbling, so we can help them learn to walk more steadily.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →