NER-to-MRC: Named-Entity Recognition Completely Solving as Machine Reading Comprehension

Yuxiang Zhang, Junjie Wang, Xinyu Zhu, Tetsuya Sakai, Hayato YamanaarXiv 2023 · DOI

Abstract

Named-Entity Recognition (NER) has traditionally been approached as a sequence labeling task, often suffering from "label blindness"—where models treat entity tags as arbitrary symbols without semantic meaning. This paper presents NER-to-MRC, a framework that reformulates NER as a multiple-choice Machine Reading Comprehension (MRC) task. By providing the model with semantic descriptions of entity labels as "options," the framework achieves state-of-the-art (SOTA) performance across diverse domains. Notably, it delivers an 11.24% F1 boost on the noisy WNUT-16 dataset without requiring expensive external data or search engine retrieval.

Introduction

Named-Entity Recognition is a fundamental task in Natural Language Processing, identifying entities such as persons, locations, and organizations. Conventional sequence labeling models assign tags (e.g., "B-PER") based on statistical patterns but lack an inherent understanding of what these labels represent. Furthermore, current SOTA models often rely on computationally expensive external context retrieval to compensate for this lack of semantic depth.

Conceptual overview of reframing NER as a Machine Reading Comprehension task.

NER-to-MRC addresses these issues by transforming the tagging task into a reading comprehension problem. Instead of predicting a tag for each token, the model "reads" a passage and selects the most appropriate entity type from a set of defined options. This approach allows the model to leverage the semantic information contained within the label definitions themselves.

Methodology

The NER-to-MRC framework consists of three primary components: input reconstruction, a specialized reasoning network, and a recovery mechanism.

Input Reconstruction

The model processes a triplet of information:

  1. Passage: The original input sentence (e.g., "Only France and Britain backed Fischler's proposal.").
  2. Question: A universal, stable prompt: "What kind of entity is this?"
  3. Options: Semantic definitions derived from dataset annotation guidelines. For example, a "Location" option might include a detailed description of what constitutes a geographic or political entity rather than just the word "Location."

Human Reading Strategy (HRCA)

To process this triplet, the authors developed the Human Reading Strategy (HRCA), a three-step attention mechanism designed to mimic human cognitive processes during test-taking:

  • Step 1 (Reviewing): The model attends to the question to establish the task goal.
  • Step 2 (Reading): The model analyzes the options (definitions) in the context of the question.
  • Step 3 (Finding): The model scans the passage to identify text spans that align with the processed options.
The NER-to-MRC architecture, illustrating the reconstruction process and the three-step HRCA reasoning layers.

Architecture and Inference

The framework is backbone-agnostic, though it achieves optimal results with DeBERTa-v3-large. A simple Multi-Layer Perceptron (MLP) performs the final prediction. A recovery rule then maps these MRC outputs back into standard IOB (Inside-Outside-Beginning) tags for evaluation, ensuring compatibility with existing NER benchmarks.

Experimental Results

The framework was evaluated on six benchmark datasets across social media (WNUT-16/17), news (CoNLL-2003/++), and biomedical (BC5CDR, NCBI) domains.

  • Social Media: On the challenging WNUT-16 dataset, NER-to-MRC achieved a 65.61 F1 score, marking an 11.24% absolute improvement over previous benchmarks. The reasoning strategy acted as a natural "denoiser" for messy text containing slang and irregular capitalization.
  • Biomedical: The model showed gains of 1.48% on BC5CDR and 1.09% on NCBI, demonstrating its effectiveness with specialized technical vocabularies.
  • News: It reached 93.91 F1 on CoNLL-2003, surpassing previous MRC-based approaches like BERT-MRC.

Key Insights

  • Semantic Definitions vs. Names: Providing full annotation guidelines as options significantly outperformed using simple entity names. Understanding the underlying logic of a label improves generalization.
  • Stability of Universal Prompts: Unlike previous MRC-NER models that required hand-crafted questions for each entity type, a single universal question proved more stable and reproducible.
  • Computational Efficiency: By improving the model's task understanding, NER-to-MRC converges rapidly, often reaching peak performance in just 3 epochs compared to 20 for competing models.

Conclusion and Future Work

NER-to-MRC demonstrates that providing models with semantic "knowledge" of labels can solve complex NER tasks more effectively than simple sequence labeling or resource-heavy retrieval methods. While currently focused on "flat" NER, the framework's architecture is theoretically capable of handling nested entities. Future research will explore more sophisticated instruction sets and evaluate the model on complex, overlapping entity datasets.

Summary updated

BibTeX
@misc{zhang2023ner,
  author = {Yuxiang Zhang and Junjie Wang and Xinyu Zhu and Tetsuya Sakai and Hayato Yamana},
  title = {{NER-to-MRC: Named-Entity Recognition Completely Solving as Machine Reading Comprehension}},
  year = {2023},
  eprint = {2305.03970},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.03970},
}
Figure