Abstract
Generating accurate responses in task-oriented dialogue systems requires balancing dynamic conversation history with static external knowledge. This paper introduces Heterogeneous Memory Networks (HMNs), which treat these two information sources as distinct data types. By employing a gated context-aware memory for dialogue flow and a context-free memory for knowledge base facts, the proposed model achieves state-of-the-art performance across multiple benchmarks.
Introduction
Building effective task-oriented chatbots involves a complex interplay between two types of information: sequential dialogue history and structured external knowledge. Dialogue history is context-dependent and temporal, whereas knowledge base (KB) entries are independent, static facts. Existing models often utilize uniform memory structures that fail to distinguish between these types, leading to suboptimal representations and factual errors in generated text.
Methodology: Heterogeneous Memory Networks
The HMN architecture addresses the heterogeneity of dialogue data by splitting the memory into two specialized components:
Context-Aware Memory
The context-aware memory stores the dialogue history. It utilizes a gating mechanism to capture the sequential dependencies between turns, allowing the model to filter irrelevant past information and focus on the current user intent.
Context-Free Memory
The context-free memory stores KB tuples as independent facts. Because these facts do not change based on the conversation flow, they are stored in a non-sequential memory structure.
Stacked Querying and Decoding
A "stacked querying" approach is used to bridge these memories. The model first queries the context-aware memory to obtain a conversation summary, which then serves as the query for the context-free memory. This two-hop reasoning process ensures that KB retrieval is grounded in the current dialogue context. A hybrid decoder then generates the final response by selecting tokens from the global vocabulary, the dialogue history, or the KB.
Experimental Results
The HMN model was evaluated on the Key-Value Retrieval, bAbI Dialog, and DSTC 2 datasets.
- Key-Value Retrieval: HMN achieved a BLEU score of 14.46 and an Entity F1 of 43.1, significantly outperforming the Mem2Seq baseline (12.06 BLEU / 31.1 Entity F1).
- bAbI Tasks: In Out-of-Vocabulary (OOV) scenarios, HMN showed substantial improvements, reaching 84.1% accuracy on Task 5-OOV compared to 71.4% for previous models.
- DSTC 2: The model reached an F1 score of 77.7, demonstrating robustness in restaurant search tasks.
Discussion and Conclusion
The results confirm that treating dialogue history and KB facts as heterogeneous data types leads to more accurate and contextually relevant response generation. The gated memory mechanism and stacked querying strategy effectively link user intent to factual retrieval. While the model faces challenges with extremely large knowledge bases due to attention dilution, it represents a significant advancement in knowledge-grounded dialogue systems.
Summary updated