Abstract
Open Named Entity Recognition (NER), which involves identifying arbitrary types of entities from arbitrary domains, remains challenging for Large Language Models (LLMs). Recent studies suggest that fine-tuning LLMs on extensive NER data can boost their performance. However, training directly on existing datasets neglects their inconsistent entity definitions and redundant data, limiting LLMs to dataset-specific learning and hindering out-of-domain adaptation. To address this, we present B2NERD, a compact dataset designed to guide LLMs’ generalization in Open NER under a universal entity taxonomy. B2NERD is refined from 54 existing English and Chinese datasets using a two-step process. First, we detect inconsistent entity definitions across datasets and clarify them by distinguishable label names to construct a universal taxonomy of 400+ entity types. Second, we address redundancy using a data pruning strategy that selects fewer samples with greater category and semantic diversity. Comprehensive evaluation shows that B2NERD significantly enhances LLMs’ Open NER capabilities. Our B2NER models, trained on B2NERD, outperform GPT-4 by 6.8-12.0 F1 points and surpass previous methods in 3 out-of-domain benchmarks across 15 datasets and 6 languages. The data, models, and code are publicly available at https://github.com/UmeanNever/B2NER.
Introduction
Named Entity Recognition (NER) is a fundamental NLP task focused on identifying and classifying entities within text. While traditional NER focuses on a fixed set of categories, Open NER requires models to identify arbitrary entity types across diverse domains, including those unseen during training. Despite the vast capabilities of Large Language Models (LLMs), they often struggle with Open NER. A common approach to improve performance is fine-tuning on large-scale aggregated datasets. However, this approach faces two significant hurdles: inconsistent entity definitions across different source datasets and high data redundancy. For instance, a "Location" in one dataset might exclude geopolitical entities, while another includes them, leading to label noise and model confusion. Furthermore, massive datasets are often skewed toward common entities, causing models to overfit to frequent patterns rather than learning to generalize.
Methodology
To overcome these challenges, we introduce B2NERD, a curated bilingual dataset derived from 54 existing English and Chinese NER datasets. The construction process involves two primary stages:
- Entity Definition Standardization: We utilize a model-based cross-validation approach to identify semantic conflicts between datasets. Human experts then resolve these conflicts by establishing a Universal Taxonomy of over 400 entity types. This taxonomy replaces vague labels with descriptive, hierarchical names (e.g., refining
PersonintoWriterorNominal Mention of Person) to clarify entity boundaries. - Diversity-Aware Data Pruning: To mitigate redundancy, we implement a pruning strategy that prioritizes semantic diversity. Using text embeddings, we select a subset of samples for each entity type that maximizes coverage of the semantic space while minimizing overlap. This reduces the training set from 1.4 million raw samples to a high-efficiency corpus of approximately 51,000 samples.
Additionally, we employ Instruction Tuning with Regularization. By using Dynamic Label Sets—randomizing the order and presence of labels in training prompts—we prevent the model from relying on dataset-specific label co-occurrence shortcuts, forcing it to focus on the actual entity definitions.
Results and Key Insights
Our evaluation across three Out-of-Domain (OOD) benchmarks demonstrates that models trained on B2NERD (B2NER-7B and 20B) significantly outperform existing baselines. Notably, B2NER-7B exceeds GPT-4's performance by 9.7–12.0 F1 points on English benchmarks and by 18.6 points on Chinese benchmarks. B2NER-7B also slightly outperformed the previous state-of-the-art (GNER-11B) while running 4x faster during inference due to its efficient prompt structure.
A critical finding is that data quality and diversity are more impactful than sheer volume. As shown in our scaling experiments, the diversity-aware pruning strategy allows the model to reach peak performance with a fraction of the total available data. Dumping millions of redundant samples into the LLM actually degraded its ability to generalize.
Furthermore, we observed strong cross-lingual generalization. In zero-shot experiments, a model trained entirely without English data achieved performance comparable to GPT-4 on English NER tasks. This suggests that once the LLM learns the universal taxonomy conceptually, it can seamlessly apply those concepts across languages it encountered during pre-training.
Conclusion
B2NERD provides a robust foundation for training generalist Open NER models. By standardizing entity definitions and prioritizing data diversity, we enable LLMs to generalize far beyond their training domains. Future work will focus on refining pruning strategies to account for global annotation diversity and extending the framework to more complex tasks like nested NER.
Summary updated