Adaptive Name Entity Recognition under Highly Unbalanced Data

Nguyen Ho Minh Duy, Thong Nguyen, Duy Nguyen, Pramod RaoarXiv 2020

Abstract

Named Entity Recognition (NER) performance often degrades significantly when faced with highly imbalanced datasets. This paper introduces a "divide and conquer" architecture designed to address the "long tail" of entity classes. By utilizing a binary classifier to identify sentences likely to contain rare entities and routing them to specialized models, the proposed method achieves substantial performance gains—over 50% improvement in F1 scores for minority classes—without compromising the accuracy of majority classes.

The Challenge of Imbalanced Data

Named Entity Recognition is a foundational task in NLP, yet real-world data is frequently "long-tailed." In many standard datasets, a few "Strong" classes (e.g., Geopolitical entities or Dates) appear thousands of times, while "Weak" classes (e.g., Artifacts or Natural Phenomena) appear only a handful of times. Standard neural architectures, including BERT, tend to develop a bias toward majority classes, often failing to recognize rare entities entirely. The authors aim to bridge this performance gap without requiring extensive new annotated data.

Proposed Adaptive Framework

The authors propose an adaptive framework that moves away from a "one-size-fits-all" model in favor of a specialized pipeline consisting of three main components:

  1. Binary Sentence Classifier (RNN-CNN): A preliminary model scans the entire sentence to determine if it contains any "Weak" classes (Art, Eve, or Nat). To combat imbalance at this stage, the authors employed a Weighted Binary Cross Entropy Loss, which penalizes the model more heavily for missing a rare class than for misidentifying a common one.
  2. Specialized Tagging Models:
    • A Strong Classifier (Bi-LSTM-CRF) trained specifically on majority classes.
  3. A Weak Classifier (Bi-LSTM-CRF) optimized for minority classes.
  4. Majority Voting/Merging: If the binary classifier flags a sentence as "Weak," the outputs of both specialized models are merged using a probability-based voting scheme to produce the final tags.
The proposed adaptive framework architecture featuring binary classification and specialized tagging models.

Experimental Setup and Datasets

The study utilized a corpus annotated with eight entity types categorized by frequency:

  • Strong Classes: Geo (Geographical), Gpe (Geopolitical), Tim (Time), Org (Organization), Per (Person).
  • Weak Classes: Art (Artifact), Eve (Event), Nat (Natural phenomena).

The imbalance was extreme: Strong classes had roughly 50 times more samples than Weak classes. For instance, there were over 37,000 "Geo" annotations compared to only 201 for "Nat."

Key Results

The adaptive method (referred to as "Our Method 5," utilizing BERT-FF) consistently outperformed standard baselines across multiple metrics:

  • Macro F1 Score: Improved to 0.67, compared to 0.55 for a standard Bi-LSTM-CRF and 0.64 for a standard BERT-FF.
  • Weak Class Gains: The improvement for rare classes was dramatic. For the "Art" (Artifact) category, the F1 score jumped from 0.17 (standard BERT) to 0.34. For "Eve" (Event), it rose from 0.30 to 0.37.
  • Consistency: The method improved rare class detection without degrading the performance of majority classes, maintaining high F1 scores (0.88–0.96) for categories like Time and Geopolitical entities.
Comparison of F1 scores across entity classes for various baseline and proposed methods.

Insights and Future Directions

The success of the framework highlights several key insights. First, simple data relabeling (masking) is insufficient; models require the context of all classes but need a specialized "nudge" to prioritize rare signals. Second, identifying sentence-level context via the RNN-CNN effectively changes the model's "mindset" before token tagging begins, reducing search space and majority bias.

Future work will focus on making the model more robust to noisy or incorrect annotations, which have a disproportionately negative impact on weak class learning, and exploring joint training of the classification and tagging components to further optimize performance.

Summary updated

BibTeX
@misc{duy2020adaptive,
  author = {Nguyen Ho Minh Duy and Thong Nguyen and Duy Nguyen and Pramod Rao},
  title = {{Adaptive Name Entity Recognition under Highly Unbalanced Data}},
  year = {2020},
  eprint = {2003.10296},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.10296},
}
Figure