Introduction
While modern language models (LMs) are increasingly adept at the mechanics of tool use—selecting the right function and formatting arguments—they frequently struggle with the critical decision of whether a tool should be called at all. This "over-eagerness" leads to hallucinations where models invent parameters or call irrelevant tools rather than admitting a lack of information or capability.
This paper introduces When2Call, a new benchmark and training methodology designed to curb these behaviors. The goal is to teach models to distinguish between four distinct scenarios: calling a tool when appropriate, asking a follow-up question when information is missing, admitting an inability to answer when no tool fits, and avoiding direct text answers for tool-dependent queries.
The When2Call Benchmark
Most existing benchmarks, such as the Berkeley Function Calling Leaderboard (BFCL), focus primarily on parameter accuracy. When2Call expands this scope by incorporating "near-miss" scenarios where tools are semantically related but technically irrelevant, or where critical parameters (like dates or locations) are intentionally omitted.
To ensure high-quality evaluation, the researchers built When2Call upon existing datasets like BFCL v2 Live and APIGen, using a synthetic data pipeline powered by Mixtral 8x22B to generate challenging edge cases. The benchmark is formulated as a multiple-choice task, measuring a model's preference between correct and incorrect behaviors using log-probabilities, which ensures reproducible and fast evaluation.
Training for Restraint: Reward-aware Preference Optimization
The authors found that standard Supervised Fine-Tuning (SFT) is often a blunt instrument for this problem. Training a model on negative examples frequently results in "laziness," where the model becomes too conservative and stops calling tools even when they are necessary.
To address this, the researchers employed Reward-aware Preference Optimization (RPO). By providing the model with pairs of "correct" versus "incorrect" behaviors, RPO allows the model to learn the fine line between helpfulness and over-confidence. This alignment strategy proved significantly more effective at balancing tool-calling proficiency with the wisdom to refrain when appropriate.
Experimental Results
The evaluation of state-of-the-art models revealed a widespread bias toward over-calling tools. Even high-performing models like Llama 3.1 and Qwen 2.5 struggle significantly with the "unable to answer" category, often showing tool hallucination rates above 50%.
As shown in the results table, the authors' Mistral-NeMo-Minitron (MNM) 8B model saw dramatic improvements when trained with RPO. Its Macro F1 score on When2Call jumped from a baseline of 31.9 to 52.4, while its tool hallucination rate plummeted from 19% to just 1.2%. Notably, larger models do not inherently possess more "wisdom" in this regard; the 70B Llama 3.1 model exhibited a higher hallucination rate (57%) than many of its smaller counterparts.
Conclusion and Future Work
When2Call highlights a critical gap in current agentic AI: the ability to know when not to act. While RPO provides a robust path forward for training more reliable agents, limitations remain. The current benchmark is English-centric and assumes that any direct text answer for a tool-required query is a hallucination. Future work will focus on expanding to multi-turn interactions and incorporating "LLM-as-judge" filtering to further refine synthetic data quality.
Summary updated