TL;DR
This paper introduces READ, a novel adversarial training method for relation extraction (RE) that tackles the over-reliance of current models on entity mentions. By employing targeted adversarial attacks and a novel Entity-Aware Virtual Adversarial Training (VAT) approach, READ significantly improves RE model robustness and generalization, especially in low-resource settings.
What Problem Does This Paper Address?
Relation Extraction (RE) is a crucial task in Natural Language Processing (NLP) that aims to identify the semantic relationship between two entities in a given text. While recent advancements in pre-trained language models have led to impressive accuracy, this paper highlights a critical vulnerability: RE models tend to excessively rely on entity mentions themselves, rather than the contextual patterns that truly define the relationship. This over-dependency makes them brittle, prone to errors when faced with slight perturbations (adversarial attacks), and limits their ability to generalize to unseen data. The core problem is understanding and mitigating this "learning preference" for entities over context.
Methods
The paper proposes READ (Relation Extraction from an ADversarial Perspective), a method that combines adversarial attacks for analysis with adversarial training for improvement.
- Adversarial Attack for Analysis: The authors first use various adversarial attack methods (e.g., TextFooler, BAE) to probe existing RE models. By observing which parts of the input are most frequently targeted and lead to misclassifications, they confirm the over-reliance on entities.
- Entity-Aware Virtual Adversarial Training (VAT): This is the core of READ. It builds upon Virtual Adversarial Training (VAT), a technique that generates adversarial samples by adding small perturbations to the input embeddings. READ enhances VAT in two key ways:
- Separate Perturbation Vocabularies: Instead of a single vocabulary for perturbations, READ maintains separate vocabularies for entity tokens and context tokens. This allows for more targeted perturbation strategies.
- Probabilistic Clean Token Leaving Strategy: During adversarial training, a certain percentage of context tokens are intentionally "left clean" (i.e., not perturbed). This forces the model to learn from the unperturbed contextual patterns, further reducing its reliance on entities and improving its ability to capture relational cues.
Datasets
The paper evaluates READ on three standard RE datasets:
- SemEval-2010 Task 8: A widely used dataset for relation classification.
- ReTACRED: A larger dataset for relation extraction.
- Wiki80: Another benchmark dataset for relation extraction.
Additionally, the authors conduct experiments on the Re-DocRED dataset for document-level RE to demonstrate compatibility.
Key Insights and Ideas
- Entities are a Crutch, Not the Core: Adversarial attacks reveal that current RE models often use entity mentions as a shortcut, rather than deeply understanding the relational context. This is the root cause of their fragility.
- Context is King (When Forced): By strategically leaving context tokens "clean" during adversarial training, models are compelled to learn from the surrounding text, leading to more robust and generalizable relation extraction.
- Targeted Perturbations Matter: Separating entity and context perturbations allows for a more nuanced adversarial training process, specifically addressing the identified over-reliance on entities.
- Adversarial Training Benefits Clean Performance: Surprisingly, improving robustness against adversarial attacks also leads to better performance on clean, unperturbed data, especially in low-resource scenarios.
Key Results
- READ significantly improves the robustness of RE models against various adversarial attacks, demonstrating substantial performance gains compared to baseline models and other adversarial training methods like FreeLB and TA-VAT. For instance, on the Wiki80 dataset, FineCL experienced a performance drop of up to 91.2% under TextFooler attack, while READ-enhanced models showed greater resilience.
- The method consistently improves accuracy on clean test samples across different datasets and data availability settings.
- READ shows particularly strong performance in low-resource settings (e.g., 1% training data), achieving remarkable improvements (up to 4.7% on SemEval) where traditional methods struggle.
- Ablation studies confirm that both the separate perturbation vocabularies and the clean token leaving strategy contribute to READ's effectiveness, with the clean token leaving strategy being particularly crucial for robustness.
Limitations and Future Work
- Computational Cost: Similar to other virtual adversarial training methods, READ involves searching for perturbations in each mini-batch, leading to longer training times compared to standard models.
- Limited Scope of Datasets: The evaluation was conducted on four RE datasets. The authors suggest future work to investigate the method's effectiveness in more complex scenarios like continual relation extraction, few-shot relation extraction, and open-world relation extraction.
- Compatibility with Data Augmentation: While READ shows compatibility with data augmentation techniques, further exploration into combining these methods could yield even better results.
Summary updated