Introduction
Tool-Augmented Language Models (TALMs) leverage external APIs to answer user queries across various domains. However, existing benchmark datasets for TALM research often feature simplistic, "one-query, one-tool" dialogues that do not reflect real-world scenarios. In reality, interactions are messy: users might be vague, lack required data, or necessitate clarifying questions before a model can proceed.
To address this gap between laboratory performance and real-world reliability, researchers have introduced ToolDial, a new benchmark and dataset comprising 11,111 complex, multi-turn dialogues. By incorporating an API graph for tool chaining and 16 distinct user/system actions, ToolDial pushes models to handle realistic, multi-step reasoning.
Methodology: Generating Complex Dialogues
To create high-quality, complex dialogues with minimal human effort, the authors developed a novel four-step generation pipeline:
- API Graph Construction: To simulate "tool chaining" (where the output of one API is the input to another), the team built a graph of 4,474 APIs from RapidAPI using S-BERT embeddings and string matching.
- Action Sequence Construction: They defined a taxonomy of 16 actions (e.g.,
Inform intent vague,Clarify,Fail inform,Retriever call) and compiled 23 plausible "skeletons" of how a complex conversation might flow. - Scenario Generation: For each dialogue, an API pair from the graph and a skeleton sequence were selected. GPT-4o was then used to simulate dialogue states and plausible parameter values.
- Utterance Generation: Finally, GPT-4o converted these structured skeletons into natural-sounding conversational turns.
The ToolDial Dataset
The resulting ToolDial dataset significantly exceeds existing benchmarks like ToolBench or API-Bank in terms of situation complexity and action variety.
- Scale: 11,111 dialogues comprising 99,476 total turns.
- Complexity: An average of 8.95 turns per dialogue, compared to the typical 2-3 turns in previous datasets.
- Rich Dynamics: The inclusion of 16 distinct actions captures the rich dynamics of real-world interactions, forcing models to navigate ambiguity and missing information.
Key Insights: "Fail Inform" and Model "Rushers"
A key innovation in ToolDial is the simulation of the "Fail Inform" scenario. Often, a user cannot provide a required parameter. Instead of failing, the system must proactively call a "retriever" API to find the missing information—a much more realistic test of agency than simple slot-filling.
By choosing the logic of the conversation (the action sequence) before generating the words, the dataset covers difficult edge cases that models usually avoid. A major finding from this approach is that GPT-based models are often "rushers." They tend to rush to provide an answer even when information is missing, frequently failing to use Clarify or Request actions appropriately.
Evaluation and Results
The authors evaluated several state-of-the-art models on Dialogue State Tracking (DST) and Action Prediction using ToolDial:
- Baseline Struggles: Even powerful models like GPT-4o achieved accuracy scores below 70% on these tasks, highlighting the benchmark's difficulty and the substantial room for improvement in modern TALMs. Models struggled most with asking for information (
Request) and resolving ambiguity (Clarify). - Fine-tuning Success: To demonstrate ToolDial's value as a training resource, the authors fine-tuned a Llama-3-8B model on the dataset (dubbed TD-Llama). This model significantly outperformed the base GPT-4o on action prediction (91% vs. 63.7% in a setting without ground truth), proving that exposure to complex action sequences dramatically improves tool-use reliability.
Limitations and Future Work
While validated by humans, the synthetic nature of the GPT-4o generated dialogues may introduce subtle biases. Additionally, the method relies heavily on the quality of RapidAPI documentation. Future work will look to expand the dataset to include even more complex multi-tool scenarios involving chains of more than two APIs.
Summary updated