TL;DR
Standard relation extraction (RE) models often rely on entity types rather than sentence context to predict relations. This paper introduces a hybrid strategy, $[H,T]+Mask$, which combines entity-based embeddings with prompt-based relational context. By leveraging dual pre-training on the Gigaword corpus, this approach achieves state-of-the-art results on major RE benchmarks and shows significant improvements in few-shot scenarios.
The Problem: Entity Bias vs. Context Blindness
Relation Extraction (RE) involves identifying the semantic relationship between two entities in a sentence. The dominant approach, the $[H,T]$ strategy, concatenates the embeddings of the head ($H$) and tail ($T$) entities. However, this method suffers from entity bias: models often learn to "guess" relations based solely on entity types (e.g., a Person and an Organization likely imply employed_by) while ignoring the actual context.
Conversely, newer prompt-based methods using a [MASK] token focus on the relational context but often fail to capture the critical type information provided by the entities themselves. This results in a trade-off between type-awareness and context-sensitivity.
The Hybrid Strategy: $[H,T]+Mask$
To address these limitations, the authors propose a hybrid encoding strategy that integrates both entity and context representations.
The framework consists of two main phases:
- Dual Pre-training: Using the Gigaword corpus, the model is trained with a contrastive InfoNCE loss. It simultaneously learns two distinct representations: one based on the entities ($[H,T]$) and another based on a
[MASK]token within a prompt (e.g., "The relation between [E1] and [E2] is [MASK]"). This is facilitated by coreference chains, assuming that different mentions of the same entity pair likely share the same relation. - Fine-tuning: During the final classification task, the model concatenates the $[H,T]$ and
[MASK]embeddings. This hybrid representation ensures the model utilizes both the "who" (entity types) and the "how" (relational context) to make predictions.
Experimental Setup
The model was evaluated on five diverse benchmarks:
- TACRED, TACREV, and Re-TACRED: Standard and cleaned versions of the large-scale TAC Relation Extraction Dataset.
- Wiki-WD: A dataset derived from Wikipedia and Wikidata alignments.
- NYT-FB: A distantly supervised dataset based on New York Times articles.
Key Results
The hybrid $[H,T]+Mask$ model consistently outperformed previous state-of-the-art (SOTA) models across all datasets.
Significant findings include:
- SOTA Performance: On TACRED, the model achieved 78.5% F1, surpassing previous baselines like LUKE (72.7%). On Re-TACRED, it reached 92.7% F1.
- Complementary Strengths: Analysis confirmed that $[H,T]$ acts as a powerful entity typer, while
[MASK]captures context. The hybrid approach effectively fills the blind spots of each individual strategy. - Few-Shot Robustness: The model showed dramatic improvements in low-data regimes. With only 1% of training data, the hybrid approach improved performance from 19.7% to 53.0% compared to standard methods.
Conclusion and Future Work
This research highlights that the choice of encoding strategy is crucial for robust Relation Extraction. By combining entity and context embeddings through dual pre-training, the proposed hybrid model mitigates entity bias and improves contextual understanding. While currently focused on supervised English-language tasks, future work may explore zero-shot transfer and the distillation of relational knowledge from larger LLMs into this efficient hybrid architecture.
Summary updated