Formulating Few-shot Fine-tuning Towards Language Model Pre-training: A Pilot Study on Named Entity Recognition

Zihan Wang, Kewen Zhao, Zilong Wang, Jingbo Shang
5/24/2022
cs.CLcs.AI

Official code: ZihanWangKi/fffner (6 stars, Python, last commit 2022-10-28).

Abstract

Fine-tuning pre-trained language models has recently become a common practice in building NLP models for various tasks, especially few-shot tasks. We argue that under the few-shot setting, formulating fine-tuning closer to the pre-training objectives shall be able to unleash more benefits from the pre-trained language models.

Show full abstract

In this work, we take few-shot named entity recognition (NER) for a pilot study, where existing fine-tuning strategies are much different from pre-training. We propose a novel few-shot fine-tuning framework for NER, FFF-NER. Specifically, we introduce three new types of tokens, "is-entity", "which-type" and bracket, so we can formulate the NER fine-tuning as (masked) token prediction or generation, depending on the choice of pre-trained language models. In our experiments, we apply FFF-NER to fine-tune both BERT and BART for few-shot NER on several benchmark datasets and observe significant improvements over existing fine-tuning strategies, including sequence labeling, prototype meta-learning, and prompt-based approaches. We further perform a series of ablation studies, showing few-shot NER performance is strongly correlated with the similarity between fine-tuning and pre-training.

View on arXivView PDF

Code Implementations(1)

ZihanWangKi/fffnerOfficial100%

Formulating Few-shot Fine-tuning Towards Language Model Pre-training: A Pilot Study on Named Entity Recognition

60Python, ShellMay 17, 20224 years ago

Similar Papers

Cite this paper

@article{wang2022formulating,
  title  = {Formulating Few-shot Fine-tuning Towards Language Model Pre-training: A Pilot Study on Named Entity Recognition},
  author = {Zihan Wang and Kewen Zhao and Zilong Wang and Jingbo Shang},
  year   = {2022},
  eprint = {2205.11799},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.11799}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.11799.svg)](https://codeofpaper.com/paper/2205.11799)

Discussion