Adversarial training for multi-context joint entity and relation extraction

Giannis Bekoulis, Johannes Deleu, Thomas Demeester, Chris Develder

Introduction

Identifying entities and their semantic relationships is a cornerstone of Natural Language Processing (NLP). Traditionally, Named Entity Recognition (NER) and Relation Extraction (RE) are treated as sequential tasks. However, this pipeline approach often suffers from "error propagation," where inaccuracies in entity detection compromise subsequent relation classification. Joint extraction models aim to mitigate this by addressing both tasks simultaneously.

This paper proposes a robust joint extraction framework enhanced by Adversarial Training (AT). By introducing "worst-case" perturbations to input embeddings, the authors develop a model that achieves state-of-the-art performance across diverse languages and domains—ranging from Dutch real estate listings to English biomedical reports—without relying on manual feature engineering or external linguistic tools.

Methodology: Joint Extraction with Adversarial Perturbations

The core architecture is a neural joint model that treats relation extraction as a multi-label head selection problem. This approach allows the model to identify multiple relations for a single entity in a single computational pass.

Model Architecture

The model processes input sequences through several layers:

  1. Embeddings: Combines word-level and character-level embeddings to capture both semantic meaning and morphological features (e.g., prefixes and suffixes).
  2. BiLSTM Layer: A bidirectional Long Short-Term Memory network captures long-range contextual dependencies.
  3. CRF Layer: A Conditional Random Field (CRF) identifies entity boundaries and types (e.g., Person, Location).
  4. Relation Layer: Instead of evaluating all possible entity pairs, the model predicts "heads" for each word, enabling efficient extraction of overlapping relations.

Adversarial Training (AT)

The primary innovation is the integration of AT into the training process. Unlike standard regularization techniques like Dropout, which introduce random noise, AT generates intentional, "worst-case" perturbations ($\eta$) designed to maximize the model's loss.

Architecture of the joint extraction model with adversarial training.

As illustrated in the architecture above, these perturbations are added directly to the word and character embeddings. The model is then trained on a combination of original and adversarial examples, forcing it to learn features that are invariant to small input changes, thereby increasing overall robustness.

Experimental Setup and Datasets

To evaluate the "multi-context" utility of the approach, the authors tested the model on four distinct datasets:

  • ACE04: A standard multipurpose dataset covering news and broadcast domains.
  • CoNLL04: A benchmark dataset for general entity and relation extraction.
  • DREC (Dutch Real Estate Classifieds): A domain-specific dataset used to test cross-linguistic applicability.
  • ADE (Adverse Drug Events): A specialized biomedical dataset focusing on drug-side effect relationships.

Results and Discussion

The "Baseline + AT" model consistently outperformed previous state-of-the-art models that rely on automatically extracted features.

Performance Gains

The model achieved significant F1 score improvements across all datasets. For instance, on ACE04, it reached an F1 of 64.54, surpassing the previous best joint model (62.65). In the biomedical ADE domain, the model achieved an F1 of 81.13, a substantial improvement over existing neural architectures.

Robustness and Convergence

A key finding was the impact of AT on training stability and speed. The adversarial models reached peak performance earlier in the training cycle compared to the baseline.

F1 performance over training epochs for CoNLL04 and ADE datasets.

As shown in the performance plots for CoNLL04 and ADE, the adversarial approach (red line) maintains a higher and more stable F1 score throughout the training process. This suggests that AT acts as a universal regularizer, providing a consistent performance boost regardless of the specific domain or language.

Conclusion

The integration of adversarial training into a joint entity and relation extraction model provides a robust, general-purpose solution for complex NLP tasks. By achieving state-of-the-art results without the need for external linguistic tools like dependency parsers, this approach is particularly valuable for low-resource languages and specialized domains. Future work may explore the relationship between dataset size and AT effectiveness, as well as methods to further improve the NER component of the joint model.

Summary updated

BibTeX
@inproceedings{bekoulis2018adversarial,
  author = {Giannis Bekoulis and Johannes Deleu and Thomas Demeester and Chris Develder},
  title = {{Adversarial training for multi-context joint entity and relation extraction}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1307},
}
Figure