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

Towards Better Document-level Relation Extraction via Iterative Inference

Liang Zhang, Jinsong Su, Yidong Chen, Zhongjian Miao, Zijun Min, Qingguo Hu, Xiaodong Shi

Abstract

Document-level Relation Extraction (RE) requires identifying relationships between entities across multiple sentences, often necessitating logical reasoning. Traditional models typically predict all relations in a single pass, ignoring the inherent dependencies between "easy" explicit relations and "hard" implicit ones. This paper proposes a novel iterative inference framework that refines difficult predictions using established facts. By combining a base module for initial predictions with an iterative inference module and a specialized contrastive learning strategy, the model achieves state-of-the-art performance on DocRED, CDR, and GDA benchmarks.

Introduction: The Challenge of Relational Inference

Relation Extraction (RE) is fundamental to knowledge graph construction and information retrieval. While sentence-level RE is well-understood, document-level RE presents a significant challenge: many facts are not explicitly stated in a single sentence but must be inferred from multiple pieces of information scattered throughout a text.

Figure 2: An example of document-level RE where "easy" relations (e.g., parentage and birth location) provide the necessary context to infer "hard" relations like citizenship.

Current document-level RE models often treat all entity pairs independently or predict them simultaneously. This "one-pass" approach fails to leverage the logical structure of human reasoning. For instance, if a document establishes that "Entity A is the father of Entity B" and "Entity A is Austrian," a model should find it easier to deduce that "Entity B" might also have Austrian citizenship. Existing models struggle to exploit these dependencies between overlapping entity pairs.

Methodology: Iterative Inference

To address these limitations, the authors introduce an architecture designed for "easy-to-hard" reasoning, consisting of two primary components:

1. Base Module

The Base Module (built on the ATLOP architecture) processes the input document using a BERT-based encoder. It generates two key outputs: a feature matrix ($F_0$) containing contextual embeddings and a relation matrix ($R_0^{(0)}$) representing initial, potentially noisy, relation predictions for all entity pairs.

2. Inference Module

The core of the proposal is the Inference Module, which iteratively refines the relation matrix. Instead of a single prediction, the model performs $K$ iterations (typically 3), using the previous iteration's results to inform the next.

Figure 4: The overall architecture showing the iterative loop between the Base Module and the Inference Module.

Two technical innovations drive this module:

  • Extended Cross Attention (ECA): Standard attention mechanisms can be computationally expensive and noisy. ECA restricts the model's focus to "overlapping entity pairs"—those that share at least one entity. This allows the model to logically chain facts together.
  • Contrastive Learning Strategy: Initial predictions are often unreliable. To prevent the model from ignoring the relation matrix in favor of the more stable feature matrix, the authors employ a SimSiam-inspired contrastive loss. By injecting noise into the relation matrix and forcing the model to maintain consistent representations, they ensure the inference module actively utilizes the predicted relational data.

Experimental Results

The model was evaluated on three major benchmarks: DocRED (general domain), CDR (chemical-disease), and GDA (gene-disease).

  • DocRED: The model achieved a 62.74 F1 score with BERT-base and 64.58 F1 with RoBERTa-large, significantly outperforming the ATLOP baseline.
  • Biomedical Performance: On CDR and GDA, the model saw absolute F1 improvements of 3.8 and 2.0 points, respectively.
  • Reasoning Capability: Most notably, on the "Infer-F1" metric of DocRED—which specifically measures performance on relations requiring multi-sentence reasoning—the model scored 48.75, beating the previous state-of-the-art by 1.86 points.

Conclusion and Future Directions

This research demonstrates that modeling dependencies between entity pairs is more effective for document-level RE than modeling dependencies between individual entities. By treating relation extraction as an iterative, "easy-to-hard" process, the model mimics human-like logical deduction. While the model requires document-level labels and is less suited for simple sentence-level tasks, its success suggests that iterative inference is a powerful paradigm for complex NLP tasks involving cross-sentence reasoning, such as collective event detection.

Summary updated

BibTeX
@inproceedings{zhang2022towards,
  author = {Liang Zhang and Jinsong Su and Yidong Chen and Zhongjian Miao and Zijun Min and Qingguo Hu and Xiaodong Shi},
  title = {{Towards Better Document-level Relation Extraction via Iterative Inference}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.568},
}
Figure