NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Neural Architectures for Nested NER through Linearization

Jana Straková, Milan Straka, Jan HajicACL 2019

Abstract

Traditional Named Entity Recognition (NER) systems often struggle with "nested" entities, where one entity is contained within another. This paper presents a novel approach to nested NER by linearizing the problem into a sequence labeling task. By employing two neural architectures—a multilabel LSTM-CRF and a sequence-to-sequence (seq2seq) model—and leveraging powerful contextual embeddings like BERT and Flair, the authors achieve state-of-the-art performance on several benchmark datasets, including ACE-2004, ACE-2005, GENIA, and CNEC.

Introduction

Standard NER typically assumes a "flat" structure where entities do not overlap. For instance, in "The University of California," the entire phrase is labeled as an Organization. However, natural language frequently exhibits nesting. In "The Florida Supreme Court," "Florida" is a GPE (Geopolitical Entity) nested within the larger Organization "The Florida Supreme Court."

Previous solutions for nested NER often relied on complex, hand-crafted structures such as constituency graphs or hypergraphs. Straková et al. propose a simpler alternative: treating nested NER as a sequence labeling problem through clever data encoding, allowing standard neural architectures to learn these relationships implicitly.

Methodology: Linearization and Architectures

The core innovation of this work is the linearized BILOU scheme. When a word belongs to multiple entities, its labels are concatenated into a single multi-token label.

Example of the linearized BILOU scheme for nested entities.

The authors propose two primary architectures to handle this linearized data:

  1. LSTM-CRF with Multilabels: This model treats the Cartesian product of all possible nested labels as a single "multilabel" and uses a standard BiLSTM-CRF. While straightforward, it faces "label explosion" as nesting depth increases.
  2. Sequence-to-Sequence (seq2seq): This more flexible approach uses a BiLSTM encoder and an LSTM decoder. For each word, the decoder predicts a sequence of labels until an <eow> (end-of-word) token is reached. It utilizes "hard attention," focusing the decoder on the specific word being labeled.

To enhance performance, the models integrate state-of-the-art contextual embeddings: ELMo, BERT, and Flair, which provide deep semantic context for each token.

Experimental Setup

The models were evaluated on four major nested NER corpora:

  • ACE-2004 and ACE-2005: General-purpose datasets (news, weblogs, mail).
  • GENIA: A biomedical corpus with frequent nesting (e.g., proteins within DNA).
  • CNEC (Czech Named Entity Corpus): A fine-grained dataset for the Czech language.

Additionally, the models were tested on "flat" NER datasets (CoNLL-2002/2003) to demonstrate their robustness across standard NER tasks.

Key Results

The proposed architectures set new state-of-the-art (SOTA) F1 scores across all nested benchmarks. The seq2seq model, in particular, demonstrated superior performance on the most complex datasets, confirming its ability to handle deep nesting through its flexible decoding mechanism.

Performance comparison on nested NER benchmarks (ACE-2004, ACE-2005, GENIA, CNEC 1.0).

Key highlights include:

  • ACE-2004: Achieved 84.40 F1, a significant improvement over previous benchmarks.
  • GENIA: Reached 78.31 F1.
  • CNEC: Reached 86.88 F1.
  • Flat NER: The models remained highly competitive, even outperforming previous SOTA results for Dutch and Spanish.

Conclusion

This research demonstrates that complex structural tasks like nested NER can be effectively solved using linearized sequence labeling. The combination of seq2seq architectures and contextual embeddings proves highly effective at capturing implicit hierarchical relationships. Future work may address the computational overhead of the seq2seq decoder and explore the impact of different label ordering strategies or performance on morphologically diverse languages.

Summary updated

BibTeX
@inproceedings{strakova2019neural,
  author = {Jana Straková and Milan Straka and Jan Hajic},
  title = {{Neural Architectures for Nested NER through Linearization}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1527},
}
Figure