Skip to main content
QUICK REVIEW

[Paper Review] Prompt-based Text Entailment for Low-Resource Named Entity Recognition

Dongfang Li, Baotian Hu|arXiv (Cornell University)|Nov 6, 2022
Topic ModelingComputer Science6 citations
TL;DR

This paper proposes Prompt-based Text Entailment (PTE), a novel method that reformulates low-resource Named Entity Recognition (NER) as a text entailment task using pre-trained language models (PLMs). By treating entity type-specific prompts as hypotheses and the input sentence as a premise, PTE leverages PLM knowledge without fine-tuning, achieving state-of-the-art performance on MIT Movie and Few-NERD datasets with fewer than 50 labeled examples per entity type.

ABSTRACT

Pre-trained Language Models (PLMs) have been applied in NLP tasks and achieve promising results. Nevertheless, the fine-tuning procedure needs labeled data of the target domain, making it difficult to learn in low-resource and non-trivial labeled scenarios. To address these challenges, we propose Prompt-based Text Entailment (PTE) for low-resource named entity recognition, which better leverages knowledge in the PLMs. We first reformulate named entity recognition as the text entailment task. The original sentence with entity type-specific prompts is fed into PLMs to get entailment scores for each candidate. The entity type with the top score is then selected as final label. Then, we inject tagging labels into prompts and treat words as basic units instead of n-gram spans to reduce time complexity in generating candidates by n-grams enumeration. Experimental results demonstrate that the proposed method PTE achieves competitive performance on the CoNLL03 dataset, and better than fine-tuned counterparts on the MIT Movie and Few-NERD dataset in low-resource settings.

Motivation & Objective

  • Address the challenge of training accurate NER models in low-resource settings where labeled data is scarce.
  • Overcome the limitations of fine-tuning, which requires substantial labeled data and suffers from high variance in low-resource scenarios.
  • Leverage pre-trained language models more effectively by reformulating NER as a text entailment task to transfer knowledge across domains.
  • Develop a unified inference framework that works across different domains without requiring full sequence annotations.
  • Enable effective few-shot and zero-shot NER by using prompt-based learning with minimal supervision.

Proposed method

  • Reformulate NER as a text entailment task: the input sentence is the premise, and entity type-specific prompts are the hypotheses.
  • Use PLMs to compute entailment scores for each candidate entity type at each token position, selecting the highest-scoring type as the final label.
  • Inject tagging labels into prompts and treat individual words as basic units instead of n-gram spans to reduce computational complexity.
  • Employ both discrete and soft prompt tuning strategies to improve performance, especially in low-resource settings.
  • Utilize generic text entailment datasets (e.g., SNLI, MNLI) for pre-training to enhance generalization to low-resource domains.
  • Apply prompt-based learning without an additional classification layer, avoiding the need for fine-tuning on downstream NER tasks.

Experimental results

Research questions

  • RQ1Can reformulating NER as a text entailment task improve performance in low-resource settings?
  • RQ2How does prompt-based text entailment compare to standard fine-tuning when only a few labeled examples are available?
  • RQ3What is the impact of prompt design, including label conditioning and soft vs. discrete prompting, on low-resource NER performance?
  • RQ4Can knowledge from general-purpose text entailment datasets improve few-shot NER without domain-specific fine-tuning?
  • RQ5Does the entailment-based approach better preserve lexical and semantic coherence compared to standard token-wise prediction in NER?

Key findings

  • PTE achieves competitive F1 scores on the CoNLL03 dataset, which serves as a rich-resource benchmark.
  • On the MIT Movie dataset, PTE outperforms fine-tuned BERT models by a large margin, especially with fewer than 50 labeled examples per entity type.
  • On the Few-NERD dataset, PTE with soft prompting achieves an F1 score of 67.4 with 500 shots, significantly outperforming the next best method (66.8) and showing consistent gains in low-shot settings.
  • The soft prompting variant consistently outperforms the discrete variant, particularly in low-resource regimes, indicating the benefit of continuous prompt optimization.
  • Ablation studies show that negative examples—especially for the null label—are critical for performance, and their impact is more pronounced in low-resource scenarios.
  • Label conditioning and soft prompting consistently improve model performance, highlighting their importance in effective prompt-based knowledge transfer for NER.

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.