Abstract
Traditional Named Entity Recognition (NER) models often struggle with nested entities and fail to exploit dependencies between different entity labels. This paper introduces Multi-NER, a multi-task learning framework that reformulates NER as a Machine Reading Comprehension (MRC) problem. By incorporating a self-attention module to capture inter-label relationships, Multi-NER achieves state-of-the-art performance on both flat and nested NER benchmarks, including ACE 2004, ACE 2005, GENIA, and CoNLL-2003.
Introduction
Named Entity Recognition (NER) is a fundamental task in natural language processing, identifying entities such as people, locations, and organizations. While sequence labeling has been the standard approach, it faces significant challenges with nested entities—where one entity span is contained within another. For instance, in the phrase "The Secretary of Homeland Security," "Homeland Security" is an organization nested within a larger person entity.
Recent shifts toward MRC-based NER have addressed nesting by treating entity extraction as a question-answering task: "Which ORGANIZATION is mentioned in the text?" However, existing MRC models typically treat entity types independently, ignoring the rich contextual dependencies between labels. For example, identifying a "founder" (PERSON) often provides a strong clue that a nearby name is an "ORGANIZATION."
Methodology
Multi-NER addresses these limitations by leveraging a multi-task learning architecture designed to capture label dependencies.
Task Decomposition and Shared Encoding
The framework decomposes the NER task into $N$ parallel sub-tasks, each corresponding to a specific entity type. A shared BERT encoder processes the input, which consists of a type-specific query concatenated with the context text. This shared representation ensures that the model learns a unified semantic space across all entity types.
Self-Attention for Label Dependencies
The core innovation of Multi-NER is the self-attention module placed atop the task-specific hidden states. This module allows the model to explicitly model the interactions between different entity types. By attending to the features of other tasks, the model can leverage the detection of one entity type to improve the recognition of another. The self-attention module acts as a communication bridge; visualization of attention maps reveals that certain labels, like PERSON, exert a disproportionately large influence on the recognition of other entity types.
Multi-Head Output
To handle potential overlaps and ensure precise span detection, each task utilizes three specialized output layers: a start index predictor, an end index predictor, and a span matrix predictor. This configuration allows the model to handle both flat and nested structures naturally within a unified architecture.
Experimental Evaluation
The model was evaluated on four diverse datasets: ACE 2004, ACE 2005, and GENIA for nested NER, and CoNLL-2003 for flat NER. This variety demonstrates the model's robustness across different linguistic structures and domains.
Key Results
Multi-NER consistently outperformed the state-of-the-art BERT-MRC baseline across all tested benchmarks. The inclusion of the self-attention mechanism provides a significant boost, particularly in complex nested scenarios.
Specifically, Multi-NER achieved an F1 score of 85.34% on ACE 2004 (+1.3% improvement) and 92.33% on CoNLL-2003 (+1.25% improvement). In the GENIA biomedical dataset, the model reached an F1 score of 81.13%, suggesting that the ability to capture dependencies is equally effective in specialized domains. Ablation studies confirmed that both the multi-task structure and the inter-task communication facilitated by the self-attention layer were critical to these gains.
Discussion and Conclusion
Multi-NER demonstrates that treating NER as a multi-task MRC problem with explicit label dependency modeling is highly effective for both flat and nested entity extraction. While the model shows superior accuracy, the linear increase in parameters with the number of entity types presents a scalability challenge (approximately 4M parameters per additional type). Future work will explore parameter-efficient architectures, such as Hypernetworks, to maintain performance while reducing the computational footprint.
Summary updated