Document Modeling with Graph Attention Networks for Multi-grained Machine Reading Comprehension

Bo Zheng, Haoyang Wen, Yaobo Liang, Nan Duan, Wanxiang Che, Daxin Jiang, Ming Zhou, Ting Liu

Introduction

Traditional Machine Reading Comprehension (MRC) benchmarks, such as SQuAD, typically focus on extracting a single short span from a text. However, real-world information seeking often requires a more nuanced approach. The Natural Questions (NQ) dataset highlights this by requiring two distinct types of answers: a long answer (a paragraph providing full context) and a short answer (the specific entity or fact). This paper introduces a multi-grained framework that models documents as hierarchical graphs, utilizing Graph Attention Networks (GATs) alongside BERT to capture the dependencies between these answer types.

The Multi-grained Challenge

Most existing models treat long and short answer extraction as independent sub-tasks. This "siloed" approach ignores the inherent hierarchical structure of documents (tokens $\rightarrow$ sentences $\rightarrow$ paragraphs $\rightarrow$ documents) and the mutual evidence provided by different granularities. For instance, the presence of a short answer is strong evidence for a long answer, and the broader context of a long answer helps verify the specific short answer span.

Proposed Methodology

The authors propose a model that integrates BERT with Graph Attention Networks to capture document structure across four levels of granularity.

Overview of the multi-grained MRC framework showing the integration of BERT and Graph Encoders for joint answer selection.

Hierarchical Graph Construction

The model constructs a graph where nodes represent tokens, sentences, paragraphs, and document fragments. Edges are defined by the document's natural hierarchy. Information flow is managed by Graph Attention Encoders, which include:

  • Self-Attention Layers: Facilitating interaction between nodes at the same level.
  • Graph Integration Layers: Allowing information to flow across different granularities, such as a paragraph node aggregating evidence from its constituent tokens.
  • Relational Embeddings: Learnable embeddings that encode structural relationships and relative distances between nodes.

Joint Training

The model is optimized using a multi-task loss function that simultaneously targets the start/end positions of short answers and the selection of the correct long answer candidate. This joint training allows the tasks to provide mutual reinforcement.

Experimental Results

The primary evaluation was conducted on the Natural Questions dataset, which uses real, anonymized Google Search queries and requires models to handle long Wikipedia documents and "no-answer" cases.

Performance comparison of the proposed model against baselines and human performance on the Natural Questions dataset.

As shown in the results table, the proposed model (BERT-syn + Model-III) achieved state-of-the-art performance at the time of publication. Key highlights include:

  • State-of-the-Art Accuracy: Achieving a 74.5% Long Answer F1 and 58.7% Short Answer F1 on the test set, significantly outperforming the BERT-joint baseline.
  • Surpassing Human Performance: On the development set, the model's F1 scores (72.7% Long / 56.9% Short) surpassed single human performance (73.4% / 57.5% respectively), though it still trails the "super-annotator" ensemble.
  • Ablation Insights: Removing the graph module led to a 5.0% drop in Long Answer F1, confirming that explicit structural modeling is critical for paragraph-level selection.

Discussion and Future Work

While the model demonstrates the power of hierarchical modeling, it still faces challenges with document length due to BERT's 512-token limit, requiring documents to be split into fragments. Future work may involve incorporating document-level structure directly into the pre-training phase and exploring ways to increase model diversity to better match the interpretive range of human annotators.

Summary updated

BibTeX
@inproceedings{zheng2020document,
  author = {Bo Zheng and Haoyang Wen and Yaobo Liang and Nan Duan and Wanxiang Che and Daxin Jiang and Ming Zhou and Ting Liu},
  title = {{Document Modeling with Graph Attention Networks for Multi-grained Machine Reading Comprehension}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.599},
}
Figure