BAG: Bi-directional Attention Entity Graph Convolutional Network for Multi-hop Reasoning Question Answering

Yu Cao, Meng Fang, Dacheng Tao

Abstract

The BAG model (Bi-directional Attention Entity Graph Convolutional Network) addresses the challenge of multi-hop question answering by transforming disparate documents into a unified entity graph. By integrating Relational Graph Convolutional Networks (R-GCNs) with a novel bi-directional attention mechanism between the query and the graph, BAG effectively bridges information gaps across document boundaries. The model achieves state-of-the-art performance on the WIKIHOP dataset, demonstrating the power of query-aware graph representations.

Introduction

Standard Question Answering (QA) models typically excel at "single-hop" reasoning, where the answer is contained within a single paragraph. However, complex queries often require "multi-hop" reasoning—the ability to connect information across multiple documents. For example, answering a question about a person's nationality might require linking one document about their birthplace to another document identifying that city's country. Existing sequence-based models like BiDAF often fail to bridge these gaps. The BAG model overcomes this by explicitly modeling entity relationships through a graph-based architecture.

Methodology

The five-module architecture of the BAG model, illustrating the flow from document input to final prediction.

The BAG architecture is composed of five specialized modules designed to facilitate cross-document reasoning:

  1. Entity Graph Construction: The model identifies candidate entities across all supporting documents and builds a graph. Nodes represent entities, while edges represent two relationship types: within-document (entities in the same text segment) and cross-document (the same entity appearing in different segments).
  2. Multi-level Feature Extraction: To capture semantic and linguistic nuances, the model utilizes word-level embeddings (GLoVe), contextual embeddings (ELMo), and linguistic tags (NER and POS).
  3. GCN Layer: The graph is processed through a Relational Graph Convolutional Network (R-GCN). This layer learns "relation-aware" node representations by passing information along edges. A gating mechanism is included to filter noise and prevent over-smoothing.
  4. Bi-directional Attention Layer: This core innovation applies attention between the query and the graph nodes. By calculating both node-to-query and query-to-node attention, the model ensures that the final node representations are highly relevant to the specific question.
  5. Output Layer: A 2-layer feed-forward network predicts the probability of each node being the correct answer.

Experimental Results

The model was evaluated on the WIKIHOP dataset, which is specifically designed to test multi-step reasoning. The authors tested both the "unmasked" (original text) and "masked" (entities replaced with generic tokens) versions to ensure the model's reasoning capabilities were not dependent on prior knowledge.

Performance comparison of BAG against baseline and state-of-the-art models on the WIKIHOP dataset.

As shown in the results, BAG achieved state-of-the-art performance at the time of publication:

  • Unmasked Test Accuracy: 69.0%, significantly outperforming baselines like BiDAF (42.9%) and the previous best model, Entity-GCN (67.6%).
  • Masked Test Accuracy: 68.9%, demonstrating robustness even when literal entity names are hidden.

Ablation studies further revealed that the bi-directional attention mechanism is a critical driver of performance, with its removal resulting in a 3.4% drop in accuracy. Additionally, the inclusion of ELMo contextual embeddings proved vital; removing them caused the most significant performance decline (from 66.5% to 60.5% on the dev set).

Key Insights and Conclusion

BAG demonstrates that graph-based structures are superior to simple sequences for multi-hop reasoning because they bypass the "long-distance" dependency problems inherent in standard RNNs. The integration of bi-directional attention ensures that graph nodes are "query-aware," which is essential for selecting the correct answer among many candidates.

While highly effective, the model currently depends on pre-defined entity mentions and simple edge types. Future work may involve incorporating more complex semantic relations and improving the scalability of the graph construction process for open-domain question answering.

Summary updated

BibTeX
@inproceedings{cao2019bag,
  author = {Yu Cao and Meng Fang and Dacheng Tao},
  title = {{BAG: Bi-directional Attention Entity Graph Convolutional Network for Multi-hop Reasoning Question Answering}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  url = {https://openreview.net/forum?id=B1VmkXbu-S},
}
Figure