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.
- Encoding Module: Standard encoders like BiLSTM or BERT are utilized, enhanced with entity type and coreference features to provide a rich initial representation.
- 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.
- 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.
- 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.
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.
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