Adversarial Training for Relation Extraction

Yi Wu, David Bamman, Stuart J. RussellEMNLP 2017

Abstract

Relation Extraction (RE) often relies on distant supervision, which introduces significant noise and weak signals into training data. This paper demonstrates that Adversarial Training (AT)—a technique originally designed to defend against malicious attacks—serves as a powerful regularizer for RE. By adding small, calculated perturbations to word embeddings during training, the authors significantly improved the precision and robustness of both Piecewise Convolutional Neural Networks (PCNN) and Recurrent Neural Networks (RNN) models. Our results on standard benchmarks show that AT helps models generalize better in difficult, low-signal environments.

Introduction

Relation Extraction aims to identify the relationship between two entities (e.g., "Born_In," "Works_For") based on text mentions. Most modern systems use distant supervision, automatically aligning entity pairs from a database to news articles. This approach creates two major challenges: noisy labels, where entity co-occurrence does not imply a specific relation, and weak supervision, where the signal-to-noise ratio is low within the Multi-Instance Multi-Label (MIML) framework.

The authors investigate whether Adversarial Training—which forces a model to remain certain even when the input is slightly jittered—can improve generalization in these noisy contexts.

Methodology

The researchers integrated Adversarial Training into two standard neural architectures: Piecewise Convolutional Neural Networks (PCNN) and Bidirectional Gated Recurrent Units (RNN).

The Adversarial Twist

Instead of training solely on original data, the model generates "adversarial examples" on the fly. The model calculates the direction in which a tiny change to the word embeddings would most increase the classification loss. It then trains to correctly classify both the original sentence and this "worst-case" perturbed version. To maintain efficiency, a linear approximation (similar to the Fast Gradient Sign Method) is used to find the noise.

Model architecture showing the integration of adversarial perturbations at the embedding layer.

Selective Attention

To handle the "bag of sentences" problem in MIML, an instance-level attention mechanism was employed. This allows the model to focus on the most relevant sentences in a group while ignoring noisy instances.

Experimental Setup

The models were evaluated on two standard benchmarks:

  1. NYT Dataset: A large-scale dataset from New York Times articles with 58 relations, serving as the gold standard for distant supervision.
  2. UW Dataset: A smaller dataset (5 relations) used to test generalization across different evaluation settings.

Results

The addition of Adversarial Training (Adv) consistently outperformed the base models across all metrics, particularly in Area Under the Curve (AUC). The RNN models generally outperformed CNNs, but AT provided a similar relative boost to both architectures.

Precision-Recall curves for PCNN (left) and RNN (right) models, comparing base performance with adversarial training.
  • NYT Dataset: PCNN-Adv achieved an AUC of 0.356 (vs. 0.329 base), while RNN-Adv reached 0.382 (vs. 0.351 base).
  • UW Dataset: RNN-Adv showed a significant jump to 0.671 AUC (vs. 0.631 base). At a recall of 0.1, RNN-Adv hit a precision of 0.929, compared to 0.823 for the base model.

Discussion

Several key insights emerged from this study:

  • Robustness is Generalizable: AT works even when supervision is weak; perfect labels are not required for adversarial regularization to be effective.
  • Architecture Sensitivity: RNNs required a much larger noise parameter ($\epsilon$) to see improvement compared to CNNs, suggesting the sequential nature of RNNs makes them inherently more robust to input perturbations.
  • Precision over Recall: AT specifically boosted precision. By forcing the model to ignore small embedding noise, it became less likely to make overconfident, incorrect guesses.
  • The Semantic Boundary: There is a "Goldilocks zone" for the noise parameter $\epsilon$. If too large, it changes the actual meaning of words in the embedding space, which degrades training performance.

Conclusion

While Adversarial Training provides clear performance gains, it comes with a computational cost, effectively doubling training time due to the extra forward/backward passes required for noise generation. Future work may explore "linguistic adversaries"—swapping words for synonyms—as a complementary approach to continuous embedding perturbations. Additionally, the sensitivity of the noise parameter $\epsilon$ to embedding types (e.g., GloVe vs. Word2Vec) remains a challenge for automated tuning.

Summary updated

BibTeX
@inproceedings{wu2017adversarial,
  author = {Yi Wu and David Bamman and Stuart J. Russell},
  title = {{Adversarial Training for Relation Extraction}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2017},
  url = {https://openreview.net/forum?id=BJ-aa-GdWS},
}
Figure