Learning from Language Description: Low-shot Named Entity Recognition via Decomposed Framework

Yaqing Wang, Haoda Chu, Chao Zhang, Jing Gao

Introduction

Traditional Named Entity Recognition (NER) systems—responsible for identifying and categorizing text spans like people, places, or organizations—typically require extensive human-labeled datasets. This "data hunger" creates a significant barrier for niche domains like legal or medical texts. Existing low-shot approaches often rely on one-hot labels or prototypes, which suffer from semantic blindness and struggle with diverse categories like "Miscellaneous" (MISC).

The SpanNER Framework

To address these limitations, this paper introduces SpanNER, a framework that decomposes NER into two distinct, manageable steps: class-agnostic span detection and description-based class inference.

The SpanNER framework decomposes NER into span detection and entity class inference using natural language descriptions.

Methodology

  1. Span Detection: A class-agnostic module identifies potential entity boundaries without considering the entity type. To mitigate class imbalance (where most spans are not entities), a token sampling mechanism balances positive and negative examples during training.
  2. Entity Class Inference: Once a span is identified, the model utilizes natural language descriptions of entity classes (e.g., from Wikipedia or annotation guidelines). A Multi-head Attention mechanism allows the detected span (query) to interact with the class description (key/value), enabling the model to focus on relevant parts of the definition. The final step is a binary matching prediction: "Does this span match this description?"

Experimental Setup

The framework was evaluated across five benchmark datasets: CoNLL03 (News), OntoNotes5 (General), WNUT 2017 (Social Media), and MIT Movie/Restaurant (Voice Assistant queries). These datasets represent a wide range of domains and entity class counts.

Key Results

SpanNER significantly outperforms state-of-the-art baselines, particularly in low-resource settings. By treating natural language descriptions as a rich supervision signal, the model generalizes effectively to unseen entity types.

Performance comparison of SpanNER against baselines under full and 5-shot supervision across multiple datasets.
  • Few-shot Performance: In 5-shot scenarios, SpanNER achieved a 9.9% average improvement in F1 score over baselines like BERT-BIO and MRC-NER.
  • Domain Transfer: When trained on news and tested on specialized domains, performance improved by 23.2%.
  • Zero-shot Capabilities: In recognizing entirely unseen classes, SpanNER outperformed the best baseline by 26%.

Discussion and Limitations

The decomposition of the NER task prevents error propagation and allows the model to learn the general "shape" of entities independently of their categories. However, challenges remain, such as annotation inconsistencies across datasets (label shift) and the difficulty of span detection in noisy social media text (WNUT). Future work may explore more complex external knowledge integration and handling nested entities.

Summary updated

BibTeX
@inproceedings{wang2021learning,
  author = {Yaqing Wang and Haoda Chu and Chao Zhang and Jing Gao},
  title = {{Learning from Language Description: Low-shot Named Entity Recognition via Decomposed Framework}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.139},
}
Figure