NuNER: Entity Recognition Encoder Pre-training via LLM-Annotated Data
Sergei Bogdanov, Alexandre Constantin, Timothée Bernard, Benoit Crabbé, Etienne Bernard
TL;DR
The paper tackles data efficiency in NER by creating NuNER, a compact encoder trained on a large multi-domain NER dataset annotated by an LLM. Using a two-encoder contrastive pre-training objective, NuNER learns a text representation aligned with a diverse set of concepts, enabling strong few-shot transfer to downstream NER tasks. Key findings show that concept diversity and dataset size drive performance, while text diversity has limited impact when annotations come from LLMs, with NuNER achieving competitive results against much larger LLMs. The work opens access to open-source NuNER and an LLM-annotated NER dataset, supporting cost-effective, data-efficient development of task-specific foundation models for NER.
Abstract
Large Language Models (LLMs) have shown impressive abilities in data annotation, opening the way for new approaches to solve classic NLP problems. In this paper, we show how to use LLMs to create NuNER, a compact language representation model specialized in the Named Entity Recognition (NER) task. NuNER can be fine-tuned to solve downstream NER problems in a data-efficient way, outperforming similar-sized foundation models in the few-shot regime and competing with much larger LLMs. We find that the size and entity-type diversity of the pre-training dataset are key to achieving good performance. We view NuNER as a member of the broader family of task-specific foundation models, recently unlocked by LLMs.
