Abstract
Distant supervision is a widely used technique for scaling relation extraction (RE) without manual labeling by aligning knowledge bases with plain text. However, this method often introduces significant noise through wrongly labeled instances. We propose a novel neural architecture that utilizes selective attention over sentence instances to separate signal from noise. Our model employs a Convolutional Neural Network (CNN) or Piecewise CNN (PCNN) as a sentence encoder and introduces a sentence-level attention mechanism to dynamically weight the importance of different sentences for a given entity pair. Evaluation on the New York Times (NYT) dataset shows that our attention-based models significantly outperform state-of-the-art baselines in precision and recall.
Introduction
Populating Knowledge Bases (KBs) like Freebase or DBpedia is a monumental task. While distant supervision has been the go-to strategy for scaling relation extraction without manual labeling, it comes with a major challenge: noise. Distant supervision assumes that if a KB contains a relation between two entities, any sentence containing those entities expresses that relation. This assumption is frequently violated, leading to the "wrong labeling problem." For example, a sentence mentioning "Bill Gates" and "Microsoft" might discuss an antitrust case rather than the "founder_of" relation.
Previous attempts to address this using Multi-Instance Learning (MIL) often relied on handcrafted features or were overly restrictive, such as picking only the single most likely sentence and discarding other informative ones. This paper introduces a neural model that uses selective attention to aggregate information from all relevant sentences while de-emphasizing noisy ones.
Methodology
The proposed model consists of a two-stage neural pipeline designed to handle the noise inherent in distantly supervised data.
Sentence Encoder
The first stage transforms raw sentences into fixed-length vectors using either a standard Convolutional Neural Network (CNN) or a Piecewise CNN (PCNN). To capture the structural context of the sentence, the model utilizes Position Embeddings, which represent the relative distance of each word from the two target entities. This allows the CNN to focus on the context most relevant to the potential relation.
Selective Attention over Instances
The core innovation is the selective attention mechanism. Instead of treating all sentences for an entity pair equally (averaging) or selecting only the "best" sentence (at-least-one learning), the model learns a "query" vector for each relation. It calculates an attention weight for every sentence based on how well its representation matches the predicted relation.
Informative sentences that strongly support the relation receive high weights, while noisy or irrelevant sentences are assigned low weights. The final representation for an entity pair is a weighted sum of all its sentence vectors, which is then passed to a softmax classifier.
Experiments and Results
The model was evaluated on the NYT dataset, which aligns Freebase relations with the New York Times corpus. The dataset contains approximately 522k training sentences and 172k testing sentences across 53 possible relations.
Performance Comparison
The attention-based models (CNN+ATT and PCNN+ATT) were compared against traditional feature-based methods (Mintz, MultiR, MIML) and simpler neural aggregation strategies.
As shown in the Precision-Recall curves, the attention-based models significantly outperform all baselines. The PCNN+ATT model achieves the highest performance, demonstrating the effectiveness of combining piecewise pooling with selective attention.
Handling Multi-Sentence Pairs
The advantage of the attention mechanism is most pronounced for entity pairs associated with multiple sentences. In these cases, the model can aggregate complementary information from different instances. For entity pairs with multiple sentences, PCNN+ATT achieved a P@100 of 76.2%, a substantial improvement over the 67.3% achieved by the standard "at-least-one" CNN model. Case studies further confirmed that the model successfully assigns near-zero weights to sentences that contain the correct entities but do not express the target relation.
Conclusion
This research demonstrates that selective attention is a powerful tool for mitigating noise in distantly supervised relation extraction. By learning to weight instances dynamically, the model moves beyond the limitations of "at-least-one" learning and handcrafted features. Future work may involve exploring more sophisticated sentence encoders like Transformers or applying instance-level attention to other noisy multi-instance learning tasks such as text categorization.
Summary updated