Skip to main content
QUICK REVIEW

[Paper Review] CrossNER: Evaluating Cross-Domain Named Entity Recognition

Zihan Liu, Yan Xu|arXiv (Cornell University)|Dec 8, 2020
Topic ModelingComputer Science44 references22 citations
TL;DR

This paper introduces CrossNER, a new cross-domain NER dataset spanning five diverse domains—politics, natural science, music, literature, and AI—each with domain-specialized entity types. It proposes domain-adaptive pre-training (DAPT) using domain-specific corpora and span-level masking, showing that focusing on entity-rich subcorpora and using span-level masking significantly improves few-shot NER performance across domains, outperforming existing baselines.

ABSTRACT

Cross-domain named entity recognition (NER) models are able to cope with the scarcity issue of NER samples in target domains. However, most of the existing NER benchmarks lack domain-specialized entity types or do not focus on a certain domain, leading to a less effective cross-domain evaluation. To address these obstacles, we introduce a cross-domain NER dataset (CrossNER), a fully-labeled collection of NER data spanning over five diverse domains with specialized entity categories for different domains. Additionally, we also provide a domain-related corpus since using it to continue pre-training language models (domain-adaptive pre-training) is effective for the domain adaptation. We then conduct comprehensive experiments to explore the effectiveness of leveraging different levels of the domain corpus and pre-training strategies to do domain-adaptive pre-training for the cross-domain task. Results show that focusing on the fractional corpus containing domain-specialized entities and utilizing a more challenging pre-training strategy in domain-adaptive pre-training are beneficial for the NER domain adaptation, and our proposed method can consistently outperform existing cross-domain NER baselines. Nevertheless, experiments also illustrate the challenge of this cross-domain NER task. We hope that our dataset and baselines will catalyze research in the NER domain adaptation area. The code and data are available at https://github.com/zliucr/CrossNER.

Motivation & Objective

  • To address the lack of domain-specialized entity types and focused domain evaluation in existing NER benchmarks.
  • To develop a low-resource cross-domain NER evaluation framework with five distinct domains, each with unique entity categories.
  • To investigate the effectiveness of domain-adaptive pre-training (DAPT) using varying sizes of domain-specific corpora and masking strategies.
  • To establish strong baselines for cross-domain NER that outperform existing state-of-the-art models.

Proposed method

  • Annotate a fully-labeled NER dataset across five diverse domains: politics, natural science, music, literature, and AI, each with specialized entity types such as 'politician', 'artist', 'band', 'song', and 'AI model'.
  • Collect five unlabeled domain-related corpora for domain-adaptive pre-training (DAPT) to improve model generalization to target domains.
  • Apply DAPT by fine-tuning BERT on domain-specific corpora, with ablation studies on corpus size and composition.
  • Implement a novel span-level masking strategy in DAPT, where contiguous spans are masked instead of random tokens, to enhance contextual learning.
  • Compare multiple pre-training and fine-tuning strategies: Direct Fine-tune, Pre-train then Fine-tune, and Jointly Train, under low-resource settings.
  • Use integrated domain corpora and span-level masking to improve model adaptation to domain-specialized entities.

Experimental results

Research questions

  • RQ1How does the size and composition of the domain-specific corpus affect cross-domain NER performance in low-resource settings?
  • RQ2Does span-level masking during domain-adaptive pre-training improve NER performance compared to standard token-level masking?
  • RQ3To what extent does leveraging source domain NER data hurt performance on domain-specialized entity types like 'artist' or 'band'?
  • RQ4How does the performance degrade with decreasing target domain training sample size, and can DAPT mitigate this?
  • RQ5Can a unified DAPT strategy with span-level masking and domain-specific corpus selection consistently outperform existing cross-domain NER baselines?

Key findings

  • Using only the fraction of the domain corpus containing domain-specialized entities (e.g., 'politician' in politics) during DAPT significantly improves performance on target domain entities compared to using the full domain corpus.
  • Span-level masking—where contiguous spans are masked instead of random tokens—consistently outperforms standard token-level masking in DAPT, improving F1 scores by up to 10.15 points on the music domain.
  • When only 10 training samples are available per target domain, the Pre-train then Fine-tune strategy with DAPT outperforms Direct Fine-tune by approximately 10 F1 points, demonstrating strong few-shot adaptation.
  • The best model achieves an F1 score of 80.54 on the music domain under the Pre-train then Fine-tune setting with span-level masking and integrated corpus, outperforming existing baselines.
  • Performance on general categories like 'person' and 'organization' is often higher than on domain-specialized entities like 'artist' or 'band', which suffer from misclassification due to hierarchical category overlap.
  • The performance gap between Pre-train then Fine-tune and Jointly Train increases as target domain sample size decreases, indicating that the former better focuses on low-resource target domains.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.