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

A Hierarchical Entity Graph Convolutional Network for Relation Extraction across Documents

Tapas Nayak, Hwee Tou Ng

Introduction

Relation extraction (RE) is a fundamental task in natural language processing, aimed at identifying semantic relationships between entities in text. Traditionally, RE models have relied on distant supervision—automatically aligning knowledge base facts with text—under the strict assumption that both entities must reside within the same sentence. However, this constraint ignores a vast amount of relational information implicitly stated across multiple sentences or entirely different documents.

This paper addresses the challenge of extracting relations when subject and object entities are located in separate documents, connected only by a chain of intermediate, common entities. To solve this, the authors introduce a novel Hierarchical Entity Graph Convolutional Network (HEGCN) and a new benchmark dataset for multi-hop relation extraction.

The HEGCN Architecture

The proposed HEGCN model processes text through a two-level hierarchy designed to capture both local word-level context and global entity-level relationships across document boundaries.

The architecture of the HEGCN, showing the flow from document encoding to classification.

As illustrated in the architecture above, the process follows four primary stages:

  1. Document Encoding: Documents are concatenated and processed via a BiLSTM to capture sequential, word-level context.
  2. Level 1 - Entity Mention Graph (EMGCN): For each document, a graph is constructed where nodes represent specific entity mentions. Edges are established based on co-occurrence in the same sentence, string identity, or adjacency. A Graph Convolutional Network (GCN) then updates these nodes to capture intra-document relationships.
  3. Level 2 - Unified Entity Graph (EGCN): This level builds a global graph across the document chain. Mention nodes for the same entity across different documents are merged into a single "common entity" node, creating a bridge for information flow.
  4. Classification: The final representations of the subject and object entities are passed through a feed-forward network with a softmax layer to predict the relation.

Bridging Documents with Unified Graphs

The core innovation of this approach lies in the creation of the Unified Entity Graph. By identifying entities that appear in multiple documents, the model can infer relationships between entities that never appear together. For instance, if Document A links Entity X to Entity Y, and Document B links Entity Y to Entity Z, the model uses Entity Y as a bridge to determine the relationship between X and Z.

Visualization of the Unified Entity Graph bridging mentions across different document contexts.

This hierarchical structure prevents information loss by preserving local syntactic context at the mention level before aggregating it into a global entity concept.

The THRED Benchmark

To evaluate this multi-hop capability, the authors developed the Two-Hop Relation Extraction Dataset (THRED). Derived from the WikiHop multi-hop Question Answering dataset, THRED contains 218 relations, making it significantly more diverse than standard datasets like NYT10 or DocRED. Unlike QA datasets, THRED includes a large volume of None relations, requiring the model to accurately identify when no valid relationship exists between candidate pairs—a more realistic and difficult task for relation extraction.

Key Results and Insights

The HEGCN model achieved an F1 score of 0.686 on THRED, significantly outperforming neural baselines such as standard BiLSTMs (0.675) and CNNs (0.628).

Ablation studies revealed several critical insights:

  • Graph Depth: Shallow networks performed best. Using exactly one convolutional layer in both the mention-level and entity-level GCNs yielded peak performance, while adding more layers led to performance degradation.
  • Edge Importance: Removing any specific edge type (e.g., "same sentence" edges) negatively impacted the F1 score, confirming that all graph connections contribute to the model's reasoning.
  • Task Difficulty: Multi-hop RE is inherently harder than multi-hop QA because the model must frequently predict the None class among a massive pool of candidate pairs, rather than simply finding a guaranteed answer.

Conclusion and Future Work

While the current study focuses on two-hop relations (chains of two documents), the HEGCN framework is theoretically extensible to N-hop extraction tasks involving longer document chains. Future work will focus on scaling this architecture to more complex document networks and addressing the noise inherent in distantly supervised datasets.

Summary updated

BibTeX
@inproceedings{nayak2021hierarchical,
  author = {Tapas Nayak and Hwee Tou Ng},
  title = {{A Hierarchical Entity Graph Convolutional Network for Relation Extraction across Documents}},
  booktitle = {RANLP},
  year = {2021},
}
Figure