Knowledge-based end-to-end memory networks

Jatin Ganhotra, Lazaros PolymenakosarXiv 2018

Abstract

End-to-end dialog systems have become very popular because they hold the promise of learning directly from human to human dialog interaction. Retrieval and Generative methods have been explored in this area with mixed results. A key element that is missing so far, is the incorporation of a-priori knowledge about the task at hand. This knowledge may exist in the form of structured or unstructured information. As a first step towards this direction, we present a novel approach, Knowledge based end-to-end memory networks (KB-memN2N), which allows special handling of named entities for goal-oriented dialog tasks. We present results on two datasets, DSTC6 challenge dataset and dialog bAbI tasks.

Introduction

While end-to-end dialog systems have shown success in open-ended "chit-chat" scenarios, they frequently struggle with goal-oriented tasks like restaurant bookings or flight inquiries. Standard memory networks (memN2N) often utilize a "bag-of-words" approach, which fails to distinguish between common linguistic tokens and critical task-specific entities (e.g., "London" vs. "the"). This lack of distinction makes it difficult for models to track state accurately and provide fact-based responses.

Methodology

The researchers developed Knowledge-based end-to-end memory networks (KB-memN2N) to address these limitations. The architecture introduces four primary modifications to the standard memory network framework:

  1. Entity-Type Tagging: Entities are tagged with their types (e.g., "LOCATION"), allowing the model to learn generic embeddings for specific information categories.
  2. Separate Entity Memory: The model maintains a dedicated memory for entities ($e_i$), distinct from the general dialog context ($m_i$).
  3. Dual-Attention Mechanism: The model performs two concurrent attention passes—one over the conversation "story" and another over available entities—to identify relevant information for the current turn.
  4. Dual-Attention over Candidates: During response selection, separate weight matrices are applied to candidate sentences and the entities within them, merging these scores for the final prediction.
Architecture of the KB-memN2N model showing separate memory for sentences and entities.

By decoupling entities from the sentence structure, the model more effectively retrieves specific data points (e.g., phone numbers) from a Knowledge Base (KB).

Experimental Evaluation

The KB-memN2N was evaluated on two benchmarks: the bAbI dialog tasks, which consist of five synthetic tasks testing core dialog capabilities, and the DSTC6 (Dialog System Technology Challenge 6), a more complex dataset involving restaurant reservations with natural language variation.

Key Results

The model demonstrated its greatest strengths on the more complex DSTC6 dataset, where it outperformed the standard memN2N in four out of five tasks. Notably, in Task 4 (Providing info), accuracy rose from 82.8% to 86.2%, and in Task 5 (Full dialogs), it improved from 90.1% to 93.5%.

Performance comparison on DSTC6 tasks between standard memN2N and the proposed KB-memN2N.

On the bAbI tasks, results were more competitive. While KB-memN2N performed similarly to the baseline, it did not always surpass specialized "match-type" methods. However, the authors note that match-type methods are often "shortcuts" limited to retrieval settings, whereas KB-memN2N is designed for broader applicability, including generative settings.

Conclusion

The core insight of this work is that entities and sentence structure serve distinct roles in goal-oriented dialog. Separating them prevents critical details from being lost in high-dimensional vector sums. While the model excels at handling known entities, it still faces challenges with Out-of-Vocabulary (OOV) terms. Future research will explore purely generative settings and evaluate the model's ability to generalize entity-type tagging to previously unseen names and locations.

Summary updated

BibTeX
@misc{ganhotra2018knowledge,
  author = {Jatin Ganhotra and Lazaros Polymenakos},
  title = {{Knowledge-based end-to-end memory networks}},
  year = {2018},
  eprint = {1804.08204},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.08204},
}
Figure