[Paper Review] A Unified MRC Framework for Named Entity Recognition
The paper reframes flat and nested NER as a machine reading comprehension task, using natural-language queries per entity type to extract spans, achieving state-of-the-art results on both nested and flat NER datasets.
The task of named entity recognition (NER) is normally divided into nested NER and flat NER depending on whether named entities are nested or not. Models are usually separately developed for the two tasks, since sequence labeling models, the most widely used backbone for flat NER, are only able to assign a single label to a particular token, which is unsuitable for nested NER where a token may be assigned several labels. In this paper, we propose a unified framework that is capable of handling both flat and nested NER tasks. Instead of treating the task of NER as a sequence labeling problem, we propose to formulate it as a machine reading comprehension (MRC) task. For example, extracting entities with the extsc{per} label is formalized as extracting answer spans to the question "{\it which person is mentioned in the text?}". This formulation naturally tackles the entity overlapping issue in nested NER: the extraction of two overlapping entities for different categories requires answering two independent questions. Additionally, since the query encodes informative prior knowledge, this strategy facilitates the process of entity extraction, leading to better performances for not only nested NER, but flat NER. We conduct experiments on both {\em nested} and {\em flat} NER datasets. Experimental results demonstrate the effectiveness of the proposed formulation. We are able to achieve vast amount of performance boost over current SOTA models on nested NER datasets, i.e., +1.28, +2.55, +5.44, +6.37, respectively on ACE04, ACE05, GENIA and KBP17, along with SOTA results on flat NER datasets, i.e.,+0.24, +1.95, +0.21, +1.49 respectively on English CoNLL 2003, English OntoNotes 5.0, Chinese MSRA, Chinese OntoNotes 4.0.
Motivation & Objective
- Address nested (overlapping) and flat NER within a single framework.
- Leverage machine reading comprehension to inject prior knowledge about entity categories through queries.
- Improve extraction accuracy for both nested and flat NER datasets using an end-to-end trainable model.
- Demonstrate strong empirical gains over state-of-the-art models across diverse benchmarks.
- Analyze the impact of query construction and data efficiency on NER performance.
Proposed method
- Formulate NER as a SQuAD-style MRC task by assigning a natural language query q_y to each entity type y and extracting spans from the context X as answers.
- Use BERT as the backbone to encode the concatenated query and context, producing token representations for span extraction.
- Adopt a start/end span selection scheme with two binary classifiers to predict possible starts and ends, enabling multiple spans per query.
- Train an additional start-end matching classifier to pair predicted starts and ends into valid entity spans, minimizing a combined loss.
- Jointly train L_start, L_end, and L_span with pretrained BERT representations, enabling end-to-end optimization.
- Generate queries from annotation guidelines (and explore alternatives) to encode prior knowledge about entity categories.
Experimental results
Research questions
- RQ1Can framing NER as a unified MRC problem handle both flat and nested NER without separate models?
- RQ2Does incorporating natural language queries with prior knowledge improve extraction, especially for overlapping entities?
- RQ3What is the impact of query construction strategies on NER performance and data efficiency?
- RQ4How well does the BERT-MRC approach transfer to unseen label sets in zero-shot settings?
- RQ5What is the contribution of the MRC formulation versus pretraining on performance gains?
Key findings
- BERT-MRC achieves state-of-the-art or near-SOTA results across nested NER datasets ACE04, ACE05, GENIA, and KBP17, with notable F1 gains over prior models.
- On nested NER, BERT-MRC attains F1 scores of 85.98 (ACE04), 86.88 (ACE05), 83.75 (GENIA), and 80.97 (KBP17), surpassing previous SOTA by +1.28, +2.55, +5.44, +6.37 respectively.
- For flat NER, BERT-MRC improves English CoNLL-2003 by +0.24 F1, English OntoNotes 5.0 by +1.95 F1, Chinese MSRA by +0.21 F1, and Chinese OntoNotes 4.0 by +1.49 F1 over strong baselines.
- Zero-shot experiments show BERT-MRC can generalize to unseen labels better than tag-based baselines, albeit with lower absolute performance than seen-label tagging.
- Query construction impacts performance; annotation guideline notes yield the highest F1, with synonyms and keyword-based variants also providing improvements over simple templates.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.