Abstract
Distant supervision (DS) has emerged as a powerful technique for scaling relation extraction (RE) by automatically labeling corpora using knowledge graphs. However, DS is plagued by noisy labels and a severe long-tail distribution of relations. We introduce the Hierarchical Relation-guided Type-Sentence Alignment (HiRAM) model, which mitigates these issues by intelligently aligning entity types with sentence semantics. By leveraging a hierarchical structure to facilitate knowledge transfer from common to rare relations, HiRAM achieves state-of-the-art performance on New York Times (NYT) benchmarks, demonstrating significant improvements in extracting long-tail relations.
Introduction
Relation Extraction (RE) aims to identify semantic relationships between entity pairs in text. To bypass the bottleneck of manual annotation, Distant Supervision (DS) aligns facts from Knowledge Graphs (KG) with raw text. Despite its efficiency, DS introduces two primary challenges:
- Wrong Labeling (Noise): Sentences containing an entity pair may not express the KG-defined relation (e.g., "Jobs ate an Apple" vs. FounderOf).
- The Long-Tail Problem: Real-world datasets are imbalanced; a few relations have abundant examples, while the majority have very few, making it difficult for models to generalize.
While hierarchical relation structures have been explored, coarse-grained categories are often too abstract to distinguish specific relations based on text alone. HiRAM addresses this by using entity types as factual anchors to constrain the relation space and borrowing features across the hierarchy to bolster rare relations.
Methodology
The HiRAM model incorporates entity type information at multiple levels of representation to robustly handle noise and data scarcity.
Context-Free Type-Enriched Embedding
Rather than relying solely on word embeddings, HiRAM injects entity type information (e.g., person, boxer) directly into word representations. This provides a "background" constraint on possible relations, helping the model ignore irrelevant sentence contexts that might lead to wrong labeling.
Pairwise Type Embedding
The model captures the structural prior of the KG by creating pairwise embeddings of subject and object types. Using a translational scheme inspired by TransE, it represents the relationship between types (e.g., Person $\rightarrow$ Company), which serves as a strong indicator for potential relations regardless of textual noise.
Hierarchical Type-Sentence Alignment
This core module uses a gating mechanism to dynamically select entity types most relevant to the sentence context. Crucially, this alignment occurs across multiple levels of the relation hierarchy. This allows the model to "borrow" features from data-rich coarse relations (e.g., /people) to improve the representation of data-poor fine-grained relations (e.g., /people/person/religion).
Key Results and Insights
HiRAM was evaluated on the NYT-520K and NYT-570K benchmarks, outperforming all previous baselines.
- Overall Performance: On the NYT-520K dataset, HiRAM achieved an Area Under Curve (AUC) of 0.484, a significant improvement over the previous state-of-the-art, InSRL (0.451).
- Long-Tail Mastery: The model's strength is most evident in long-tail scenarios. For relations with fewer than 100 training instances, HiRAM achieved a Hits@10 score of 72.2%, whereas many traditional models struggled to break 35%.
- Ablation Success: Removing the hierarchical module caused a 6% drop in AUC, proving that multi-granular alignment is essential for learning rare relations.
Conclusion
HiRAM effectively addresses the noise and long-tail challenges in distantly supervised RE by integrating hierarchical type-sentence alignment. While the model shows remarkable gains, future work will focus on improving specific relation types (like "Place of Birth") where sentence semantics are sparse, and exploring more sophisticated pooling methods for complex entity type sets.
Summary updated