Type-Aware Decomposed Framework for Few-Shot Named Entity Recognition

Yongqi Li, Yu Yu, Tieyun Qian

Abstract

Few-shot Named Entity Recognition (NER) often struggles with "hallucinated" entity spans and unstable classification prototypes derived from limited examples. This paper introduces TadNER (Type-Aware Decomposed NER), a framework that treats entity type names (e.g., "Person," "Location") as semantic anchors. By utilizing these names to filter false-positive detections and guide the creation of robust prototypes through a novel type-aware contrastive learning strategy, TadNER achieves significant performance gains over existing state-of-the-art methods.

What Problem Does This Paper Address?

Named Entity Recognition (NER) typically involves two steps: span detection (identifying boundaries) and type classification (categorizing the entity). In few-shot settings (1–5 labeled examples), current decomposed models face two primary hurdles:

  1. Over-detection: Span detectors trained on source domains often flag irrelevant spans in target domains. For instance, a model might flag "1976" as an entity even if the target domain does not require date extraction.
  2. Prototype Instability: Models often classify entities by comparing them to a "prototype" (the average vector of support samples). If these few samples are outliers, the prototype drifts, leading to misclassification.
Illustration of over-detected false spans and the effect of type-aware filtering.

Methods

TadNER injects semantic knowledge about entity types into both stages of the NER pipeline to address these issues.

1. Type-Aware Span Filtering (TASF)

During inference, TadNER performs a semantic "sanity check." It calculates the distance between a detected span and the target entity type names. If a span is semantically distant from all valid type names, it is discarded as a false positive.

2. Type-Aware Contrastive Learning (TACL)

To stabilize the feature space, TadNER employs contrastive learning during source domain training. It concatenates entity tokens with their type names in varying orders (e.g., [Entity, Type] and [Type, Entity]). Forcing the model to minimize the distance between these pairs ensures that mentions and their semantic labels are tightly clustered in the representation space.

3. Type-Aware Prototype Construction

When classifying new entities, TadNER constructs prototypes by concatenating the representation of the type name itself with the average representation of the support samples. This "anchors" the prototype to the actual linguistic meaning of the category.

The complete TadNER framework showing (a) Source Domain Training with TACL and (b) Target Domain Inference with TASF and prototype anchoring.

Key Insights and Ideas

  • Labels as Semantic Data: Instead of treating labels like "LOC" as arbitrary indices, TadNER leverages the pre-trained knowledge within BERT to understand what a "Location" should look like.
  • Filtering as a Bridge: By using type names as a filter between detection and classification, the model effectively prunes the search space, reducing the burden on the classifier.
  • Stability through Anchoring: Incorporating the type name into the prototype significantly reduces performance variance caused by random support data sampling.

Key Results

TadNER established a new state-of-the-art (SOTA) across multiple benchmarks:

  • Few-NERD: Achieved an average 8.2% absolute increase in F1 score in the "Intra" setting compared to previous models like DecomposedMetaNER.
  • Domain Transfer: In 1-shot settings, it outperformed baselines by 10.5% F1 across diverse datasets (Medical, News, Social Media).
  • Zero-Shot Potential: The model performs remarkably well even with zero support samples by relying on the semantics of type names, outperforming existing zero-shot models like SpanNER.

Limitations and Future Work

The authors note that TadNER still relies on a standard token-classification-based span detector; if the detector misses an entity entirely (a false negative), the filtering stage cannot recover it. Future work will explore extending this type-aware decomposition to other tasks like relation extraction and event detection, as well as optimizing for lower memory requirements.

Summary updated

BibTeX
@inproceedings{li2023type,
  author = {Yongqi Li and Yu Yu and Tieyun Qian},
  title = {{Type-Aware Decomposed Framework for Few-Shot Named Entity Recognition}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.598},
}
Figure