Rethinking Negative Sampling for Handling Missing Entity Annotations

Yangming Li, Lemao Liu, Shuming Shi

Abstract

Named Entity Recognition (NER) performance often suffers in real-world scenarios where training data contains missing or incomplete annotations. This paper investigates the efficacy of negative sampling in mitigating the "unlabeled entity problem." We demonstrate that natural entity sparsity provides a theoretical safety net for uniform sampling and propose an adaptive, weighted sampling strategy. Our method prioritizes "hard" negatives—spans with high model uncertainty—to improve both performance and convergence speed, achieving state-of-the-art results on multiple benchmarks.

Introduction: The Unlabeled Entity Problem

In ideal NER training, every entity is accurately labeled. However, practical datasets—especially those generated via weak or distant supervision—are often "noisy," with many entities left untagged. When a model treats these unlabeled entities as negative examples (the "Outside" or "O" tag), it receives conflicting signals that degrade performance.

Recent studies have shown that "negative sampling"—training on only a small subset of untagged spans—is surprisingly effective. This paper explores the theoretical underpinnings of this success and introduces an optimized sampling approach.

Methods: Beyond Uniform Sampling

The core challenge in negative sampling is balancing the risk of "missampling" (accidentally treating a hidden entity as a negative) against the need for informative training signals.

The negative sampling process for NER with missing annotations.

The Theoretical "Aha!" Moment: Entity Sparsity

The authors prove Theorem 1, establishing a lower bound for the probability of a "clean" sample. This proof relies on the observation of Entity Sparsity: in natural language, the number of entities ($m$) grows much slower than the total number of possible spans ($n$). Specifically, $m$ typically follows the square root of sentence length ($\sqrt{n}$).

Entity sparsity across CoNLL-2003 and OntoNotes 5.0 datasets.

This sparsity acts as a statistical shield; when sampling spans at random, the probability of hitting a missing entity is low enough to allow the model to learn effectively.

Adaptive Weighted Sampling

While uniform sampling works due to sparsity, it is inefficient because it often selects "easy" negatives that provide little new information. The authors propose an Adaptive Weighted Sampling strategy:

  1. Scoring Spans: Each potential negative span is assigned a score based on current model uncertainty and the likelihood it is a true negative.
  2. Prioritizing Hard Negatives: The system selects spans the model is currently confused about but are unlikely to be hidden entities.
  3. Dynamic Adaptation: The sampling distribution evolves during training using a "temperature" parameter that cools as the model gains confidence.

Experimental Results

The researchers evaluated the proposed method on synthetic datasets (CoNLL-2003 and OntoNotes 5.0 with 50-90% masked labels) and real-world distantly supervised datasets (EC and NEWS).

  • Performance Gains: On CoNLL-2003 with 90% missing labels, the weighted variant outperformed vanilla negative sampling by nearly 9 F1 points.
  • State-of-the-Art: The model set new SOTA benchmarks on the EC and NEWS datasets, surpassing established methods like Partial CRFs.
  • Efficiency: The adaptive approach demonstrated significantly faster convergence, reaching peak performance in fewer epochs than uniform sampling.
  • General Utility: Even on fully annotated datasets, the method provided a 0.28% F1 boost, indicating that better negative sampling benefits NER broadly.

Conclusion

This work rethinks negative sampling by grounding its success in the mathematical reality of entity sparsity. By moving from uniform to adaptive weighted sampling, we can significantly improve NER robustness to missing labels, offering a powerful tool for training on noisy, real-world data.

Summary updated

BibTeX
@inproceedings{li2022rethinking,
  author = {Yangming Li and Lemao Liu and Shuming Shi},
  title = {{Rethinking Negative Sampling for Handling Missing Entity Annotations}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.497},
}
Figure