[Paper Review] Locate and Label: A Two-stage Identifier for Nested Named Entity Recognition
This paper proposes a two-stage neural network for nested named entity recognition (NER), inspired by two-stage object detection. It first generates and refines span proposals via filtering and boundary regression, then classifies them, achieving state-of-the-art F1 scores on KBP17, ACE04, and ACE05 by effectively leveraging partial matches and boundary information while reducing computational cost.
Named entity recognition (NER) is a well-studied task in natural language processing. Traditional NER research only deals with flat entities and ignores nested entities. The span-based methods treat entity recognition as a span classification task. Although these methods have the innate ability to handle nested NER, they suffer from high computational cost, ignorance of boundary information, under-utilization of the spans that partially match with entities, and difficulties in long entity recognition. To tackle these issues, we propose a two-stage entity identifier. First we generate span proposals by filtering and boundary regression on the seed spans to locate the entities, and then label the boundary-adjusted span proposals with the corresponding categories. Our method effectively utilizes the boundary information of entities and partially matched spans during training. Through boundary regression, entities of any length can be covered theoretically, which improves the ability to recognize long entities. In addition, many low-quality seed spans are filtered out in the first stage, which reduces the time complexity of inference. Experiments on nested NER datasets demonstrate that our proposed method outperforms previous state-of-the-art models.
Motivation & Objective
- To address the limitations of span-based methods in nested NER, including high computational cost, poor long-entity recognition, and underutilization of boundary and partially matching spans.
- To improve the modeling of entity boundaries by integrating boundary regression with span classification in a two-stage framework.
- To reduce inference time by filtering low-quality seed spans early in the pipeline.
- To enhance training efficiency by constructing soft examples based on IoU for spans that partially match ground-truth entities.
- To achieve state-of-the-art performance on standard nested NER benchmarks, particularly in handling long and deeply nested entities.
Proposed method
- The model employs a two-stage architecture: first generating refined span proposals via a filter and a boundary regressor, then classifying them using a span classifier.
- The filter component separates contextual spans from span proposals and discards non-promising contextual spans to reduce candidate space.
- The boundary regressor adjusts the start and end positions of span proposals using SmoothL1 loss and a span-level overlap loss based on IoU to improve localization accuracy.
- During training, soft examples are created by weighting the loss of partially matching spans according to their IoU with ground-truth entities, reducing class imbalance and improving generalization.
- Soft Non-Maximum Suppression (Soft-NMS) is applied during inference to suppress false positive predictions and refine the final output.
- The method jointly optimizes for boundary regression and span classification, enabling better alignment with true entity boundaries and improved recognition of long entities.
Experimental results
Research questions
- RQ1Can a two-stage framework inspired by object detection improve the efficiency and accuracy of nested NER compared to one-stage span-based methods?
- RQ2How can boundary information be more effectively utilized in nested NER to improve localization of long and deeply nested entities?
- RQ3Can partially matching spans—previously discarded as negative examples—be leveraged during training to improve model robustness and reduce noise?
- RQ4To what extent does soft example construction based on IoU improve performance on imbalanced span classification tasks in nested NER?
- RQ5Does the integration of filtering and boundary regression in the first stage significantly reduce inference time while maintaining or improving F1 score?
Key findings
- The proposed model achieves a +3.08% improvement in F1 score over the previous state-of-the-art on the KBP17 dataset.
- On the ACE04 dataset, the model improves F1 by +0.71% compared to existing methods.
- On the ACE05 dataset, the model achieves a +1.27% F1 score gain over prior SOTA models.
- The model reduces computational cost during inference by filtering out low-quality seed spans in the first stage.
- The use of soft examples based on IoU during training effectively mitigates the imbalance between positive and negative spans and improves generalization.
- The integration of boundary regression with span classification enables accurate detection of long and nested entities that are often missed by standard span-based models.
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.