Multi-Grained Knowledge Retrieval for End-to-End Task-Oriented Dialog

Fanqi Wan, Weizhou Shen, Ke Yang, Xiaojun Quan, Wei Bi

Introduction

Task-oriented dialog (TOD) systems are designed to help users complete specific goals, such as booking a hotel or checking the weather. While end-to-end (E2E) models have simplified the development of these systems by removing the need for complex, manually annotated intermediate steps like Dialogue State Tracking, they face a significant bottleneck: Knowledge Retrieval.

Most current E2E-TOD systems "blend" retrieval and generation together. While this approach is functional for small, curated datasets, performance typically plummets when the system is required to search through large-scale, real-world knowledge bases (KB). Furthermore, because these datasets rarely contain "gold labels" indicating exactly which database entry a model should have accessed, training an accurate retriever relies on weak supervision from the final text response. To address these challenges, this paper introduces MAKER (Multi-grAined KnowlEdge Retriever).

The MAKER Framework

MAKER improves performance by decoupling knowledge retrieval from response generation through a two-step, multi-grained process. This allows the model to select both the relevant entities and the specific attributes needed for a response.

1. Entity Selection

Using a dual-encoder architecture, MAKER encodes the dialogue context and the KB entities into a shared vector space. It calculates similarity scores to identify the most relevant "rows" in the database. By employing Maximum Inner Product Search (MIPS), the system remains computationally efficient even when searching through thousands of entries.

2. Attribute Selection

Once the relevant entities are identified, the model filters out irrelevant "columns" or attributes. For instance, if a user asks for a restaurant's address, the Attribute Selector learns to mask out extraneous data like the phone number or price range. This fine-grained filtering significantly reduces the noise that the response generator must process.

Learning via Knowledge Distillation

A key innovation of MAKER is its use of a distillation objective to overcome the lack of retrieval labels. The system analyzes the cross-attention scores of the response generator during training. If the generator pays high attention to a specific entity while producing KB-related words (such as a specific name or phone number), the model treats that attention as a supervision signal. This "teacher" signal from the generator is used to train the retriever, allowing it to learn which information is truly relevant without manual annotations.

Experimental Evaluation

The researchers evaluated MAKER on three standard multi-turn TOD benchmarks:

  • MultiWOZ 2.1: The current gold standard for large-scale multi-domain TOD.
  • Stanford Multi-Domain (SMD): Focused on navigation, weather, and scheduling.
  • CamRest: A smaller dataset centered on restaurant reservations.

To prove scalability, the model was tested on both "Condensed" KBs (small, dialog-specific) and "Full" KBs (large-scale, cross-domain).

Key Results and Insights

  • State-of-the-Art Performance: MAKER (using a T5-Large backbone) achieved SOTA results on MultiWOZ 2.1 and SMD. On MultiWOZ, it outperformed the previous leading model, Q-TOD, by 1.15 BLEU points and 4.11 Entity F1 points.
  • Robustness to Scale: MAKER demonstrates remarkable stability as knowledge bases grow. In the "Full KB" setting on MultiWOZ, MAKER maintained an Entity F1 of 52.12, whereas baselines like DF-Net saw performance drop as low as 27.31.
  • The Value of Decoupling: By separating the task of finding data from the task of writing the response, MAKER avoids the confusion that occurs when a generator is overwhelmed by raw, unfiltered data.
  • Efficiency: The dual-encoder approach allows the system to handle large databases that would typically cause memory issues or slow down models attempting to concatenate the entire KB into the input prompt.

Limitations and Future Work

While MAKER represents a significant step forward, the authors note some areas for improvement. The current architecture is somewhat redundant, as it passes the dialogue context to the encoder multiple times for each retrieved entity. Additionally, on very small datasets like CamRest where there is little "searching" to do, the complex retrieval system offers diminishing returns compared to simpler models. Future research will focus on more efficient ways to integrate multi-grained knowledge without increasing the computational load on the response generator.

Conclusion

MAKER provides a robust solution for large-scale task-oriented dialog by treating retrieval as a distinct, multi-grained task. By leveraging the generator's own attention as a supervision signal, it bridges the gap between weak supervision and high-accuracy retrieval, setting a new standard for performance in the field.

Summary updated

BibTeX
@inproceedings{wan2023multi,
  author = {Fanqi Wan and Weizhou Shen and Ke Yang and Xiaojun Quan and Wei Bi},
  title = {{Multi-Grained Knowledge Retrieval for End-to-End Task-Oriented Dialog}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.627},
}
Figure