ToolDial: Multi-turn Dialogue Generation Method for Tool-Augmented Language Models

Jeonghoon Shim, Gyuhyeon Seo, Cheongsu Lim, Yohan Jo

TL;DR

This paper introduces ToolDial, a new dataset of over 11,000 multi-turn dialogues designed to better reflect real-world interactions between users and Tool-Augmented Language Models (TALMs). ToolDial addresses the limitations of existing datasets by incorporating complex scenarios where TALMs need to ask clarifying questions, handle missing information, and chain multiple API calls, revealing that current large language models struggle with these multi-turn tool-use challenges.

What Problem Does This Paper Address?

Tool-Augmented Language Models (TALMs) are powerful because they can leverage external APIs to go beyond their inherent knowledge and perform complex tasks. However, current benchmarks for TALMs often focus on single-turn interactions or very simple multi-turn dialogues. This doesn't capture the reality of how humans interact with systems: we often need to clarify our requests, systems need to ask for missing details, and sometimes multiple tools need to be called in sequence to get the job done. This gap makes it hard to truly evaluate and improve TALMs' ability to handle nuanced, real-world conversations involving tool use.

Methods

The authors developed a four-step pipeline to generate the ToolDial dataset:

  1. API Graph Construction: They built a graph representing how APIs connect, where an edge between two APIs signifies that the output of one can serve as the input for the other. This is crucial for simulating API chaining.
  2. Action Taxonomy and Sequence Definition: They defined 16 distinct user and system actions (like "Inform intent clear," "Request," "Fail inform," "Clarify") and created 23 plausible action sequences to model realistic dialogue flows.
  3. Dialogue State Augmentation: They selected API pairs from the graph and action sequences, then enriched them with dialogue state information, specifically tracking API input parameters.
  4. Utterance Generation: Finally, they used GPT-40 to convert these augmented action sequences into natural-sounding dialogue turns.

Datasets

The paper introduces ToolDial, a new dataset comprising 11,111 multi-turn dialogues. Key characteristics include:

  • 16 User and System Actions: Capturing rich interaction dynamics.
  • Average of 8.95 Turns per Dialogue: Significantly longer than many existing benchmarks.
  • API Graph: Used to simulate API chaining and scenarios where users fail to provide necessary information, prompting the system to find alternative APIs.
  • Based on RapidAPI: Utilizes real-world APIs.

The authors also reference existing datasets like MultiWOZ and SGD in the context of Task-Oriented Dialogue Systems (TOD) and compare ToolDial to other TALM benchmarks like ToolBench, API-Bank, and ToolAlpaca, highlighting ToolDial's focus on multi-turn complexity and diverse actions.

Key Insights and Ideas

  • Real-world TALM interactions are complex: The core idea is that current TALM datasets are too simplistic. Real-world scenarios demand more sophisticated dialogue management, including handling user failures, asking clarifying questions, and chaining API calls, which ToolDial aims to capture.
  • API interdependencies are key: The concept of an "API graph" is central to enabling TALMs to understand how to chain APIs, especially when a user fails to provide necessary information for the initial API call.
  • Action diversity matters: A rich taxonomy of user and system actions is essential for modeling the nuanced dynamics of tool-use conversations, going beyond simple "request-response" patterns.
  • Current LLMs struggle with multi-turn tool use: The evaluation results clearly show that even advanced LLMs have significant room for improvement in predicting actions and dialogue states in complex, multi-turn scenarios.

Key Results

  • Dataset Statistics: ToolDial contains 11,111 dialogues with an average of 8.95 turns per dialogue.
  • Model Performance: Modern language models, including GPT-based ones, achieved accuracy scores below 70% on dialogue state tracking and action prediction tasks using the ToolDial dataset.
  • Specific Struggles: GPT models performed poorly in predicting next actions, particularly "Request" and "Clarify" actions. They also struggled with dialogue state prediction, with performance degrading as dialogue length increased.
  • Fine-tuning Benefits: Fine-tuning Llama models on ToolDial (TD-Llama) significantly improved their performance, especially in action prediction, outperforming even GPT models in some cases.
  • Faithfulness: GPT models achieved high faithfulness scores (over 90%), indicating they can generally generate responses consistent with API outputs, though smaller models showed more vulnerability to hallucination.
  • Overall Performance: The fine-tuned TD-Llama model achieved an overall performance score of 77.1% in correctly generating dialogue states and actions over multiple turns, indicating substantial room for improvement in end-to-end task completion.

Limitations and Future Work

  • Model Biases: The authors acknowledge that without guidance, GPT-40 can generate repetitive dialogues with limited action variety. They mitigated this by using a diverse set of APIs and action sequences and by predefining speaking styles.
  • Dialogue State Tracking Challenges: Performance in DST degrades with longer dialogues, especially in the "without GT" setting, highlighting the difficulty of tracking states over extended conversations.
  • Action Prediction Nuances: Models struggle with specific actions like "Request" and "Clarify," and sometimes fail to acknowledge "Response fail" gracefully, instead attempting to clarify.
  • Future Work: The paper suggests that ToolDial can serve as a valuable resource for advancing TALM research, implying future work will involve using this dataset to develop more robust and capable TALMs. The authors also highlight the need for better methods to improve faithfulness, especially for smaller models.

Summary updated

BibTeX
@inproceedings{shim2025tooldial,
  author = {Jeonghoon Shim and Gyuhyeon Seo and Cheongsu Lim and Yohan Jo},
  title = {{ToolDial: Multi-turn Dialogue Generation Method for Tool-Augmented Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=J1J5eGJsKZ},
}
Figure