Skip to main content
QUICK REVIEW

[Paper Review] Template-free Prompt Tuning for Few-shot NER

Ruotian Ma, Xin Zhou|arXiv (Cornell University)|Sep 28, 2021
Topic ModelingComputer Science27 citations
TL;DR

This paper presents EntLM, a template-free prompt-tuning approach that reformulates NER as an Entity-oriented LM task, enabling efficient one-pass decoding and improved few-shot performance without adding new parameters.

ABSTRACT

Prompt-based methods have been successfully applied in sentence-level few-shot learning tasks, mostly owing to the sophisticated design of templates and label words. However, when applied to token-level labeling tasks such as NER, it would be time-consuming to enumerate the template queries over all potential entity spans. In this work, we propose a more elegant method to reformulate NER tasks as LM problems without any templates. Specifically, we discard the template construction process while maintaining the word prediction paradigm of pre-training models to predict a class-related pivot word (or label word) at the entity position. Meanwhile, we also explore principled ways to automatically search for appropriate label words that the pre-trained models can easily adapt to. While avoiding complicated template-based process, the proposed LM objective also reduces the gap between different objectives used in pre-training and fine-tuning, thus it can better benefit the few-shot performance. Experimental results demonstrate the effectiveness of the proposed method over bert-tagger and template-based method under few-shot setting. Moreover, the decoding speed of the proposed method is up to 1930.12 times faster than the template-based method.

Motivation & Objective

  • Motivate improved few-shot NER when template templates are costly to search and span enumeration is prohibitive.
  • Propose Entity-oriented LM (EntLM) fine-tuning to predict label words at entity positions without templates.
  • Investigate label word engineering methods to identify suitable discrete or virtual label words.
  • Show that EntLM reduces the gap between pre-training and fine-tuning, enhancing few-shot performance.

Proposed method

  • Formulate NER as an LM task by replacing entity tokens with class-related label words via an EntLM objective.
  • Reuse the pre-trained LM head; no new parameters are introduced during fine-tuning.
  • Develop label word engineering methods including discrete words and virtual prototypes.
  • Explore data distribution, LM output distribution, or their combination for label word selection; optionally use lexicon-derived annotations.
  • Allow one-pass decoding to obtain all entity labels without span enumeration.
  • Optionally apply a Viterbi decoder to further boost performance when combined with Struct-based decoding.

Experimental results

Research questions

  • RQ1Can NER be effectively reformulated as an LM objective without templates for few-shot scenarios?
  • RQ2What label word strategies (discrete vs. virtual; data-driven vs. LM-driven) best support EntLM in low-resource settings?
  • RQ3How does EntLM compare to template-based prompt methods and standard fine-tuning under few-shot regimes?
  • RQ4Does EntLM maintain efficient decoding compared to template-based approaches?
  • RQ5What is the impact of lexicon quality and domain-adaptive pre-training on EntLM performance?

Key findings

  • EntLM outperforms BERT-tagger and template-based NER across CoNLL03, OntoNotes 5.0, and MIT-Movie in all few-shot settings.
  • EntLM achieves higher stability (lower deviation) than baselines, especially at 5-shot.
  • Decoding with EntLM is significantly faster than template-based methods (up to 1930.12x).
  • Label word engineering via combined Data+LM+Virtual strategies provides robust performance even with small lexicons.
  • Further domain-specific MLM pre-training on unlabeled data substantially boosts EntLM performance, more so than for classifier-based fine-tuning.

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.