Learning In-context Learning for Named Entity Recognition
Abstract
Named entity recognition in real-world applications suffers from the diversity of entity types, the emergence of new entity types, and the lack of high-quality annotations. To address the above problems, this paper proposes an in-context learning-based NER approach, which can effectively inject in-context NER ability into PLMs and recognize entities of novel types on-the-fly using only a few demonstrative instances. Specifically, we model PLMs as a meta-function , and a new entity extractor can be implicitly constructed by applying new instruction and demonstrations to PLMs, i.e., (instruction, demonstrations) where will be a new entity extractor, i.e., : text entities. To inject the above in-context NER ability into PLMs, we propose a meta-function pre-training algorithm, which pre-trains PLMs by comparing the (instruction, demonstration)-initialized extractor with a surrogate golden extractor. Experimental results on 4 few-shot NER datasets show that our method can effectively inject in-context NER ability into PLMs and significantly outperforms the PLMs+fine-tuning counterparts.
Cite
@article{arxiv.2305.11038,
title = {Learning In-context Learning for Named Entity Recognition},
author = {Jiawei Chen and Yaojie Lu and Hongyu Lin and Jie Lou and Wei Jia and Dai Dai and Hua Wu and Boxi Cao and Xianpei Han and Le Sun},
journal= {arXiv preprint arXiv:2305.11038},
year = {2023}
}
Comments
Accepted to ACL 2023 Main Conference