Improving Neural Relation Extraction with Positive and Unlabeled Learning

Zhengqiu He, Wenliang Chen, Yuyi Wang, Wei Zhang, Guanchun Wang, Min Zhang

Abstract

Distant supervision is a common technique for relation extraction (RE) that automatically labels data using knowledge bases. However, this process introduces significant noise, as many sentences containing an entity pair do not actually express the target relation. Traditional methods often use reinforcement learning (RL) to filter out these noisy sentences, discarding them entirely. This paper introduces a robust framework that treats non-selected sentences as "unlabeled" data rather than noise to be ignored. By combining RL-based instance selection with Positive and Unlabeled (PU) learning, the proposed model recovers valuable semantic information from the discarded instances. Evaluations on the NYT benchmark show that this approach achieves state-of-the-art performance and greater robustness.

Introduction

Relation Extraction (RE) aims to identify semantic relationships between entities in text, such as identifying that "Steve Case" is the "founder" of "AOL." While supervised models are effective, they are limited by the availability of manually labeled data. Distant supervision addresses this by aligning knowledge bases (KBs) with raw text, assuming that if a KB contains a relation $R(e_1, e_2)$, then any sentence containing both $e_1$ and $e_2$ expresses $R$.

This assumption is often false, leading to the "wrong label" problem. For example, a sentence might mention Steve Case and AOL in the context of a meeting or a former role, rather than his status as a founder.

Examples of noisy distant supervision labels for the relation 'founder'.

Previous research has employed Reinforcement Learning (RL) to select "positive" instances from these noisy bags. However, these selectors typically discard non-selected sentences, potentially losing useful information. This paper argues that these "discarded" sentences—the unlabeled ones—still contain valuable semantic features that can improve model generalization.

Methodology

The proposed architecture consists of three main components: a sentence encoder, an RL-based instance selector, and a PU-based relation extractor.

Sentence Encoder

The model uses standard convolutional architectures, specifically CNN and Piecewise CNN (PCNN), to transform raw sentences into vector representations. PCNN is particularly effective as it captures structural information by dividing the sentence into three segments based on the entity positions.

RL-based Instance Selector

An RL agent acts as a filter for each "bag" (a set of sentences sharing the same entity pair). For every sentence, the agent decides whether it is Positive (+1) or Unlabeled (-1). A key innovation here is the use of relation-aware state representations. By including the target relation's embedding in the agent's state, the selector can more accurately identify sentences relevant to a specific relationship.

The selector mechanism partitions a bag of sentences into a Positive Bag and an Unlabeled Bag.

PU-based Relation Extractor

Instead of training solely on positive instances, the Relation Extractor utilizes both the selected positive bag and the remaining unlabeled bag. It computes three distinct representations:

  1. POS-based: Derived from sentences flagged as positive.
  2. UNL-based: Derived from the unlabeled sentences.
  3. PU-combined: A weighted fusion of both representations.

The system is trained jointly. The Relation Extractor provides a reward to the RL agent based on the classification performance, guiding the agent to select more informative sentences.

Experimental Setup

The model was evaluated on the NYT dataset, a standard benchmark for distant supervision. The dataset includes 53 relation types (including a "NA" relation for no relationship). The training set consists of 522,611 sentences across 281,270 entity pairs, while the test set contains 172,448 sentences.

Results and Discussion

The proposed PCNN+PU model significantly outperformed competitive baselines, including attention-based models (PCNN+ATT) and standard RL-based selectors (CNN+RL).

Performance Metrics

  • Precision-Recall Curves: The PU-based models maintained significantly higher precision as recall increased. This suggests that incorporating unlabeled data helps the model maintain accuracy even when attempting to recover more relations.
  • Manual Evaluation: A manual audit of the top 100 predicted facts showed that PCNN+PU achieved 92% accuracy, outperforming the previous state-of-the-art (APCNN+D) at 87% and PCNN+ATT at 86%.
  • Ablation Study: Removing the unlabeled bag representation led to a noticeable performance drop, confirming that "noisy" data provides a beneficial regularizing effect.

Insights

The core insight is that unlabeled is not negative. Treating non-selected sentences as unlabeled allows the model to recover information that might be missed by a strict binary filter. Furthermore, the relation-aware selector ensures that the filtering process is tailored to the specific semantics of the target relation.

Conclusion

By integrating Positive and Unlabeled learning with Reinforcement Learning, this work provides a more robust solution to the noise inherent in distant supervision. While the approach introduces some computational overhead and hyperparameter sensitivity, the gains in precision and recall demonstrate the value of "recycling" noisy data rather than discarding it. Future work may involve integrating more advanced encoders like BERT to further enhance feature extraction.

Summary updated

BibTeX
@inproceedings{he2020improving,
  author = {Zhengqiu He and Wenliang Chen and Yuyi Wang and Wei Zhang and Guanchun Wang and Min Zhang},
  title = {{Improving Neural Relation Extraction with Positive and Unlabeled Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i05.6300},
}
Figure