Abstract
Large language models (LLMs) are increasingly prevalent in conversational systems due to their advanced understanding and generative capabilities in general contexts. However, their effectiveness in task-oriented dialogues (TOD), which requires not only response generation but also effective dialogue state tracking (DST) within specific tasks and domains, remains less satisfying. In this work, we propose a novel approach FnCTOD for solving DST with LLMs through function calling. This method improves zero-shot DST, allowing adaptation to diverse domains without extensive data collection or model tuning. Our experimental results demonstrate that our approach achieves exceptional performance with both modestly sized open-source and also proprietary LLMs: with in-context prompting it enables various 7B or 13B parameter models to surpass the previous state-of-the-art (SOTA) achieved by ChatGPT, and improves ChatGPT’s performance beating the SOTA by 5.6% average joint goal accuracy (JGA). Individual model results for GPT-3.5 and GPT-4 are boosted by 4.8% and 14%, respectively. We also show that by fine-tuning on a small collection of diverse task-oriented dialogues, we can equip modestly sized models, specifically a 13B parameter LLaMA2-Chat model, with function-calling capabilities and DST performance comparable to ChatGPT while maintaining their chat capabilities.
Introduction
In Task-Oriented Dialogue (TOD) systems, the primary challenge is accurately tracking the "state" of a conversation—extracting specific user goals into structured slot-value pairs. This process, known as Dialogue State Tracking (DST), is notoriously difficult for Large Language Models (LLMs) in zero-shot scenarios. Existing approaches typically treat DST as a standalone text-to-text generation task, which often suffers from context length limitations, format rigidity, and poor generalization to unseen domains.
The FnCTOD Framework
The core innovation of this work is FnCTOD, which redefines DST as a process of "calling" a function. By framing dialogue domains as functions and slots as arguments, the framework leverages the inherent structure of modern chat-tuned LLMs, turning a summarization problem into a tool-use problem.
To maintain efficiency and handle complex schemas, FnCTOD employs a two-stage decomposition:
- Function/Domain Selection: The model first identifies the relevant domain (e.g., "Hotel") from a concise list.
- Argument/Belief State Generation: Once selected, the model is prompted with the detailed specification of only that function to generate specific slot-value pairs in JSON format.
This approach integrates the function call directly into the assistant's output stream, allowing for a unified dialogue prompt that handles both tracking and response generation.
Experimental Results
The framework was evaluated on the MultiWOZ 2.1 benchmark. The results demonstrate that FnCTOD significantly advances the state-of-the-art in zero-shot DST across various model scales.
- Proprietary Models: FnCTOD with GPT-4 achieved a new SOTA with an average Joint Goal Accuracy (JGA) of 62.59%, representing a 14% relative improvement over previous prompting methods.
- Open-Source Success: Modestly sized models showed remarkable gains. The Zephyr-7B-Beta model reached 57.68% JGA, surpassing previous SOTA results held by ChatGPT-based methods (56.44%).
- Fine-tuning Generalization: By fine-tuning a LLaMA2-13B model on a small, diverse collection of dialogues (excluding the test set), the authors achieved 59.54% JGA, effectively matching the performance of proprietary ChatGPT models.
Conclusion
FnCTOD demonstrates that task framing is as critical as model scale for complex reasoning tasks like DST. By leveraging function calling, even 7B and 13B parameter open-source models can compete with or exceed the performance of much larger proprietary systems in zero-shot settings. Future work will explore more complex multi-step tool-use scenarios and integration with broader agentic frameworks.
Summary updated