Recurrent Interaction Network for Jointly Extracting Entities and Classifying Relations

Kai Sun, Richong Zhang, Samuel Mensah, Yongyi Mao, Xudong Liu

Introduction

Extracting structured knowledge from unstructured text is a fundamental challenge in Natural Language Processing. This process typically involves two sub-tasks: Entity Recognition (ER), which identifies the participants in a fact, and Relation Classification (RC), which determines the nature of the link between them. Historically, these tasks were handled via pipelines, which suffered from error propagation, or "flat" multi-task learning (MTL) architectures.

In flat MTL, a shared encoder provides features to independent task heads. However, the authors of this paper argue that these structures lack explicit communication between tasks. The entity head does not "know" what the relation head is predicting, making it difficult to resolve complex cases like overlapping relations—where a single entity is involved in multiple facts. To solve this, they propose the Recurrent Interaction Network (RIN), which treats ER and RC as a dynamic, reciprocal process.

Comparison of flat multi-task structures versus the proposed graph-based interaction structure.

The Recurrent Interaction Network (RIN) Architecture

The core innovation of RIN is its stacked architecture of $K$ interaction layers that allow for deep, explicit communication between the ER and RC modules.

The Recurrent Feedback Loop

Instead of a single forward pass, RIN refines its predictions over multiple iterations.

  1. Shared Base: The model begins with a standard BiLSTM to generate initial word-level representations ($H$).
  2. Interaction Layers: Each layer contains two specialized Gated Recurrent Units (GRUs): $GRU_e$ for entities and $GRU_r$ for relations.
  3. Mutual Constraints: Crucially, the input to the $k$-th layer's entity module includes the predictions from the previous layer's relation module ($Y_r^{(k-1)}$), and vice versa. This allows the model to use relational context to fix entity boundaries and entity context to narrow down potential relations.
  4. Feature Fusion: Shared features are updated at every layer ($H^k = H^k_r + H^k_e + H^{k-1}$), ensuring that the underlying representations become increasingly specialized for the joint task.
The complete RIN framework (a) alongside the detailed architectures of the Entity Recognition (ER) module (b) and the Relation Classification (RC) module (c).

Handling Overlapping Relations

A key technical choice in RIN is the use of Sigmoid activations for the relation module rather than the standard Softmax. Softmax assumes a mutually exclusive relationship (only one relation per pair), which fails in many real-world sentences. Sigmoid allows the model to independently predict the presence of multiple relations for any given entity pair, naturally handling the "overlapping" problem.

Datasets and Experimental Setup

The authors evaluated RIN on two major benchmarks for relational triple extraction:

  • NYT (New York Times): A massive dataset with 1.18M sentences and 24 predefined relation types, often used to test models under distant supervision.
  • WebNLG: A dataset with 171 relation types, known for its high density of multi-token entities and complex, overlapping relational structures.

The model was tested using both "Partial Match" and "Exact Match" criteria, with the latter requiring perfect identification of both entities and the relation type.

Results and Key Insights

RIN achieved new state-of-the-art (SOTA) performance on both datasets, demonstrating the power of recurrent interaction.

  • Performance: On the NYT dataset, RIN achieved an F1 score of 87.3% (Partial Match) and 84.7% (Exact Match). On WebNLG, it reached 87.3% (Partial) and 77.0% (Exact).
  • Ablation Study: To prove the value of the interaction mechanism, the authors tested a version of the model without the feedback loop ($RIN_{w/o \ interaction}$). This led to a dramatic drop in F1 scores—nearly 8-10 points on the Exact Match task—confirming that the "recurrent" part of the network is its most vital component.
  • Depth Matters: The study found that for complex "Exact Match" tasks, increasing the number of interaction layers ($K$) generally improved results, suggesting that deep interaction is necessary for high-precision extraction.

Conclusion

The Recurrent Interaction Network demonstrates that explicit, multi-layered communication between sub-tasks significantly outperforms implicit multi-task learning. By allowing the model to "re-read" and refine its understanding through a feedback loop, RIN effectively handles the complexities of overlapping relations. Future work may explore replacing the BiLSTM base with pre-trained transformers like BERT or applying this framework to other coupled NLP tasks such as slot filling in dialogue systems.

Summary updated

BibTeX
@inproceedings{sun2020recurrent,
  author = {Kai Sun and Richong Zhang and Samuel Mensah and Yongyi Mao and Xudong Liu},
  title = {{Recurrent Interaction Network for Jointly Extracting Entities and Classifying Relations}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.304},
}
Figure