[Paper Review] Neural Architectures for Nested NER through Linearization
This paper proposes two neural architectures for nested named entity recognition (NER) by linearizing nested entity structures into a multilabel BILOU scheme. The first uses a standard LSTM-CRF with multilabels, while the second frames nested NER as a sequence-to-sequence task with hard attention. Both models outperform prior state-of-the-art on four nested NER corpora—ACE-2004, ACE-2005, GENIA, and Czech CNEC—especially when enhanced with contextual embeddings like BERT, ELMo, and Flair.
We propose two neural network architectures for nested named entity recognition (NER), a setting in which named entities may overlap and also be labeled with more than one label. We encode the nested labels using a linearized scheme. In our first proposed approach, the nested labels are modeled as multilabels corresponding to the Cartesian product of the nested labels in a standard LSTM-CRF architecture. In the second one, the nested NER is viewed as a sequence-to-sequence problem, in which the input sequence consists of the tokens and output sequence of the labels, using hard attention on the word whose label is being predicted. The proposed methods outperform the nested NER state of the art on four corpora: ACE-2004, ACE-2005, GENIA and Czech CNEC. We also enrich our architectures with the recently published contextual embeddings: ELMo, BERT and Flair, reaching further improvements for the four nested entity corpora. In addition, we report flat NER state-of-the-art results for CoNLL-2002 Dutch and Spanish and for CoNLL-2003 English.
Motivation & Objective
- To address the challenge of overlapping and nested named entities in NLP, where standard NER models fail due to label conflicts.
- To develop neural architectures that implicitly model nested entity relationships without explicitly constructing syntactic or hypergraph structures.
- To improve performance on nested NER corpora by encoding complex entity hierarchies through a linearized, enhanced BILOU labeling scheme.
- To evaluate the effectiveness of recent contextual word embeddings (BERT, ELMo, Flair) in boosting performance on both nested and flat NER tasks.
Proposed method
- The nested entities are encoded using an enhanced BILOU scheme that assigns multiple labels per token based on priority rules: earlier-starting and longer entities take precedence.
- The first model treats multilabels as a Cartesian product of nested labels and applies a standard LSTM-CRF for sequence labeling.
- The second model frames nested NER as a sequence-to-sequence task: the input is the token sequence, and the output is a sequence of labels, including a special <eow> token to signal end-of-word prediction.
- Hard attention is used in the seq2seq decoder to attend to the word being labeled, enabling dynamic context modeling for each entity prediction.
- Contextual word embeddings (ELMo, BERT, Flair) are used as input features to enrich the token representations in both models.
- The models are trained and evaluated using strict span-and-class matching, with test results reported on concatenated train+dev sets.
Experimental results
Research questions
- RQ1Can a simple multilabel extension of standard LSTM-CRF effectively handle nested NER without explicit structural modeling?
- RQ2Does treating nested NER as a sequence-to-sequence problem with hard attention lead to better performance on complex, highly nested corpora?
- RQ3How do recent contextual embeddings (BERT, ELMo, Flair) improve performance on nested and flat NER benchmarks?
- RQ4Is the enhanced BILOU encoding scheme effective in preserving nested entity structure for neural sequence labeling?
- RQ5Does the seq2seq architecture generalize better than standard sequence labeling on highly overlapping nested corpora like ACE-2004 and ACE-2005?
Key findings
- The seq2seq model achieves SOTA F1 scores of 84.40 on ACE-2004, 84.33 on ACE-2005, 78.31 on GENIA, and 86.88 on Czech CNEC 1.0 when using BERT+Flair embeddings.
- The LSTM-CRF model with BERT+Flair achieves 81.22 F1 on ACE-2004 and 85.70 on CNEC 1.0, outperforming prior neural and non-neural methods.
- The seq2seq model significantly outperforms all prior methods on ACE-2004 and ACE-2005, where 39% of training sentences contain overlapping mentions.
- On flat NER, the models achieve SOTA results: 93.07 F1 on CoNLL-2003 English, 92.69 on Dutch, and 88.81 on Spanish, with BERT+Flair.
- The addition of contextual embeddings consistently improves performance across all corpora, with BERT+Flair yielding the highest gains.
- The enhanced BILOU encoding enables effective linearization of nested structures, allowing standard neural architectures to implicitly learn complex hierarchical relationships.
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.