Skip to main content
QUICK REVIEW

[Paper Review] Simple and Effective Few-Shot Named Entity Recognition with Structured Nearest Neighbor Learning

Yi Yang, Arzoo Katiyar|arXiv (Cornell University)|Oct 6, 2020
Topic ModelingComputer Science20 references14 citations
TL;DR

This paper proposes StructShot, a simple few-shot NER system that uses a supervised NER model to extract contextual representations and applies nearest neighbor classification in the feature space, combined with Viterbi decoding to model label dependencies. It achieves state-of-the-art performance, improving F1 scores by 6% to 16% absolute points over meta-learning baselines on few-shot NER benchmarks.

ABSTRACT

We present a simple few-shot named entity recognition (NER) system based on nearest neighbor learning and structured inference. Our system uses a supervised NER model trained on the source domain, as a feature extractor. Across several test domains, we show that a nearest neighbor classifier in this feature-space is far more effective than the standard meta-learning approaches. We further propose a cheap but effective method to capture the label dependencies between entity tags without expensive CRF training. We show that our method of combining structured decoding with nearest neighbor learning achieves state-of-the-art performance on standard few-shot NER evaluation tasks, improving F1 scores by $6\%$ to $16\%$ absolute points over prior meta-learning based systems.

Motivation & Objective

  • To address the limitations of meta-learning approaches in few-shot NER, particularly in handling the O (outside) class and modeling label dependencies.
  • To develop a simple, effective few-shot NER system that does not require meta-training or episode-based learning.
  • To propose a standardized evaluation setup for few-shot NER using standard development and test sets from benchmark datasets.
  • To improve zero-shot and few-shot generalization by leveraging instance-level representations instead of class-level prototypes.
  • To demonstrate that nearest neighbor classification in a deep feature space is more effective than prototypical networks for NER, especially for the O class.

Proposed method

  • The system uses a pre-trained supervised NER model (e.g., BERT) fine-tuned on a source domain to extract contextual token representations.
  • During inference, each test token is classified by finding its nearest neighbor in the support set based on cosine similarity in the contextual representation space.
  • Label dependencies are modeled using a Viterbi decoder applied to the nearest neighbor predictions, ensuring globally consistent sequence labeling.
  • The method avoids learning class prototypes and instead treats each support example as a representative instance, which better captures semantic diversity within the O class.
  • The approach is applied in both in-domain and out-of-domain few-shot NER settings with one- and five-shot examples.
  • A standardized evaluation protocol is introduced, where support sets are sampled from standard development sets and models are evaluated on standard test sets.

Experimental results

Research questions

  • RQ1Can nearest neighbor classification in a deep feature space outperform meta-learning methods in few-shot NER?
  • RQ2Why do existing meta-learning approaches struggle with the O class in few-shot NER?
  • RQ3Can structured decoding improve the performance of instance-based classification in sequence labeling tasks?
  • RQ4Is it possible to achieve state-of-the-art few-shot NER performance without meta-training or episode-based adaptation?
  • RQ5How does the performance of nearest neighbor learning compare to prototypical networks when the O class is semantically heterogeneous?

Key findings

  • StructShot improves F1 scores by 6% to 16% absolute points over prior meta-learning-based few-shot NER systems on standard benchmarks.
  • The nearest neighbor classifier significantly outperforms prototypical networks in predicting the O class, as it avoids learning a noisy, unified prototype for semantically diverse O tokens.
  • On the I2B2 and WNUT datasets, StructShot achieves 66.1 F1 for DATE and 57.8 F1 for person in five-shot settings, outperforming previous methods.
  • The system struggles with highly ambiguous classes such as AGE, MED-REC, and IDNUM, which are all numeric, indicating a need for domain-specific cues.
  • Performance drops for classes like PATIENT and DOCTOR, where misclassification occurs due to overlapping semantic cues, suggesting that surface forms like 'Dr.' could improve disambiguation.
  • The method generalizes well across domains, showing strong performance in both in-domain and out-of-domain few-shot NER transfer settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.