[Paper Review] Named Entity Recognition in the Style of Object Detection
This paper proposes a two-stage named entity recognition (NER) framework inspired by object detection, using a region proposal network to generate candidate spans followed by a classification head that predicts entityness and type simultaneously. The method achieves SOTA results on nested NER benchmarks (85.6 F1 on ACE2005 and 76.8 on Genia), outperforming many complex models, while maintaining strong performance on flat NER tasks.
In this work, we propose a two-stage method for named entity recognition (NER), especially for nested NER. We borrowed the idea from the two-stage Object Detection in computer vision and the way how they construct the loss function. First, a region proposal network generates region candidates and then a second-stage model discriminates and classifies the entity and makes the final prediction. We also designed a special loss function for the second-stage training that predicts the entityness and entity type at the same time. The model is built on top of pretrained BERT encoders, and we tried both BERT base and BERT large models. For experiments, we first applied it to flat NER tasks such as CoNLL2003 and OntoNotes 5.0 and got comparable results with traditional NER models using sequence labeling methodology. We then tested the model on the nested named entity recognition task ACE2005 and Genia, and got F1 score of 85.6$\%$ and 76.8$\%$ respectively. In terms of the second-stage training, we found that adding extra randomly selected regions plays an important role in improving the precision. We also did error profiling to better evaluate the performance of the model in different circumstances for potential improvements in the future.
Motivation & Objective
- To explore whether two-stage object detection paradigms from computer vision can be effectively adapted to named entity recognition, especially for nested entities.
- To improve precision and recall in nested NER by decoupling region proposal from entity classification and type prediction.
- To evaluate the model’s performance on both flat and nested NER benchmarks, comparing it with traditional sequence labeling approaches.
- To analyze error types and understand the model’s strengths and limitations in different failure scenarios.
Proposed method
- A two-stage architecture is used: first, a region proposal network (RPN) predicts start and end positions of candidate entity spans using a linear layer on top of BERT embeddings.
- The RPN uses cross-entropy loss for start and end token prediction, with masking applied to subword tokens to focus on word-level beginnings.
- In the second stage, a classification head processes the pooled representation of each candidate span to predict entityness (whether it's a valid entity) and entity type simultaneously.
- A novel loss function combines entityness and type classification, enabling joint optimization and improved interpretability of predictions.
- Random negative samples are added during training to improve precision, and max pooling over the span is used to aggregate features for classification.
- The model is fine-tuned on BERT-base and BERT-large, with ablation studies to evaluate component contributions.
Experimental results
Research questions
- RQ1Can a two-stage object detection-like framework improve performance on nested named entity recognition compared to standard sequence labeling?
- RQ2How does joint prediction of entityness and entity type affect model performance and error patterns in NER?
- RQ3What is the impact of architectural components such as max pooling, random negative sampling, and start/end prediction on final F1 scores?
- RQ4How does the model’s error composition compare to that of a standard BERT sequence labeling model in terms of boundary, type, and over/under-triggering errors?
Key findings
- The model achieved an F1 score of 85.6% on the ACE2005 nested NER benchmark, outperforming many more complex models.
- On the Genia dataset, the model reached 76.8% F1, demonstrating strong performance on nested NER despite the complexity of overlapping entities.
- Ablation studies showed that removing max pooling caused a drop of over 1.0% in F1, indicating its critical role in feature aggregation.
- Random negative sampling improved precision, and removing it led to a 0.7% F1 drop, highlighting its importance in reducing false positives.
- The model reduced over-triggering errors significantly compared to a standard BERT sequence labeling model, indicating strong entityness prediction.
- Error analysis revealed that type errors were the dominant error type for both models, but the two-stage model showed better control over false positives and boundary errors.
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.