Introduction
Relation Extraction (RE) is a fundamental task in information extraction, aimed at identifying semantic relationships between entity pairs in text. To overcome the bottleneck of manual labeling, researchers often employ distant supervision, which automatically aligns Knowledge Graphs (KGs) with plain text. This method assumes that if a KG contains a triplet $(e_h, r, e_t)$, any sentence containing both the head entity $e_h$ and tail entity $e_t$ expresses the relation $r$.
While efficient, this assumption introduces significant noise, as many sentences mentioning an entity pair do not express the target relation. Traditional approaches use selective attention to denoise "bags" of sentences. However, these models struggle with the "single-sentence bag" problem: in datasets like the New York Times (NYT) corpus, approximately 80% of entity pairs appear in only one sentence. In these cases, selective attention is mathematically forced to assign a weight of 1.0 to the sentence, even if it is noisy, leading to poor model training and performance.
The SeG Framework
To address these limitations, this paper introduces SeG (Selective Gate), a novel framework that replaces traditional selective attention with a content-based gating mechanism and incorporates entity-aware embeddings.
1. Entity-Aware Embedding
Standard RE models typically rely on word and relative position embeddings. SeG enhances this by introducing a position-wise gating mechanism that dynamically integrates the specific embeddings of the head and tail entities into every word representation. This ensures the model maintains a focus on the entities of interest throughout the context processing phase.
2. Parallel Feature Extraction
Rather than stacking layers sequentially, SeG utilizes a parallel architecture to capture multi-scale features. It employs a Piecewise CNN (PCNN) to extract local dependencies and a Self-Attention mechanism to capture global, long-range dependencies simultaneously. The authors argue that this parallel approach produces more complementary representations than sequential stacking, allowing the model to better understand complex sentence structures.
3. Selective Gate Aggregator
The core innovation of SeG is the Selective Gate. Unlike selective attention, which calculates weights relative to other sentences in a bag, the Selective Gate uses a two-layer feed-forward network to produce an independent gating value for each sentence. This allows the model to effectively "shut down" or down-weight a noisy sentence even if it is the only sentence in the bag, providing a robust solution to the single-sentence bag problem.
Experimental Results
The model was evaluated on the standard New York Times (NYT) dataset, which contains 53 relations and over 700,000 sentences. The high proportion of one-sentence bags in this dataset makes it an ideal benchmark for testing the SeG framework's denoising capabilities.
Performance Gains
SeG achieved a new state-of-the-art performance on the NYT dataset:
- AUC (Area Under Curve): SeG reached an AUC of 0.51, a substantial improvement over the previous state-of-the-art of 0.42 held by PCNN+HATT and PCNN+BAG-ATT.
- Precision at N (P@N): In the critical "One-sentence bag" category, SeG achieved a mean precision of 89.3%, significantly outperforming the baseline PCNN+ATT (67.8%).
- Denoising Robustness: Case studies demonstrated that the Selective Gate correctly identifies noisy sentences as "NA" (no relation) that previous models, lacking the independent gate, would have misclassified.
Conclusion
The SeG framework demonstrates that independent, content-based gating is superior to relative attention for distantly supervised relation extraction, particularly when dealing with the prevalence of single-sentence bags. By combining entity-aware embeddings with parallel local and global feature extraction, SeG provides a more accurate and robust method for extracting knowledge from noisy text. Future work may involve integrating external knowledge bases to further assist the model in cases where sentence context alone is insufficient.
Summary updated