DSGAN: Generative Adversarial Training for Distant Supervision Relation Extraction

Pengda Qin, Weiran Xu, William Yang Wang

Introduction

Relation Extraction (RE) is a critical task in natural language processing, aimed at identifying semantic relationships between entities in text. To scale RE without the prohibitive cost of manual annotation, researchers often employ Distant Supervision (DS). DS automatically labels sentences by aligning entity pairs from a knowledge base (KB) with a text corpus. However, this heuristic introduces significant noise, as not every sentence containing a specific entity pair expresses the target relation.

Presented at ACL 2018, DSGAN introduces an adversarial training framework designed to "denoise" distantly supervised datasets. By training a generator to identify true positive samples, DSGAN provides a model-agnostic method to clean training data, significantly improving the performance of downstream relation extractors.

The Problem: Noise in Distant Supervision

The fundamental assumption of DS—that any sentence containing two entities related in a KB expresses that relation—is frequently violated. For instance, while a KB might link "Barack Obama" and "Hawaii" via the born_in relation, a sentence stating "Obama visited Hawaii" does not express this fact. These false positives act as noise that degrades the performance of neural relation classifiers.

Visualization of the DS data space, highlighting the discrepancy between the noisy decision boundary of DS data and the desired decision boundary for true positives.

Existing "bag-level" multi-instance learning methods attempt to mitigate this by weighting sentences within a group (a "bag"). However, these methods struggle when an entire bag consists solely of false positives. DSGAN addresses this by making sentence-level filtering decisions to isolate actual true positives from the noise.

Methodology: The DSGAN Framework

DSGAN employs a Generative Adversarial Network (GAN) architecture consisting of two primary components: a Generator ($G$) and a Discriminator ($D$).

  1. The Generator ($G$): A CNN-based model that estimates the probability of a sentence being a "true positive." Its objective is to sample the most plausible positive instances from the noisy DS dataset.
  2. The Discriminator ($D$): Also a CNN, $D$ is pre-trained on the original noisy DS distribution to distinguish between positive and negative relations.
The DSGAN architecture, illustrating the adversarial process where the generator samples high-confidence instances to challenge the pre-trained discriminator.

The Adversarial Game

Unlike traditional GANs that generate synthetic data, DSGAN's generator samples from the existing noisy dataset. During training, $G$ selects sentences it identifies as true positives. These selected samples are then labeled as "negative" and fed to $D$. The goal of $G$ is to maximize the confusion of $D$. As $G$ becomes more adept at selecting actual true positives, $D$’s ability to maintain its original classification performance on the noisy distribution collapses.

Because the sampling process is discrete and non-differentiable, the authors utilize Policy Gradient reinforcement learning to optimize the generator. The training concludes when the discriminator's performance on its original task reaches a point of maximum decline, indicating that $G$ has successfully isolated the true positive distribution.

Experimental Results

The authors evaluated DSGAN on the standard New York Times (NYT) dataset, which contains 52 relations aligned with Freebase. DSGAN was used as a pre-processing filter for four state-of-the-art models: CNN+ONE, CNN+ATT, PCNN+ONE, and PCNN+ATT.

Key findings include:

  • Performance Gains: All base models showed statistically significant improvements in Area Under the Curve (AUC). For example, the PCNN+ATT model's AUC increased from 0.253 to 0.264 after cleaning.
  • Precision-Recall Stability: The cleaned datasets allowed models to maintain higher precision at higher recall levels compared to baselines, confirming that the generator effectively filtered false positives without discarding true positives.
  • Model Agnosticism: Since DSGAN functions as a data cleaner rather than a classifier, it can be integrated into any existing relation extraction pipeline.

Conclusion

DSGAN represents a shift from "soft" weighting mechanisms to "hard" adversarial filtering for distant supervision. By leveraging the adversarial game to identify the underlying true positive distribution, it provides a robust, sentence-level denoising strategy. While GAN training introduces additional complexity, the resulting performance improvements across various architectures demonstrate the potential of adversarial denoising for tasks reliant on automatically labeled data.

Summary updated

BibTeX
@inproceedings{qin2018dsgan,
  author = {Pengda Qin and Weiran Xu and William Yang Wang},
  title = {{DSGAN: Generative Adversarial Training for Distant Supervision Relation Extraction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2018},
  url = {https://openreview.net/forum?id=HyETQalubS},
}
Figure