Abstract
Building high-performing Named Entity Recognition (NER) systems typically requires massive amounts of human-labeled data, posing a significant challenge for niche domains or new applications. This paper presents a comprehensive study on "Few-Shot NER," demonstrating that by combining three orthogonal strategies—prototype-based meta-learning, noisy supervised pre-training on Wikipedia, and self-training on unlabeled data—models can achieve state-of-the-art performance with only a handful of examples.
Introduction
Named Entity Recognition (NER)—the task of identifying and categorizing entities like names, locations, or specialized codes in text—is a cornerstone of modern Natural Language Processing. While current Transformer-based models (such as BERT or RoBERTa) excel at this task, they are notoriously data-hungry. In real-world applications, practitioners often face a "cold start" problem: a new customer or a specialized domain (e.g., clinical narratives) might only provide 5 or 10 labeled examples. Annotating thousands more is often prohibitively expensive.
The authors address the challenge of Few-Shot NER by investigating three complementary strategies designed to improve model generalization when in-domain labeled data is extremely scarce.
Methodologies
The study explores three "orthogonal" approaches that address different aspects of the few-shot learning problem:
- Prototype-based Methods (Meta-Learning): Instead of utilizing a standard linear classifier head, the model learns to represent each entity type as a "prototype"—a mean vector in the embedding space. At inference, new tokens are classified based on their distance to these prototypes. This approach is particularly effective in "training-free" settings, allowing the model to identify new entity types without updating its underlying weights.
- Noisy Supervised Pre-training (NSP): Before fine-tuning on the target task, the model undergoes a "warm-up" phase on the WiNER dataset. This massive collection of Wikipedia text contains entities automatically (and noisily) labeled via web anchors and coreference links. This phase teaches the backbone network to distinguish entities from general text across 113 different types, providing a strong feature-extraction prior.
- Self-Training (ST): This semi-supervised approach leverages unlabeled in-domain data. A "teacher" model is first trained on the limited labeled set and then used to predict "soft labels" for a large pool of unlabeled text. A "student" model is subsequently trained on the combination of the original gold-standard labels and these new "silver" labels, effectively distilling knowledge from the unlabeled structure.
Experimental Evaluation
The authors conducted an extensive evaluation across 10 public NER datasets covering diverse domains, including general news (CoNLL 2003), social media (WNUT 2017), user reviews (MIT Movie/Restaurant), and medical records (I2B2).
Key Insights
- NSP as the Foundation: Noisy supervised pre-training on Wikipedia consistently provided the most significant performance boost. It endows the model with a robust prior for what constitutes an entity in context, preventing it from overfitting to the tiny few-shot training sets.
- The Power of Orthogonality: The three methods are complementary. NSP improves the feature extractor, Prototypes refine the classification logic for rare or new classes, and Self-Training leverages the hidden structure of unlabeled data. Their combination consistently yields the best results.
- Zero-Shot Potential: While linear classifiers are competitive when more data is available, prototype methods demonstrate a clear advantage in extremely low-shot (e.g., 5-shot) or training-free scenarios.
Results and Discussion
The proposed combined approach (Linear Classifier + NSP + ST) established a new state-of-the-art for few-shot NER. It outperformed previous specialized methods like StructShot by up to 8% in F1-score on several benchmarks. In the challenging 5-shot setting, the model achieved an average F1-score of 0.585 across all datasets, a massive leap from the baseline RoBERTa model's 0.502.
Despite these successes, limitations remain. The token-level approach struggles with long entity spans (e.g., movie quotes), suggesting that future work should explore span-based methods. Additionally, the success of self-training is sensitive to the quality of the teacher's predictions; future research could investigate more sophisticated noise-filtering techniques to further refine the distillation process.
Summary updated