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

Nested Named Entity Recognition as Single-Pass Sequence Labeling

Alberto Muñoz-Ortiz, David Vilares, Caio Corro, Carlos Gómez-Rodríguez

TL;DR

This paper introduces a novel method for Nested Named Entity Recognition (NNER) by reframing it as a standard sequence labeling task. By converting nested entity structures into linearized tree representations, the approach achieves competitive performance with simpler, single-pass models, making NNER more accessible and efficient.

What Problem Does This Paper Address?

Named Entity Recognition (NER) is a fundamental task in Natural Language Processing (NLP) that involves identifying and classifying named entities (like people, organizations, or locations) in text. Traditional NER systems often use the BIO (Beginning, Inside, Outside) tagging scheme, which works well for non-overlapping entities. However, this scheme breaks down when entities are nested, meaning one entity is contained within another (e.g., "president of the USA," where "USA" is a geopolitical entity nested within the person role "president of the USA").

Nested NER (NNER) is significantly more complex because a single token can belong to multiple entities. Existing NNER solutions often resort to more complex structured prediction models, hierarchical labeling, or multi-pass approaches, which can be computationally expensive and difficult to implement. This paper aims to simplify NNER by developing a method that is efficient, easy to implement, and performs on par with or better than existing, more complex systems.

Methods

The core innovation of this paper lies in transforming the NNER problem into a sequence labeling task. This is achieved by:

  • Constituent Tree Representation: The nested entity annotations are first converted into constituent trees, which represent the hierarchical structure of the sentence and its entities.
  • Tree Linearization: These constituent trees are then "linearized" into a sequence of labels. The paper explores four linearization strategies:
  • Depth-based encodings (absolute, relative, dynamic): These methods encode information about the depth of nodes in the tree and their relationships. The "dynamic" encoding is particularly interesting as it adaptively switches between absolute and relative schemes based on local tree structure, aiming to balance label space compactness and expressiveness.
  • Transition-based encoding (tetra-tagging): This approach adapts a transition-based parsing algorithm to sequence labeling, assigning two tags per word to capture more structural information.
  • Single-Pass Sequence Labeling: The linearized sequences are then fed into a standard sequence labeling model (e.g., a Transformer-based encoder like RoBERTa or BERT). This allows the model to predict entity spans in a single pass, similar to how traditional NER is performed.

This approach is "parser-free" in the sense that it doesn't require a separate parsing step; the linearization itself encodes the necessary structural information.

Datasets

The authors evaluate their method on four widely-used English NNER benchmarks:

  • ACE 2004: A dataset for Automatic Content Extraction.
  • ACE 2005: Another dataset from the ACE program.
  • GENIA: A biomedical corpus.
  • NNE: A dataset specifically designed for nested named entity recognition in English newswire.

The paper notes that while these datasets are standard, most entities are flat and short, with rare deeply nested spans.

Key Insights and Ideas

  • NNER as Sequence Labeling is Viable: The most significant insight is that NNER can be effectively tackled using standard sequence labeling techniques, provided the input is appropriately transformed. This democratizes NNER research by leveraging existing, well-developed tools.
  • Linearization is Key: The choice of linearization strategy significantly impacts performance, especially for deeper or longer entities. Depth-based methods, particularly the dynamic encoding, show promise in capturing complex structures.
  • Simplicity and Efficiency: The single-pass, parser-free nature of the approach leads to computational efficiency and simpler implementation compared to many prior NNER methods.
  • Dynamic Encoding's Adaptability: The dynamic encoding strategy, which intelligently switches between absolute and relative depth-based encodings, proves to be a robust choice, often outperforming other encodings by adapting to local tree structures.

Key Results

  • Competitive Performance: The proposed method achieves competitive F1-scores across all tested datasets, often outperforming comparable or more complex methods, especially on ACE and NNE datasets.
  • Dynamic Encoding Leads: The dynamic encoding strategy consistently achieved the highest F1-scores on most datasets, demonstrating its effectiveness.
  • Tetra-tagging Limitations: While competitive on flat and short entities, the tetra-tagging approach showed performance degradation on longer spans, where depth-based strategies were more effective.
  • Efficiency: The approach is designed for linear-time inference (O(n)), making it computationally efficient.

Limitations and Future Work

  • Dataset Limitations: The authors acknowledge that the focus on a few widely-used English benchmarks might limit generalizability. Results could vary on datasets with different annotation schemes, entity types, nesting depths, domains, or languages.
  • GENIA Performance: While competitive overall, the method's recall on the GENIA dataset was lower than some other approaches.
  • Deeply Nested Entities: For deeply nested entities, more elaborate encodings might be beneficial compared to the naive absolute encoding.
  • Future Work: The paper suggests that exploring more sophisticated linearization techniques or combining them with advanced encoder architectures could further improve performance. Investigating the impact of these methods on a wider variety of datasets and languages would also be valuable.

Summary updated

BibTeX
@inproceedings{munozortiz2025nested,
  author = {Alberto Muñoz-Ortiz and David Vilares and Caio Corro and Carlos Gómez-Rodríguez},
  title = {{Nested Named Entity Recognition as Single-Pass Sequence Labeling}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure