Question-Aware Memory Network for Multi-hop Question Answering in Human-Robot Interaction

Xinmeng Li, Mamoun Alazab, Qian Li, Keping Yu, Quanjun YinarXiv 2021

Abstract

Answering complex natural language questions over Knowledge Graphs (KGs) is a critical capability for intelligent human-robot interaction. Traditional models often struggle with multi-hop queries due to static question representations and a lack of contextual awareness in entity embeddings. This paper presents QA2MN (Question-Aware Memory Network), a novel architecture that dynamically shifts its attention across question tokens during multi-step reasoning. By integrating broader graph context into entity representations and employing a question-aware update mechanism, QA2MN achieves state-of-the-art performance on several benchmark datasets, demonstrating significant improvements in accuracy and robustness to incomplete knowledge bases.

Introduction

Knowledge Graph Question Answering (KBQA) has become a cornerstone of modern AI systems. While simple, single-hop questions are well-handled by existing techniques, "multi-hop" questions—which require traversing multiple edges in a KG—remain a significant challenge. For instance, answering "Which country does the club Messi plays for belong to?" requires identifying the club first and then finding the country associated with that club.

Example of a multi-hop question over a knowledge graph.

Current research identifies two primary limitations in existing KBQA models:

  1. Static Question Representation: Most models encode a question into a single fixed-length vector. In multi-hop scenarios, different words in the question become relevant at different stages of the reasoning process. A static vector fails to capture this temporal importance.
  2. Isolated Triplets: Standard KG embedding methods often treat facts as independent units, ignoring the "implicit context" provided by neighboring entities. Entities that share common neighbors often possess related semantic properties that can aid the reasoning process, especially when certain links are missing.

The QA2MN Framework

The proposed QA2MN framework addresses these gaps through a three-stage process: KG embedding with graph context, question encoding, and question-aware reasoning.

The architecture of the QA2MN framework, illustrating the flow from KG embedding to reasoning.

KG Embedding with Graph Context

Unlike traditional methods that only consider individual (head, relation, tail) triplets, QA2MN incorporates "head-related" and "tail-related" context. By examining all triplets sharing the same head or tail, the model enriches the representation of entities with their structural neighborhood. These contextual embeddings are used to initialize the memory network, providing a more holistic view of the knowledge base.

Question Encoding

The model utilizes a Bi-directional Gated Recurrent Unit (BiGRU) to process the input question. This allows the system to maintain a representation of individual token meanings while capturing the overall sequential dependencies of the natural language query.

Question-Aware Reasoning

The core innovation of QA2MN is its multi-hop reasoning mechanism based on a Key-Value Memory Network. During each reasoning "hop," the model addresses the memory (KG triplets) using the current query vector and reads relevant values.

Crucially, it then updates the query by re-attending to the original question tokens. This dynamic attention allows the model to "walk" through the question in tandem with its traversal of the knowledge graph. For example, in a complex query about a person's lineage, the model might focus on "mother" in the first hop, "father" in the second, and "religious belief" in the third. This ensures the model focuses on the most relevant keywords as the reasoning progresses.

Experimental Evaluation

The authors evaluated QA2MN on several representative datasets, including PathQuestion (PQ), PathQuestion-Large (PQL), and WorldCup2014 (WC). To test robustness, they also used PQ-50, a simulated "incomplete" KG setting where 50% of the triplets were randomly removed.

Key Results

QA2MN achieved state-of-the-art Hits@1 accuracy across all benchmarks. On the 3-hop PathQuestion dataset, it reached 91.4% accuracy, outperforming the previous best model (SRN) by 2.2%. On the WorldCup2014 dataset, it achieved 98.1% on 2-hop questions and 92.3% on complex conjunctive queries.

Ablation studies confirmed that the "Question-Aware" update mechanism is the primary driver of success. Removing this feature led to a significant performance drop (e.g., from 84.9% to 76.5% on PQL-3H). Furthermore, the model demonstrated remarkable robustness to incomplete KGs, largely due to its contextual embedding strategy.

Conclusion

QA2MN represents a significant step forward in multi-hop KBQA. By enabling dynamic focus on question components and leveraging graph-wide context, the model overcomes the limitations of static representations and isolated facts. Future work will focus on extending the model to handle complex logical operations and improving its ability to resolve co-references in sequential, conversational settings.

Summary updated

BibTeX
@misc{li2021question,
  author = {Xinmeng Li and Mamoun Alazab and Qian Li and Keping Yu and Quanjun Yin},
  title = {{Question-Aware Memory Network for Multi-hop Question Answering in Human-Robot Interaction}},
  year = {2021},
  eprint = {2104.13173},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.13173},
}
Figure