Abstract
Joint entity and relation extraction is a critical task in information extraction, yet it faces significant challenges from overlapping triplets and semantic fluidity. This paper proposes a novel joint model that treats attention as the relation itself. By employing a supervised multi-head self-attention mechanism where each head corresponds to a specific relation type, the model effectively identifies overlapping triplets and captures distinct semantic nuances. Evaluated on the NYT and WebNLG benchmarks, the approach achieves state-of-the-art performance, demonstrating significant improvements in handling complex relational structures.
Introduction
In Information Extraction (IE), the goal of joint entity and relation extraction is to simultaneously identify entities and the semantic links between them. For instance, in the sentence "In Cambodia, local cargo boats travel between the capital, Phnom Penh...", a model should identify "Cambodia" and "Phnom Penh" as entities and "capital" as the relation.
However, real-world text often contains overlapping triplets, which present three main hurdles for traditional models:
- Overlapping Triplets: Entities can participate in multiple relations. This includes SingleEntityOverlap (SEO), where one entity is shared by multiple triplets, and EntityPairOverlap (EPO), where a pair of entities shares multiple relationship types.
- Semantic Fluidity: Different relations require different semantic features. A "location" relation and an "administrative" relation between the same entities might rely on different contextual cues.
- Mutual Exclusivity: Standard multi-class classifiers often treat relations as mutually exclusive, which is not the case in reality.
Proposed Method
The authors introduce a joint model architecture comprising three primary modules designed to address these challenges.
Architecture Overview
The model processes input tokens through three layers:
- Encoding Layer: A Bidirectional LSTM (Bi-LSTM) generates contextualized representations by integrating word embeddings and character-level features.
- Entity Extraction Module: This module uses a Conditional Random Field (CRF) for sequence labeling (BIO tagging), ensuring accurate entity boundary detection.
- Relation Detection Module: The core innovation is the use of Supervised Multi-head Self-Attention (MHSA).
Supervised Multi-head Self-Attention
Instead of a traditional classifier, the model assigns each of the $M$ possible relation types its own attention head. Each head learns a specific subspace to calculate a "correlation intensity" matrix.
Crucially, this attention is supervised. Unlike standard self-attention learned implicitly, this module is explicitly trained using binary cross-entropy loss to align attention weights with ground-truth relations. This allows the model to treat relation detection as a multi-label problem, naturally handling overlapping cases where an entity pair might have multiple valid relations simultaneously.
Experimental Results
The model was evaluated on two major benchmarks: NYT (New York Times, 24 relations) and WebNLG (246 relations).
Performance Highlights
- State-of-the-Art Results: On the NYT dataset, the model achieved an F1-score of 83.0%, a 1.3% improvement over the previous best (WDec). On WebNLG, it reached 87.7% F1, a massive 14.2% jump over the AntNRE baseline.
- Robustness to Overlap: Ablation studies confirmed that the multi-head subspace approach significantly outperforms standard multi-class classifiers in EPO scenarios.
- Entity Recognition: The model also improved entity extraction performance (94.8% on NYT), suggesting that the joint learning of relations provides beneficial feedback for identifying entity boundaries.
Conclusion and Future Work
By viewing attention as a direct proxy for correlation, this model effectively breaks the assumption of mutual exclusivity in relation extraction. While highly effective, the model's performance is sensitive to the manually tuned inference threshold. Future work may focus on automating threshold selection, improving computational efficiency for thousands of relation types, and more explicitly encoding subject-object directionality within the attention mechanism.
Summary updated