Q-TOD: A Query-driven Task-oriented Dialogue System

Xin Tian, Yingzhan Lin, Mengfei Song, Siqi Bao, Fan Wang, Huang He, Shuqi Sun, Hua Wu

Abstract

Existing pipelined task-oriented dialogue systems usually have difficulties adapting to unseen domains, whereas end-to-end systems are plagued by large-scale knowledge bases in practice. In this paper, we introduce a novel query-driven task-oriented dialogue system, namely Q-TOD. The essential information from the dialogue context is extracted into a query, which is further employed to retrieve relevant knowledge records for response generation. Firstly, as the query is in the form of natural language and not confined to the schema of the knowledge base, the issue of domain adaption is alleviated remarkably in Q-TOD. Secondly, as the query enables the decoupling of knowledge retrieval from the generation, Q-TOD gets rid of the issue of knowledge base scalability. To evaluate the effectiveness of the proposed Q-TOD, we collect query annotations for three publicly available task-oriented dialogue datasets. Comprehensive experiments verify that Q-TOD outperforms strong baselines and establishes a new state-of-the-art performance on these datasets.

Introduction

Task-oriented dialogue (TOD) systems—the technology behind virtual assistants that book tables or check calendars—face a significant "Goldilocks" problem regarding external knowledge bases (KBs). Pipelined systems are often too rigid, relying on pre-defined schemas (fixed slots like price_range or location) that fail when moving to new domains. Conversely, end-to-end (E2E) systems struggle with scalability; they often attempt to feed entire databases into a model's context window, which is impossible for real-world databases containing millions of records.

Q-TOD addresses these challenges by using natural language queries to bridge the gap between rigid pipelines and unscalable end-to-end models.

Methods: The Q-TOD Architecture

The authors propose a three-stage, query-driven architecture that decouples the database size from the language model's processing limits.

The Q-TOD architecture: Dialogue context is transformed into a natural language query to retrieve relevant knowledge records before generating a final response.
  1. Query Generator: Instead of filling slots in a table, the system uses a Transformer (T5) to summarize the dialogue history into a simple, unstructured natural language query (e.g., "find an entertainment attraction in the east part of town").
  2. Knowledge Retriever: This query is passed to an off-the-shelf retriever. Because the query is natural language, the retriever can search a massive database and return only the most relevant records (usually the top 3).
  3. Response Generator: The model takes the dialogue context plus the few retrieved records to craft a final, natural response.

The Query and Response generators are trained jointly using a shared T5 model, allowing the system to learn exactly what information is essential for retrieval.

Experimental Setup

The study evaluates Q-TOD on three gold-standard TOD benchmarks: SMD (Stanford Multi-Domain), CamRest, and MultiWOZ-2.1. Since these datasets did not originally include query labels, the authors collected and released new query annotations for all three, providing a new resource for the research community.

Key Results and Insights

Q-TOD established a new state-of-the-art (SOTA) across all three datasets. On the SMD dataset, it improved the Entity F1 score (a measure of how accurately it provides specific information) by 5.56% over strong baselines like UnifiedSKG.

Massive Scalability

A primary advantage of Q-TOD is its robustness to database size. In stress tests, the authors expanded the database size by 128x. While baseline models saw their performance plummet as the KB grew, Q-TOD’s performance remained remarkably stable.

Performance stability of Q-TOD compared to baselines as the Knowledge Base size increases.

As shown in the figure above, Q-TOD lost only ~3% accuracy even with a massive KB expansion, whereas models like UnifiedSKG experienced a sharp decline. Additionally, Q-TOD demonstrated high few-shot efficiency, achieving performance comparable to previous SOTA models using just 5% of the training data.

Conclusion and Future Work

By using natural language as an internal API, Q-TOD becomes domain-agnostic and highly scalable. It effectively filters noise from dialogue history, stripping away outdated user requests to ensure the retriever stays focused. Future work will address inference latency caused by the sequential pipeline and mitigate "knowledge hallucination," where the model occasionally generates information not present in the retrieved data.

Summary updated

BibTeX
@inproceedings{tian2022q,
  author = {Xin Tian and Yingzhan Lin and Mengfei Song and Siqi Bao and Fan Wang and Huang He and Shuqi Sun and Hua Wu},
  title = {{Q-TOD: A Query-driven Task-oriented Dialogue System}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  url = {https://openreview.net/forum?id=QGBeKLj718},
}
Figure