Transfer Learning for Relation Extraction via Relation-Gated Adversarial Learning

Ningyu Zhang, Shumin Deng, Zhanlin Sun, Jiaoyan Chen, Wei Zhang, Huajun ChenarXiv 2019

Abstract

Relation Extraction (RE) is a fundamental task in building Knowledge Graphs, yet it often faces significant data scarcity in specialized domains. We present R-Gated (Relation-Gated Adversarial Learning), a novel framework for unsupervised domain adaptation in RE. R-Gated dynamically weights source domain categories and instances to handle "partial adaptation"—where source and target relation sets only partially overlap—thereby reducing negative transfer and improving performance in data-poor target domains.

Introduction

Relation Extraction involves identifying semantic relationships between entities in text, such as determining that "DeepMind" is a "subsidiary" of "Alphabet." While large-scale labeled datasets exist for general domains like Wikipedia, specific fields such as medicine or law often lack the necessary data to train robust models from scratch.

The Challenge of Domain Adaptation

Standard Domain Adaptation (DA) techniques attempt to bridge the gap between a data-rich source and a data-poor target. However, RE presents unique hurdles:

  1. Linguistic Variation: Relations are expressed using different vocabularies across domains (e.g., "subsidiary of" vs. "holding").
  2. Imbalanced Distribution: The frequency of specific relations varies wildly between contexts.
  3. Partial Adaptation: Most DA models assume identical relation sets across domains. In practice, a source like Wikidata may contain thousands of relations, while a target news corpus may only require a dozen. Forcing a model to adapt to irrelevant source relations leads to "negative transfer," degrading performance on the target task.
Figure 1: Comparison of Relation Extraction across general and specific domains, highlighting differences in entities, phrasing, and relation distributions.

The R-Gated Framework

To address these challenges, the R-Gated framework utilizes three integrated components:

  • Instance Encoder: Uses CNN or Piecewise CNN (PCNN) architectures to transform sentences into feature vectors.
  • Adversarial Domain Adaptation: A discriminator attempts to distinguish between source and target features, while the encoder learns to produce domain-invariant representations to "fool" the discriminator.
  • Relation-Gate Mechanism: This core innovation filters source data through two weighting schemes:
  • Category Weights: Identify source relation types relevant to the target domain.
  • Instance Weights: Identify high-quality, transferable sentences within those categories.
  • The Gate: A neural network learns a parameter ($\alpha$) to dynamically balance these weights, ensuring the model prioritizes the most helpful source information.
Figure 2: The complete R-Gated architecture, illustrating the flow from sentence encoding to relation prediction and the gated adversarial learning process.

Experimental Evaluation

The model was benchmarked on the ACE05 dataset (covering multiple genres) and the Wiki-NYT dataset (aligning Wikidata with New York Times articles).

Key results include:

  • Performance Gains: R-Gated outperformed standard adversarial baselines (CNN+DANN) by over 2% in F1 score on partial adaptation tasks.
  • Noise Robustness: The model effectively filtered noisy labels from distant supervision. For instance, it correctly identified non-transferable instances that knowledge graphs had mislabeled.
  • Stability: Unlike standard models, R-Gated maintained stable performance even as the mismatch between source and target classes increased.

Conclusion

R-Gated demonstrates that effective domain adaptation for Relation Extraction requires more than just domain-invariant features; it requires a granular understanding of which source data is actually relevant. By weighting both categories and instances, the framework successfully mitigates negative transfer. Future work may explore transferable attention mechanisms and few-shot adaptation to further enhance performance in extremely low-resource settings.

Summary updated

BibTeX
@misc{zhang2019transfer,
  author = {Ningyu Zhang and Shumin Deng and Zhanlin Sun and Jiaoyan Chen and Wei Zhang and Huajun Chen},
  title = {{Transfer Learning for Relation Extraction via Relation-Gated Adversarial Learning}},
  year = {2019},
  eprint = {1908.08507},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.08507},
}
Figure