Abstract
Distantly supervised relation extraction (RE) faces significant challenges due to noise, particularly in datasets like the New York Times (NYT) where 80% of entity pairs appear in only a single sentence. Traditional selective attention mechanisms fail in these "one-sentence bag" scenarios because they are forced to assign full weight to potentially noisy labels. This paper introduces the Selective Gate (SeG) framework, which incorporates entity-aware embeddings and a parallel hybrid architecture of Piecewise CNNs and self-attention. By replacing relative attention with an absolute gating mechanism, SeG effectively filters noise even in single-sentence instances. Experimental results on the NYT dataset demonstrate that SeG achieves a state-of-the-art AUC of 0.51 and significantly improves precision across various bag sizes.
Introduction
Relation Extraction (RE) aims to identify semantic relationships between entity pairs within text. To scale this task without prohibitive manual labeling costs, Distant Supervision (DS) aligns knowledge graphs with text corpora to automatically generate training data. However, DS introduces substantial noise; an entity pair mentioned in a sentence does not necessarily express the relation found in a knowledge graph.
Existing models typically employ selective attention to mitigate this noise by weighting sentences within a "bag" (all sentences sharing an entity pair). However, a critical bottleneck exists: in the standard NYT benchmark, roughly 80% of bags contain only one sentence. In these cases, selective attention mathematically defaults to a weight of 1.0, rendering it unable to denoise the majority of the dataset. This paper proposes the Selective Gate (SeG) framework to address this "one-sentence bag" problem by treating denoising as an absolute quality judgment rather than a relative one.
Methodology
The SeG framework introduces three core architectural innovations to enhance feature extraction and denoising capabilities.
- Entity-Aware Embedding: Unlike standard models that rely solely on word and position embeddings, SeG utilizes a position-wise gating mechanism to dynamically integrate the embeddings of the head and tail entities into every word's representation. This ensures the model maintains focus on the specific entities involved throughout the encoding process.
- Parallel Hybrid Architecture: To capture both local patterns and long-range dependencies, the model employs a Piecewise CNN (PCNN) and a Self-Attention mechanism in parallel. The authors found that this parallel configuration outperforms sequential stacking for relation extraction tasks.
- The Selective Gate: The centerpiece of the model is the Selective Gate, which replaces traditional selective attention. It uses a two-layer feed-forward network to evaluate each sentence independently, producing a gating value between 0 and 1. This allows the model to "shut down" noisy sentences even when they are the sole representative of an entity pair in a bag.
Experiments and Results
The model was evaluated on the NYT dataset, which consists of 53 relations and over 700,000 sentences. A significant challenge of this dataset is that approximately 35% of its single-sentence bags are incorrectly labeled.
SeG achieved a new state-of-the-art Area Under the Curve (AUC) of 0.51, a substantial improvement over the PCNN+ATT baseline (0.35). In Precision at N (P@N) metrics, SeG demonstrated remarkable robustness in one-sentence scenarios, achieving 94.0% precision for the top 100 instances—a 20.7% absolute improvement over the baseline. Ablation studies highlighted the importance of the entity-aware component; its removal caused the AUC to drop to 0.40, confirming that explicit entity context is vital for accurate extraction.
Conclusion
The SeG framework effectively addresses the limitations of selective attention in distantly supervised relation extraction. By shifting from relative weighting to absolute gating and enriching word representations with entity-specific context, the model achieves significant performance gains. Future work involves integrating external knowledge bases to provide the background information necessary for resolving ambiguous or isolated sentences that currently elude neural models.
Summary updated