Data Augmentation for Cross-Domain Named Entity Recognition

Shuguang Chen, Gustavo Aguilar, Leonardo Neves, Thamar Solorio

TL;DR

This paper introduces a novel cross-domain data augmentation framework for Named Entity Recognition (NER) that transforms high-resource domain data into the style of low-resource domains. By leveraging a cross-domain autoencoder with adversarial training, the authors significantly boost NER performance in data-scarce scenarios, particularly when the source and target domains have distinct linguistic patterns.

What Problem Does This Paper Address?

Named Entity Recognition (NER) models have reached impressive heights thanks to pre-trained language models like BERT. However, these models are notoriously data-hungry. When moved from a high-resource domain (like formal Newswire) to a low-resource or rapidly changing domain (like Social Media), performance often plummets due to "domain shift."

Annotating new data is expensive and requires expert knowledge. While data augmentation exists, most current methods are "in-domain"—they modify words within the same dataset (e.g., synonym replacement). These can inadvertently break entity labels. This paper tackles the challenge of cross-domain augmentation: how can we leverage the vast amount of labeled data in one domain to help a model perform better in a completely different, data-poor domain?

Methods

The authors propose a Cross-domain Autoencoder designed to learn a shared feature space where semantics are aligned, but domain-specific styles (noise, abbreviations, formal vs. informal) are captured and transferable.

Key components include:

  • Sentence Linearization: To ensure the model learns the relationship between words and entities, they insert BIO labels directly into the text (e.g., [B-PER] John [O] went...).
  • Denoising Reconstruction: The model learns to reconstruct a sentence from a noisy version (using shuffle, dropout, or mask operations) within its own domain. This forces the encoder to capture the underlying textual patterns.
  • Detransforming Reconstruction: This is the "aha" step. The model maps a source sentence to a target domain representation, then attempts to reconstruct it back to the source domain's semantics but using the target's style.
  • Adversarial Training: A discriminator ($D_X$) is trained to distinguish which domain a latent vector belongs to. The encoder is simultaneously trained to "fool" the discriminator, ensuring that the latent representations for both domains are mapped to the same shared space.
The general architecture of the proposed method, showing denoising and detransforming phases.

Datasets

The researchers evaluated their approach using two primary sources covering six English domains:

  1. Ontonotes 5.0: Includes Broadcast Conversation (BC), Broadcast News (BN), Magazine (MZ), Newswire (NW), and Web Data (WB).
  2. Temporal Twitter Dataset: Representing the Social Media (SM) domain, featuring tweets from 2014 to 2019.

These datasets include 18 standard entity tags, such as PERSON, ORG, GPE, and DATE.

Key Insights and Ideas

  • Style vs. Semantics: The core hypothesis is that while textual patterns (style, noise) vary wildly across domains, the underlying semantics are transferable.
  • Dissimilarity is an Advantage: Counter-intuitively, the method provides the biggest gains when the source and target domains are dissimilar (e.g., Newswire $\rightarrow$ Social Media). If domains are already similar, the model doesn't learn much new "style," and the benefit is marginal.
  • Linearization Prevents Label Corruption: By treating labels as part of the sequence, the autoencoder learns the joint distribution of words and their entity types, avoiding the common pitfall of traditional augmentation where replacing a word might make a label nonsensical.

Key Results

The results demonstrate that transforming data to the target domain's representation is far more effective than simply using source domain data.

  • Massive F1 Gains: In the SM $\rightarrow$ BN (Social Media to Broadcast News) task, the method improved the F1 score by 18.93% over the source-only baseline.
  • Outperforming Traditional Methods: The proposed "Domain Mapping" consistently beat traditional augmentation techniques like synonym replacement, word swapping, and even recent generative approaches like DAGA.
  • Efficiency with Minimal Data: As shown in Figure 3, even when the model only has access to 5% of the target domain's training data, the cross-domain augmentation provides a significant performance boost over the baseline.
F1 scores across different amounts of target data and increasing amounts of augmented data.

Limitations and Future Work

The authors acknowledge a few hurdles:

  • Fixed Sequence Lengths: Currently, the generated sequences are constrained to the length of the input. In reality, a formal news sentence might be much longer than its social media equivalent.
  • Unparalleled Datasets: Because the source and target datasets are not parallel (i.e., they aren't translations of each other), there is no ground truth to directly measure the quality of the "style transformation."
  • Future Directions: The team plans to explore stronger latent space alignment, strategies to control the quality of generated sequences, and generalizing this method to other NLP tasks like text classification.

Summary updated

BibTeX
@inproceedings{chen2021data,
  author = {Shuguang Chen and Gustavo Aguilar and Leonardo Neves and Thamar Solorio},
  title = {{Data Augmentation for Cross-Domain Named Entity Recognition}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.434},
}
Figure