GraphDialog: Integrating Graph Knowledge into End-to-End Task-Oriented Dialogue Systems

Shiquan Yang, Rui Zhang, Sarah M. Erfani · DOI

TL;DR

This paper introduces GraphDialog, a novel end-to-end dialogue system that leverages graph structures from both dialogue history (dependency parsing) and external knowledge bases (KBs) to improve task-oriented dialogue. By employing a graph-aware recurrent cell and a multi-hop reasoning mechanism over KBs, GraphDialog achieves state-of-the-art performance on dialogue benchmarks.

What Problem Does This Paper Address?

Task-oriented dialogue systems, like those powering virtual assistants, aim to help users complete specific tasks (e.g., booking a restaurant). While end-to-end models have gained traction for their simplicity, they often struggle to effectively incorporate external knowledge bases (KBs). Traditional approaches often treat KBs as flat lists, missing crucial relational information. Furthermore, understanding the nuances of dialogue history, particularly the relationships between words, is challenging. This paper addresses these limitations by proposing a model that explicitly models graph structures in both dialogue history and KBs to enhance knowledge integration and semantic understanding.

Methods

The core of GraphDialog is its novel Graph Encoder. Instead of standard RNNs like LSTMs or GRUs, it uses a custom recurrent cell that can process graph-structured dialogue history. This cell takes multiple hidden states from predecessor words (based on dependency parsing) as input, allowing for richer representation learning. The model also incorporates a Knowledge Graph Module that represents KBs as graphs and employs a multi-hop reasoning mechanism with self-attention. This allows the model to traverse the KB graph multiple steps to retrieve relevant information, going beyond simple one-step lookups. The decoder then uses this enriched information to generate responses, either by copying entities from the KB or generating words from a vocabulary.

Datasets

The proposed model is evaluated on two widely-used task-oriented dialogue datasets:

  • SMD (Stanford Multi-domain Dialogue): A human-human dataset for in-car navigation tasks, covering domains like point-of-interest navigation, calendar scheduling, and weather.
  • MultiWOZ 2.1: A larger, more complex human-human dialogue corpus with seven task domains, including restaurant, hotel, attraction, and train. The authors selected four domains from MultiWOZ 2.1 that have KB information.

Key Insights and Ideas

  • Graph Structure is Key: Explicitly modeling the graph structure of dialogue history (via dependency parsing) and KBs significantly improves performance. This moves beyond treating text and knowledge as linear sequences.
  • Multi-hop Reasoning for KBs: Simple KB querying is insufficient. The multi-hop reasoning mechanism allows the model to explore relationships within the KB, leading to more accurate entity retrieval.
  • Graph-Aware Recurrent Cells: A custom recurrent cell architecture is crucial for effectively encoding the graph structure of dialogue history, capturing dependencies between words that might be distant in a linear sequence.
  • Bridging Dialogue and Knowledge: The model successfully integrates information from both the dialogue history's graph structure and the KB's graph structure, demonstrating a unified approach to knowledge-intensive dialogue.

Key Results

GraphDialog consistently outperforms existing state-of-the-art models on both SMD and MultiWOZ 2.1 datasets.

  • On the SMD dataset, it achieved the highest BLEU score of 13.6 and an entity F1 score of 57.4%.
  • On the MultiWOZ 2.1 dataset, it achieved a BLEU score of 6.17 and an entity F1 score of 11.28. The ablation studies show that both the graph encoder (for dialogue history) and the knowledge graph module contribute significantly to the performance gains. The model is also noted to be faster than BERT due to its smaller model complexity.

Limitations and Future Work

The authors acknowledge a few limitations:

  • Handling Multiple KB Entities: The model sometimes struggles when responses require multiple KB entities, and occasionally generates duplicate entities.
  • Model Complexity: While faster than BERT, the model is slower than some other baselines like GLMP, which is attributed to its more complex encoding.

Future work could explore:

  • Addressing the issues with multiple KB entities and duplicate generation.
  • Applying the model to open-domain chatbots, as the core mechanism of generating responses from inputs and external knowledge is transferable.

Summary updated

BibTeX
@inproceedings{yang2020graphdialog,
  author = {Shiquan Yang and Rui Zhang and Sarah M. Erfani},
  title = {{GraphDialog: Integrating Graph Knowledge into End-to-End Task-Oriented Dialogue Systems}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.147},
}
Figure