TL;DR
Standard evaluations for LLM tool-calling rely on binary exact-match scores, hiding whether a model failed at choosing the tool, matching the schema, or grounding the arguments. SAAG introduces a three-stage cascaded diagnostic framework (Registry Conformance, Structural Completeness, and Argument Grounding) that pinpoints precise failure modes and drives an inference-time self-repair loop. Providing targeted structural feedback consistently reduces value hallucinations and boosts precision across small language models.
What Problem Does This Paper Address?
Function calling has become the standard interface for Large Language Models (LLMs) to interact with external APIs, databases, and software. However, evaluating how well an LLM performs this task is notoriously difficult. Current benchmarks typically rely on coarse, binary "exact-match" metrics: either the model output matches the ground truth perfectly, or it fails.
This all-or-nothing approach obscures where and why a model fails. Did it hallucinate a non-existent function name? Did it miss a required parameter? Or did it select the right tool but invent an argument value out of thin air? Without granular diagnostics, developers cannot effectively troubleshoot model behavior. Furthermore, when models fail in production, uninformative error messages or simple binary feedback ("Incorrect, try again") provide insufficient guidance for the model to self-correct efficiently.
Methods
The authors introduce SAAG (Structured Agent Assessment and Grounding), a cascaded evaluation pipeline that decomposes tool-calling into three sequential quality gates:
- Registry Conformance: Verifies if the predicted function name exists in the tool registry. It uses Function Name Exact Match (FNEM) and a string-similarity Nearest Candidate Score (NCS) to catch and quantify misspellings.
- Structural Completeness: Ensures the arguments satisfy the function's JSON schema. It measures Required Parameter Recall (RPR) to catch missing arguments, alongside Parameter Drift Score (PDS) and Spurious Parameter Rate (SPR) to flag un-registered arguments.
- Argument Grounding: Checks if the argument values are faithfully derived from the user's query. It evaluates Argument Value Exact Match (AVEM), Query-Supported Lexical Overlap (QSLO) for paraphrases, and Value Hallucination Rate (VHR).
The evaluation cascade is strict: if a model fails an early stage, evaluation halts immediately to ensure downstream metrics are only computed on structurally sound inputs.
Crucially, SAAG leverages these metrics to power an inference-time Cascaded Correction Loop. When a stage fails, the framework generates a deterministic, templated feedback message ($\psi_k$) tailored to that specific error (e.g., pointing out a misspelled parameter or an ungrounded numeric value) and feeds it back to the model as a user turn. This allows the model to iteratively self-repair its tool call without leaking any ground-truth answers.
Datasets
The authors constructed a controlled evaluation benchmark derived from the Glaive function-calling dataset (v2). They filtered the corpus to retain rows requiring exactly one tool call with well-defined JSON schemas.
To evaluate how registry complexity impacts performance, they kept the ground-truth function and sampled random "distractor" functions from the pool to scale the registry size to 5, 10, and 15 tools per prompt. They tested the framework across 3,000 queries using three local, sub-4B parameter models: LLaMA 3.2 (3B), Ministral 3B, and Granite 3.1 (3B).
Key Insights and Ideas
- Argument Grounding is the Primary Bottleneck: Across all models and conditions, function name accuracy was near perfect. The real failure mode is argument grounding—models frequently struggle to map user query details accurately into parameter values.
- The "Overcorrection Effect" in Reasoning Models: While SAAG's structured feedback consistently improved argument precision, it occasionally led to a slight drop in overall F1 scores for reasoning-oriented models (Ministral and Granite). The multi-turn feedback loop sometimes caused these highly sensitive models to second-guess and alter initially correct parts of their prediction.
- Targeted Feedback Accelerates Convergence: Content-based diagnostic feedback allows models to recover and converge much faster (typically within 2–3 iterations) than uninformative binary feedback, making it highly token-efficient.
Key Results
- Significant Hallucination Reduction: SAAG consistently reduced value hallucinations across the board. Notably, Ministral 3B achieved a 40% reduction in value hallucinations, with its Value Hallucination Rate (VHR) dropping from 0.277 to 0.166.
- Substantial Solve Rate Gains: LLaMA 3.2 saw its overall solve rate jump from 61.5% in a single-pass baseline to 80.2% when aided by SAAG's structured correction loop.
- Robustness to Scale: As the tool registry size scaled from 5 to 15, models using SAAG maintained more stable performance compared to single-pass baselines, which degraded sharply as more distractors were added.
Limitations and Future Work
- Single-Tool Focus: The evaluation is currently restricted to selecting a single tool from a fixed registry. It does not yet address complex multi-agent chaining or dynamic tool discovery.
- Lexical Grounding Constraints: The argument grounding stage relies heavily on surface-level lexical overlap (substring matching). If a model generates an argument that is semantically correct but uses entirely different wording than the query, SAAG may incorrectly flag it as a hallucination.
- Mitigating Overcorrection: Given that reasoning models sometimes break valid calls during the feedback loop, the authors note that implementing confidence-gated or uncertainty-aware correction mechanisms is an important direction for future work.
Summary updated