TransferNet: An Effective and Transparent Framework for Multi-hop Question Answering over Relation Graph

Jiaxin Shi, Shulin Cao, Lei Hou, Juanzi Li, Hanwang Zhang

Introduction

Multi-hop question answering (QA) represents the "detective work" of natural language processing. Answering a query like "What organization did the wife of Bill Gates found?" requires a model to perform sequential reasoning: first identifying the wife (Melinda Gates) and then locating the organization she founded (Bill & Melinda Gates Foundation).

Traditional approaches typically fall into two camps: path-based models, which struggle with massive search spaces, and Graph Neural Networks (GNNs), which often operate as "black boxes." Furthermore, most models are specialized for either structured Knowledge Graphs (KG) or unstructured text. TransferNet bridges these gaps by treating reasoning as a differentiable "transfer" of scores across a unified relation graph.

Methods: Reasoning as Differentiable Score Transfer

The core innovation of TransferNet is modeling the reasoning process through linear algebra, treating both KG labels and text snippets as edges in a unified graph.

The TransferNet architecture illustrating the step-by-step differentiable score transfer process across relations.
  • Entity Score Vector: The model maintains a vector where each element represents the probability of an entity being "activated." It begins with the topic entity (e.g., Bill Gates) having a score of 1.
  • Differentiable Hopping: At each step $t$, the model attends to the question to identify relevant relations, computing a relation score matrix $W_t$. The "hop" to the next set of entities is performed via matrix multiplication: $a_t = a_{t-1}W_t$.
  • Unified Relation Handling: For text, a relation encoder computes scores for sentences connecting entities. To maintain differentiability while preventing gradient explosion, a specialized truncation function is used.
  • Language Mask: A question-based mask is applied to the final scores to resolve ambiguities, such as distinguishing between a "place" and a "year" when both appear in similar contexts.

Datasets and Evaluation

TransferNet was evaluated on several prominent multi-hop QA benchmarks:

  • MetaQA: A movie domain dataset featuring 1, 2, and 3-hop questions in both Label (KG) and Text forms.
  • WebQSP: A Freebase-based dataset with 1 and 2-hop questions.
  • CompWebQ: An extension of WebQSP with more complex constraints and additional hops.

Key Results and Insights

TransferNet demonstrates exceptional performance and efficiency across benchmarks, effectively "solving" the MetaQA label form with 100% accuracy on 2-hop and 3-hop tasks.

Performance comparison showing TransferNet's superior data efficiency and convergence speed compared to SRN and EmbedKGQA.
  • State-of-the-Art Performance: On WebQSP and CompWebQ, it outperformed previous SOTA models like PullNet and EmbedKGQA (e.g., 71.4% vs 68.1% on WebQSP).
  • Data Efficiency: As shown in the results, TransferNet reaches near-optimal performance with only 10% of the training data, indicating it learns the underlying graph logic far more rapidly than competitors.
  • Transparency: Unlike GNNs, TransferNet is highly interpretable. One can visualize exactly which words were attended to, which relations were activated, and which intermediate entities were traversed at every step.
  • Text Reasoning: Accuracy on text-based graphs improved significantly, reaching 98.1% on 2-hop MetaQA text questions.

Limitations and Future Work

While powerful, TransferNet relies on the existence of a relation graph; it cannot "hallucinate" answers for missing entities. Future work aims to address scaling challenges for extremely dense text graphs and improve handling of complex constraints like temporal logic or numerical comparisons.

Summary updated

BibTeX
@inproceedings{shi2021transfernet,
  author = {Jiaxin Shi and Shulin Cao and Lei Hou and Juanzi Li and Hanwang Zhang},
  title = {{TransferNet: An Effective and Transparent Framework for Multi-hop Question Answering over Relation Graph}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.341},
}
Figure