Skip to main content
QUICK REVIEW

[Paper Review] QaNER: Prompting Question Answering Models for Few-shot Named Entity Recognition

Andy T. Liu, Wei Xiao|arXiv (Cornell University)|Mar 3, 2022
Topic ModelingComputer Science27 citations
TL;DR

QaNER reframes NER as extractive QA and prompts QA models to achieve state-of-the-art few-shot and zero-shot NER performance, with robustness to prompts and dev-set size and faster inference than prior prompt-based methods.

ABSTRACT

Recently, prompt-based learning for pre-trained language models has succeeded in few-shot Named Entity Recognition (NER) by exploiting prompts as task guidance to increase label efficiency. However, previous prompt-based methods for few-shot NER have limitations such as a higher computational complexity, poor zero-shot ability, requiring manual prompt engineering, or lack of prompt robustness. In this work, we address these shortcomings by proposing a new prompt-based learning NER method with Question Answering (QA), called QaNER. Our approach includes 1) a refined strategy for converting NER problems into the QA formulation; 2) NER prompt generation for QA models; 3) prompt-based tuning with QA models on a few annotated NER examples; 4) zero-shot NER by prompting the QA model. Comparing the proposed approach with previous methods, QaNER is faster at inference, insensitive to the prompt quality, and robust to hyper-parameters, as well as demonstrating significantly better low-resource performance and zero-shot capability.

Motivation & Objective

  • Motivate practical few-shot Named Entity Recognition (NER) in low-resource domains and languages.
  • Improve label efficiency by reformulating NER as a QA task using prompts.
  • Develop prompt generation and tuning strategies that are robust to prompt choice and development set size.
  • Demonstrate strong zero-shot and few-shot performance on standard NER datasets.
  • Provide analysis of robustness, efficiency, and knowledge transfer from QA models.

Proposed method

  • Convert NER problems into extractive QA format using question prompts for each entity type.
  • Use off-the-shelf BERT-based QA models to predict entity spans as QA answers in context.
  • Generate prompts for each entity type, including handcrafted and automatic prompts via a masked language model.
  • Incorporate positive (answerable) and negative (unanswerable) QA examples to train the QA model.
  • Allow repeating examples to capture multiple occurrences of the same entity type in a context and use n-best decoding to extract all relevant spans.
  • Compare QaNER against prior prompt-based NER methods in terms of complexity, robustness, and low-resource performance.

Experimental results

Research questions

  • RQ1Can a QA-based prompt approach improve few-shot NER performance compared to traditional sequence labeling and prior prompt-based methods?
  • RQ2Does converting NER to QA with prompts enable robust zero-shot and low-resource transfer across domains?
  • RQ3How do prompt design, development-set size, and negative examples affect QaNER performance?
  • RQ4What is the computational efficiency of QaNER relative to existing prompt-based NER methods?

Key findings

  • QaNER achieves stronger zero-shot performance than prior prompt-based NER methods by leveraging QA knowledge transfer.
  • In few-shot settings (10–50 examples per entity type), QaNER maintains a noticeable performance advantage, especially on more complex datasets with many entity types.
  • QaNER shows robustness to prompt design, with both handcrafted and generated prompts performing well and five-Ws question templates being particularly effective.
  • Using negative examples and repeating occurrences substantially improves performance, whereas SQuAD 2.0 benefits depend on negative training.
  • QaNER is computationally efficient; its complexity scales with the number of entity types rather than input length, improving inference speed over some prior methods.

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.