Multi-Level Memory for Task Oriented Dialogs

Revanth Reddy, Danish Contractor, Dinesh Raghu, Sachindra Joshi

Abstract: This paper introduces a novel multi-level memory architecture for task-oriented dialog systems that moves away from the "flat" memory structures used in previous models. By separating conversation history from knowledge base (KB) results and organizing the KB memory into a hierarchy (Queries → Results → Attributes), the authors achieved a 15–25% improvement in both BLEU and Entity F1 scores over previous state-of-the-art models.

Introduction

Building a bot capable of assisting with tasks like booking flights or finding restaurants requires two distinct capabilities: understanding the conversation context and retrieving information from a knowledge base (KB).

Existing end-to-end models typically treat these two sources as a single "flat" bucket of data, often representing KB information as simple triples (e.g., [Regal Resort, Price, $2800]). This approach suffers from three major flaws:

  1. Memory Explosion: Mixing conversation history with every database entry creates a massive search space.
  2. Loss of Structure: Databases naturally link attributes in rows. Breaking these into independent triples forces the model to "re-learn" that a price, rating, and address belong to the same entity.
  3. Context Confusion: A single memory reader struggles to distinguish between user utterances and specific database entities.

Proposed Architecture

The authors propose the Multi-Level Memory Network, which introduces structural changes to how information is stored and accessed during decoding.

Figure 5: The full architecture of the Multi-Level Memory Network, featuring the Hierarchical Encoder, Sequence Decoder, and the specialized Multi-Level Memory block.

Memory Separation

Instead of a unified memory, the model utilizes two distinct components:

  • Context Memory: Stores the hidden states of the conversation history.
  • KB Memory: Stores the results returned from external database queries.

Hierarchical KB Representation

To preserve the inherent structure of database records, the KB memory is organized into three levels:

  • Level 1 (Queries): The model first attends to the relevant query (e.g., "hotels in Mannheim").
  • Level 2 (Results): Within that query, it identifies the specific result or "row" (e.g., a specific hotel).
  • Level 3 (Key-Value Pairs): Finally, it retrieves specific attributes (e.g., Price or Rating) to include in the response.
Figure 6: Detailed view of the Hierarchical KB Representation, showing how data is organized into Queries, Results, and Key-Value pairs.

Gating Mechanism

The decoder generates responses using two "soft gates":

  • Gate 1 ($g_1$): Determines whether to generate a word from the standard vocabulary or copy a value from memory.
  • Gate 2 ($g_2$): If copying, this gate decides whether to pull from the Context Memory or the KB Memory.

Evaluation

The model was evaluated on three multi-turn task-oriented datasets: InCar Assistant (navigation/scheduling), CamRest676 (restaurant reservations), and Maluuba Frames (complex travel booking). Maluuba Frames is particularly challenging as it involves non-sequential references where users change their minds and refer back to previous queries.

Key Results

The Multi-Level Memory (MM) model significantly outperformed baselines like Mem2Seq and KVRet:

  • Entity F1 Score: On the Maluuba Frames dataset, the model achieved an Entity F1 of 39.7, a ~39% relative improvement over Mem2Seq (28.5).
  • BLEU Score: The model established a new state-of-the-art across all evaluated datasets.
  • Human Evaluation: In blind studies, humans preferred the MM model's outputs for both informational accuracy and language quality.

Discussion and Insights

The authors identify the "Triple Tax" as a major hurdle for previous models; forcing hierarchical data into subject-relation-object triples makes reasoning unnecessarily difficult. By maintaining the "row" structure, the MM model naturally understands attribute links. Furthermore, by storing all previous queries, the model can effectively handle non-sequential dialog by "jumping back" to earlier search results.

Future work aims to address current limitations, such as improving intent capture (responsible for 13% of errors) and better modeling of "latent dialog frames" to track conversation states more accurately.

Summary updated

BibTeX
@inproceedings{reddy2019multi,
  author = {Revanth Reddy and Danish Contractor and Dinesh Raghu and Sachindra Joshi},
  title = {{Multi-Level Memory for Task Oriented Dialogs}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  url = {https://openreview.net/forum?id=r1bYUmb_bS},
}
Figure