Leveraging Expert Guided Adversarial Augmentation For Improving Generalization in Named Entity Recognition

Aaron Reich, Jiaao Chen, Aastha Agrawal, Yanzhe Zhang, Diyi Yang

Abstract: Aaron Reich, Jiaao Chen, Aastha Agrawal, Yanzhe Zhang, Diyi Yang. Findings of the Association for Computational Linguistics: ACL 2022.

2022.

Introduction

Current Named Entity Recognition (NER) models often exhibit "brittle" behavior, achieving high performance on standard benchmarks by memorizing entity names rather than understanding linguistic context. This reliance on spurious correlations—such as always labeling "Brazil" as a Location even when the context implies "Brazil University" (Organization)—leads to significant failures in real-world, out-of-distribution scenarios. This paper introduces an expert-guided adversarial augmentation framework and Mixup regularization to improve model generalization without sacrificing standard performance.

Methodology: Expert-Guided Adversarial Augmentation

To force models to look beyond entity tokens, the authors propose a systematic augmentation strategy based on linguistic heuristics. Unlike random word swapping, this method ensures that adversarial examples remain semantically sound and challenging.

The process involves three components:

  1. Eligibility Check: Identifying entities suitable for transformation (e.g., single-token entities).
  2. Entity Token Change: Modifying keywords to flip the entity type (e.g., adding "University" to "Brazil").
  3. Entity Context Change: Inserting supporting phrases (e.g., "and its team") to maintain semantic coherence.
Examples of expert-guided entity transitions and augmentations.

Mixup with Adversarial Examples

Training directly on adversarial examples can lead to overfitting on specific attack patterns or a "robustness tax" on clean data. To mitigate this, the authors employ Mixup regularization. By linearly interpolating the hidden representations of original sentences and their adversarial counterparts, the model learns a smoother decision boundary, enhancing robustness while maintaining high accuracy on in-distribution data.

Experimental Setup

The framework was evaluated using three primary datasets:

  • CoNLL 2003: The standard In-Distribution (ID) dataset.
  • The Challenging Set (CS): A new benchmark of 1,000 high-quality adversarial examples derived from CoNLL 2003 and manually filtered by experts.
  • OntoNotes: Used for Out-of-Domain (OOD) evaluation in a few-shot setting.

Results and Discussion

The experiments reveal a stark performance gap in standard models. A baseline BERT model's F1 score drops from 90.82 on the standard test set to 71.80 on the Challenging Set, confirming that state-of-the-art models often ignore contextual indicators.

Performance comparison across In-Distribution (ID), Challenging Set (CS), and Out-of-Domain (OOD) datasets.

As shown in the results, the proposed BERT + AT + Mixup method significantly improves robustness. It recovers nearly all performance on the Challenging Set (90.21 F1) and shows substantial gains in few-shot generalization on the OOD OntoNotes dataset, improving from 58.72 to 67.47 F1. Notably, these gains are achieved with high data efficiency; even 10% augmentation yields significant improvements over the baseline.

Conclusion

By leveraging expert-guided heuristics and Mixup regularization, this work demonstrates that NER models can be made significantly more robust to contextual ambiguity. This approach addresses the "lazy" learning patterns of current models, providing a path toward more reliable and generalizable natural language understanding systems.

Summary updated

BibTeX
@inproceedings{reich2022leveraging,
  author = {Aaron Reich and Jiaao Chen and Aastha Agrawal and Yanzhe Zhang and Diyi Yang},
  title = {{Leveraging Expert Guided Adversarial Augmentation For Improving Generalization in Named Entity Recognition}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=glxo28NdD1AZ},
}
Figure