READ: Improving Relation Extraction from an ADversarial Perspective

Dawei Li, William Hogan, Jingbo Shang

Abstract

Relation Extraction (RE) models often achieve high performance by exploiting shallow cues from entity names rather than understanding underlying sentence structures. This paper introduces READ, an adversarial training framework designed to mitigate this over-dependency. By employing Separate Perturbation Vocabularies (SPV) and a Probabilistic Clean Token Leaving (CTL) strategy, READ forces models to prioritize linguistic context over entity memorization. Experimental results across multiple benchmarks show that READ significantly enhances both model robustness and accuracy, with particularly pronounced gains in low-resource training environments.

Introduction

Relation Extraction (RE) is the task of identifying semantic relationships between entities in text. While modern deep learning models perform well on standard benchmarks, they are often "lazy," relying on entity names as shortcuts. For example, a model might associate the entity "Sky Blue" with an "employer" relation simply by memorizing the name, rather than parsing the sentence structure. This over-dependency makes models fragile; changing an entity name slightly can lead to incorrect predictions. The authors propose READ to break this dependency and encourage models to learn robust relational patterns from the surrounding context.

The READ Framework

READ builds upon Virtual Adversarial Training (VAT) by applying continuous perturbations to word embeddings during training. It introduces two primary innovations to address the specific challenges of RE:

  1. Separate Perturbation Vocabularies (SPV): Recognizing that entities and context serve different roles, READ maintains independent "noise trackers" for each. This allows the system to optimize perturbations for entity tokens and context tokens separately, enabling a more precise search for model vulnerabilities.
  2. Probabilistic Clean Token Leaving (CTL): During training, a percentage of context tokens are randomly chosen to remain unperturbed. This increases the relative "attack budget" on entity tokens, making them harder to rely on, while providing the model with clear, noise-free relational patterns in the context to learn from.
Overview of the READ pipeline showing adversarial sample generation and training.

Experimental Evaluation

The researchers evaluated READ on several mainstream RE benchmarks, including SemEval-2010 Task 8, ReTACRED, Wiki80, and Re-DocRED. The framework was tested against standard training and other adversarial methods like FreeLB and TA-VAT.

Key Insights

  • Shortcut Mitigation: Analysis confirmed that entities are targeted by adversarial attacks more successfully than context in standard models. READ successfully reduces this "Entity Attack Success" rate.
  • Regularization Effect: Beyond robustness, READ acts as a powerful regularizer, improving performance on clean (non-adversarial) data by preventing over-fitting on specific entity names.
  • Low-Resource Performance: The most significant improvements were observed when training data was scarce. In a 1% data regime on SemEval, READ achieved a 53.2% F1 score, representing a 4.7% absolute improvement over the baseline.

Results and Analysis

READ consistently outperformed baselines in both clean accuracy and robustness under attack. On the Wiki80 dataset, READ maintained 10.7% accuracy under a TextFooler attack, compared to 8.5% for the standard model. Furthermore, the CTL strategy proved robust across various probability settings, consistently yielding better results than the baseline regardless of the percentage of tokens left clean.

Performance impact of the Clean Token Leaving (CTL) strategy across different training data volumes.

Conclusion

READ addresses the critical issue of entity over-dependency in Relation Extraction. By forcing models to focus on context through targeted adversarial perturbations and the CTL strategy, it produces models that are both more robust and more accurate. While the method increases computational cost due to the iterative perturbation search, its ability to "squeeze" structural understanding out of limited data makes it a valuable tool for low-resource NLP tasks. Future work may explore its application in open-world RE and more specialized domains like medical or legal text.

Summary updated

BibTeX
@inproceedings{li2024read,
  author = {Dawei Li and William Hogan and Jingbo Shang},
  title = {{READ: Improving Relation Extraction from an ADversarial Perspective}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-naacl.36},
}
Figure