NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Double Graph Based Reasoning for Document-level Relation Extraction

Shuang Zeng, Runxin Xu, Baobao Chang, Lei Li

Introduction

Document-level Relation Extraction (RE) aims to identify semantic relationships between entities across multiple sentences within a document. Unlike sentence-level RE, which focuses on local context, document-level RE must address three primary challenges: inter-sentence relations, entity overlap (where one entity has multiple mentions), and the necessity for multi-hop logical reasoning. Statistics from the DocRED dataset indicate that over 40% of relations require cross-sentence extraction and 61% necessitate logical inference. To address these complexities, the Graph Aggregation-and-Inference Network (GAIN) introduces a "double graph" strategy to model interactions at both the mention and entity levels.

Methodology

The GAIN framework processes documents through a structured four-stage pipeline designed to capture both local context and global entity relationships.

  1. Encoding Module: Standard encoders like BiLSTM or BERT are utilized, enhanced with entity type and coreference features to provide a rich initial representation.
  2. Mention-level Graph (MG): This graph models interactions between specific mentions. Nodes represent individual mentions, connected by intra-entity edges (same entity), inter-entity edges (different entities in the same sentence), and a unique "Document Node." This pivot node connects to every mention, facilitating global information flow and reducing the effective distance between distant mentions.
  3. Entity-level Graph (EG): Following processing by Graph Convolutional Networks (GCNs), mention nodes are aggregated into consolidated entity nodes. This abstraction allows the model to reason about relationships at a higher semantic level.
  4. Path Reasoning Mechanism: To perform logical inference, GAIN explicitly models "two-hop" paths (e.g., Entity A → Entity C → Entity B). An attention mechanism identifies the most relevant paths for predicting the relationship between the target entity pair.
The GAIN architecture illustrating the transition from a Mention-level Graph to an Entity-level Graph and the subsequent path reasoning for classification.

Experimental Results

The model was evaluated on DocRED, a large-scale human-annotated dataset featuring over 5,000 Wikipedia documents and 96 relation types. GAIN achieved state-of-the-art performance, significantly outperforming previous baselines.

As shown in the performance table below, GAIN-BERT$_{large}$ achieved an F1 score of 62.76 on the test set, representing a 2.85-point improvement over prior leading models. Notably, in "Infer-F1" tests specifically targeting relations requiring logical reasoning, GAIN outperformed RoBERTa-based baselines by more than 5 points. Ablation studies confirmed that both the Mention-level Graph and the Path Reasoning module are critical to these gains; removing either component resulted in a sharp decline in performance.

Comparison of GAIN against various baseline models on the DocRED development and test sets. GAIN consistently achieves superior F1 and AUC scores.

Discussion and Conclusion

The success of GAIN highlights the importance of explicit reasoning structures in document-level RE. The "Document Node" acts as an efficient communication hub, while the path reasoning module mimics human-like evidence gathering across sentences. By first modeling mention-level interactions before aggregating to entities, GAIN preserves nuanced contextual information that is often lost in simpler models.

Despite its strengths, GAIN faces limitations regarding computational overhead due to the dual-graph structure and a dependency on accurate coreference resolution. Future work may explore extending the reasoning mechanism to multi-hop paths (3+ steps) more efficiently or integrating graph construction directly into the pre-training phase of large language models.

Summary updated

BibTeX
@inproceedings{zeng2020double,
  author = {Shuang Zeng and Runxin Xu and Baobao Chang and Lei Li},
  title = {{Double Graph Based Reasoning for Document-level Relation Extraction}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.127},
}
Figure