Two-Phase Hypergraph Based Reasoning with Dynamic Relations for Multi-Hop KBQA

Jiale Han, Bo Cheng, Xu Wang

Introduction

Answering complex questions over Knowledge Bases (KBs) often requires "multi-hop" reasoning—the ability to connect multiple facts across a graph to reach an answer. For instance, answering "When did the films starred by John Houseman release?" requires identifying the movies he acted in and then retrieving their specific release dates. While Graph Convolutional Networks (GCNs) have been popular for this task, they suffer from two primary limitations: they are typically restricted to pairwise node connections, struggling with high-order relationships, and they often ignore the inherent directionality and dynamic nature of human reasoning paths.

To address these challenges, researchers have proposed a new framework utilizing Directed Hypergraph Convolutional Networks (DHGCN) and a Two-Phase Reasoning (2HR-DR) mechanism. This approach models relations as hyperedges and updates attention dynamically at each reasoning step, mimicking a human-like "hop-by-hop" process.

Methodology

Directed Hypergraph Convolutional Networks (DHGCN)

Traditional hypergraphs are often undirected, which is unsuitable for KBs where relations have a clear direction (e.g., Actor $\rightarrow$ Movie). The proposed DHGCN extends traditional hypergraphs by using two distinct incidence matrices: $H^{tail}$ (representing the source of a relation) and $H^{head}$ (representing the destination). This allows the model to explicitly capture the flow of information across the graph.

Comparison between a general graph (a), a standard hypergraph (b), and the proposed Directed HGCN (c).

Two-Phase Reasoning with Dynamic Relations (2HR-DR)

The reasoning process is structured into two distinct phases at each hop, integrated into an end-to-end architecture:

  1. Phase 1: Relation Representation Learning: The model aggregates features from connected entities to update the semantic representation of each relation within the current context.
  2. Phase 2: Entity State Update: Using a co-attention mechanism between the question and the updated relations, the model dynamically weights different relations. It then updates entity features based on these weights, effectively "walking" to the next set of candidate entities in the reasoning path.
The overall architecture of the 2HR-DR model, showing the flow from KB construction to multi-hop reasoning and final prediction.

Experimental Evaluation

The model was evaluated on two major benchmarks: PQL (Path Query Language) and MetaQA.

  • PQL Dataset: The 2HR-DR model achieved a Hits@1 of 0.755 on PQL-2H (a 3% improvement over previous state-of-the-art) and 0.921 on PQL-3H.
  • MetaQA Dataset: The model reached near-perfect accuracy on 1-hop questions (0.988 Hits@1) and significantly outperformed baselines on 2-hop questions with a Hits@1 of 0.937.

Ablation studies confirmed that both the directionality of the hypergraph and the dynamic weighting of relations are critical to these performance gains. Furthermore, because the model predicts relations at each step, it offers high interpretability by generating observable reasoning paths.

Conclusion

By leveraging directed hypergraphs and a dynamic two-phase reasoning mechanism, this model effectively captures high-order relational dependencies in KBs. While it currently relies on high-quality reasoning paths for training, its success suggests that directed hypergraph structures could be broadly applicable to other graph-based tasks like recommendation systems and document ranking.

Summary updated

BibTeX
@inproceedings{han2020two,
  author = {Jiale Han and Bo Cheng and Xu Wang},
  title = {{Two-Phase Hypergraph Based Reasoning with Dynamic Relations for Multi-Hop KBQA}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/500},
}
Figure