Abstract
Standard pre-trained language models (PLMs) like BERT often underperform in low-resource Named Entity Recognition (NER) tasks due to the objective mismatch between masked language modeling (MLM) and sequence labeling. We present NER-BERT, a model pre-trained on a massive, unified NER corpus of 16 million sentences derived from Wikipedia and DBpedia. NER-BERT significantly outperforms standard BERT and domain-adaptive baselines across nine diverse domains, particularly in few-shot scenarios.
Introduction
Named Entity Recognition (NER) typically necessitates extensive human-annotated data to achieve high performance. While BERT has provided a strong foundation for many NLP tasks, its primary pre-training objective—predicting missing words—does not align perfectly with the structural requirements of sequence labeling. Furthermore, existing NER datasets are often too small or utilize inconsistent taxonomies, making joint training across domains difficult. NER-BERT addresses these challenges by introducing a large-scale, task-specific pre-training phase.
Methodology
The authors developed a high-quality, unified pre-training corpus using a multi-step automated process:
- Corpus Construction: Sentences were extracted from Wikipedia, utilizing hyperlinks to identify entity spans. These spans were cross-referenced with the DBpedia Ontology to assign one of 315 fine-grained categories. Spans without a specific match were assigned a generic
ENTITYlabel. - Refinement and Balancing: To ensure the model learns effectively across all categories, the authors applied temperature-scaled sampling. This technique balances the dataset by down-sampling dominant categories (like "person") and up-sampling rarer ones, addressing the natural long-tail distribution of entity types.
- Pre-training: NER-BERT utilizes a BERT-Base-Cased architecture. Its standard language modeling head is replaced with a specialized 315-category tagging head, and the model is trained directly on the sequence labeling task using the 16-million-sentence corpus.
Experimental Results
NER-BERT was evaluated across nine diverse domains, including Finance, Biomedical, and various CrossNER datasets (Politics, AI, etc.).
Performance Gains
The model achieved an average F1-score improvement of 4.87% over standard BERT-base across all target domains. The advantage of task-specific pre-training is most pronounced in low-resource settings. In domains with extremely limited data (100-200 training examples), NER-BERT consistently outperformed BERT by 5% to 10% in F1-score.
The Importance of Granularity
A key finding is that pre-training on 315 fine-grained categories is significantly more effective than using a coarse-grained taxonomy (e.g., 4 categories). Forcing the model to distinguish between highly specific types during pre-training encourages the development of richer, more transferable internal representations. This is further evidenced by t-SNE visualizations which indicate that NER-BERT naturally clusters similar entity types even before fine-tuning.
Conclusion
NER-BERT demonstrates that task-specific pre-training on a large-scale, automatically labeled corpus can effectively bridge the gap between general language modeling and specialized sequence labeling. By aligning the pre-training objective with the downstream task and leveraging fine-grained categories, NER-BERT provides a robust and data-efficient solution for entity tagging in data-constrained environments.
Summary updated