Learning to Retrieve Entity-Aware Knowledge and Generate Responses with Copy Mechanism for Task-Oriented Dialogue Systems

Chao-Hong Tan, Xiaoyu Yang, Zi'ou Zheng, Tianda Li, Yufei Feng, Jia-Chen Gu, Quan Liu, Dan Liu, Zhen-Hua Ling, Xiaodan ZhuarXiv 2020

Abstract

Task-oriented dialogue systems often struggle when user queries require information from unstructured sources like FAQs or customer reviews. This paper presents a multi-stage pipeline designed for the DSTC 9 challenge that effectively detects knowledge-seeking turns, selects relevant snippets from large corpora, and generates factually grounded responses. By employing entity-aware retrieval and a copy mechanism, the proposed system significantly outperforms baselines in both objective metrics and human evaluations, ranking 2nd and 4th respectively in the competition.

Introduction

Modern virtual assistants typically rely on structured APIs and databases. However, many user requests—such as specific hotel policies or subjective restaurant reviews—are only available in unstructured text. Navigating this data requires solving three core subtasks: identifying when a query necessitates external knowledge (Detection), retrieving the correct information from thousands of potential snippets (Selection), and producing a natural response that accurately incorporates the retrieved facts (Generation).

Methods

The authors propose a modular architecture using specialized pre-trained language models (PLMs) for each stage of the pipeline.

Knowledge Detection and Selection

For detection, an ELECTRA classifier is enhanced with entity matching. If a user mentions a known entity, the domain label is appended to the input, providing a strong signal for the model. Selection is handled by an ensemble approach. A standard Retrieve & Rank model (RoBERTa-large) is combined with a novel Three-step Model that hierarchically filters the search space from domain to entity and finally to the specific document, drastically reducing retrieval complexity.

Knowledge-Grounded Generation

The generation component utilizes a latent variable model to account for the diverse ways a conversation can progress. A critical feature is the Knowledge Copy Mechanism, a pointer-generator gate that allows the model to directly extract facts from the knowledge snippet. This prevents "hallucinations" and ensures that details like opening hours or specific policies are accurately conveyed.

The proposed model architecture for knowledge-grounded response generation, featuring a latent variable model and a copy mechanism.

Datasets

The system was evaluated on the DSTC 9 Track 1 dataset, an extension of MultiWOZ 2.1. It includes over 71,000 dialogue turns, with approximately 19,000 requiring knowledge access. The knowledge base consists of over 2,900 snippets across various domains. The test set includes "unseen" domains to evaluate the model's zero-shot generalization capabilities.

Key Results and Insights

The proposed system demonstrated substantial improvements over the GPT-2 baseline across all subtasks. In knowledge detection, the model achieved a near-perfect F1-score of 0.998 on validation data. For selection, the ensemble approach reached a Recall@1 of 0.8975 on the test set, a significant jump from the baseline's 0.6201.

Performance comparison between the proposed model and the baseline across knowledge detection, selection, and generation tasks.

Generation quality also saw marked improvements, with the METEOR score rising from 0.2983 to 0.3931. Human evaluations further validated these results, with the model scoring 4.32/5 for appropriateness and accuracy, approaching the human ground-truth score of 4.52/5. Key insights include the effectiveness of hierarchical filtering for selection and the necessity of a copy mechanism for maintaining factual grounding.

Conclusion

While the system excels in seen domains, a performance gap remains for unseen data. Future research will focus on improving transfer learning techniques to allow these models to generalize more effectively to new topics and locales without requiring extensive domain-specific training data.

Summary updated

BibTeX
@misc{tan2020learning,
  author = {Chao-Hong Tan and Xiaoyu Yang and Zi'ou Zheng and Tianda Li and Yufei Feng and Jia-Chen Gu and Quan Liu and Dan Liu and Zhen-Hua Ling and Xiaodan Zhu},
  title = {{Learning to Retrieve Entity-Aware Knowledge and Generate Responses with Copy Mechanism for Task-Oriented Dialogue Systems}},
  year = {2020},
  eprint = {2012.11937},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.11937},
}
Figure