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

Nested Named Entity Recognition Revisited

Arzoo Katiyar, Claire Cardie

Abstract

Named Entity Recognition (NER) is a fundamental task in natural language processing, yet traditional systems often fail when entities are nested within one another. This paper introduces a novel recurrent neural network (RNN) framework that represents nested structures as directed hypergraphs. By utilizing a Bidirectional LSTM (Bi-LSTM) coupled with a specialized Sparsemax layer, the proposed model achieves state-of-the-art performance on benchmark datasets like ACE and GENIA while maintaining linear time efficiency.

Introduction

Standard NER models typically assume a "flat" structure where entities are non-overlapping. However, real-world language frequently contains nested mentions—for instance, a "Person" entity ("Sheikh Abbad") residing within a "Location" entity ("the burial site of Sheikh Abbad"). Ignoring these inner layers results in a significant loss of semantic detail.

Previous solutions to nested NER have faced significant hurdles: cascaded models often fail to identify nested entities of the same type, constituency parsers suffer from $O(n^3)$ complexity, and feature-based hypergraphs require intensive manual engineering. This work seeks to bridge the gap by providing an automated, neural-based model that is both computationally efficient and highly accurate.

Methodology

The core of the proposed approach is a Bi-LSTM encoder paired with a hypergraph-based decoder.

Hypergraph Encoding and Decoding

The model represents sentences as directed hypergraphs where nodes correspond to labels in the BILOU scheme. This allows the system to represent multiple overlapping paths simultaneously. The decoder layer at the top of the network processes hidden word representations alongside embeddings of labels predicted in the previous step. In instances of nesting, the model averages the representations of multiple labels to inform subsequent predictions.

The proposed neural architecture featuring Bi-LSTM layers and a Sparsemax-based decoder.

Sparsemax vs. Softmax

A critical innovation is the use of the Sparsemax activation function. Unlike Softmax, which assigns non-zero probabilities to all possible labels, Sparsemax can output exact zeros. This "hard" thresholding is particularly effective for hypergraphs, as it allows the model to cleanly isolate relevant overlapping entities without the noise of low-probability "tails."

Experimental Results

The model was evaluated on the ACE2004, ACE2005, and GENIA datasets. ACE datasets are known for significant nesting (approx. 30% of sentences), while GENIA is a specialized biomedical corpus.

Performance comparison on ACE2004 and ACE2005 datasets showing the superiority of the Sparsemax model.

As shown in the results, the Sparsemax-based model significantly outperformed previous state-of-the-art methods. On ACE2004 and ACE2005, it achieved F1 scores of 72.7 and 70.5, respectively—a 6-8 point improvement over prior hypergraph techniques. On the GENIA dataset, the model reached a 73.6 F1 score, surpassing both parser-based and multigraph alternatives.

Key Insights

  1. Linear Efficiency: By utilizing a greedy hypergraph construction, the model achieves $O(n)$ complexity, making it far more scalable than traditional $O(n^3)$ parsers.
  2. Joint Learning: The authors extended the model to predict the "head" word of each mention. Interestingly, teaching the model to identify heads improved its overall ability to define mention boundaries.

Conclusion and Future Work

This research demonstrates that nested NER can be solved efficiently using neural hypergraphs. While the model sets new benchmarks, challenges remain regarding pronominal mentions (e.g., "It") which require broader document context. Future work may involve incorporating global dependencies and document-level features to further refine entity disambiguation.

Summary updated

BibTeX
@inproceedings{katiyar2018nested,
  author = {Arzoo Katiyar and Claire Cardie},
  title = {{Nested Named Entity Recognition Revisited}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/n18-1079},
}
Figure