Recognizing Nested Entities from Flat Supervision: A New NER Subtask, Feasibility and Challenges

Enwei Zhu, Yiyang Liu, Ming Jin, Jinpeng Li · DOI

Abstract

Traditional Named Entity Recognition (NER) often assumes a "flat" structure where entities do not overlap. While nested NER has emerged to capture more complex linguistic structures, it typically requires labor-intensive, fully nested annotations. This research proposes a novel subtask: nested-from-flat NER. The goal is to train a model using only flat entity labels while enabling it to recognize nested entities at test time. By leveraging span-based models and a strategic negative sampling approach, the authors demonstrate that models can "see" nested structures without explicit training, achieving significant F1 scores on standard benchmarks like ACE and GENIA without degrading performance on flat entities.

Introduction: The "Nested-from-Flat" Challenge

In standard NER datasets like CoNLL 2003, a phrase like "New York University" is labeled as a single Organization. However, "New York" is also a Location nested within that organization. While specialized nested NER models exist, they rely on datasets where every layer of nesting is manually tagged—a costly and labor-intensive process. This paper investigates whether we can extract this "hidden" knowledge from the abundance of existing flat-labeled data.

Methodology: Span-Based Modeling and Strategic Sampling

The authors employ a span-based NER framework. Unlike traditional sequence labeling (e.g., BIO tagging), span-based models evaluate every possible substring (span) in a sentence. This naturally allows for overlapping or nested predictions.

Illustration of the span-based framework and the distinction between labeled entities and internal spans.

The critical innovation lies in how the model is trained on flat data. In a typical setup, any span not explicitly labeled as an entity is treated as a "negative sample." The authors categorize these unlabeled spans into two sets:

  1. Within-Entity Set ($\mathcal{I}$): Spans located inside a labeled flat entity (e.g., "New York" inside "New York University").
  2. Out-of-Entity Set ($\mathcal{O}$): Spans that do not overlap with any labeled entity.

The core hypothesis is that treating all spans in $\mathcal{I}$ as negatives is counterproductive, as many are actually valid nested entities. Instead, the authors propose ignoring most of $\mathcal{I}$ or using a very low sampling rate ($\gamma$).

Results and the Sampling Trade-off

The choice of the sampling rate $\gamma$ is vital for balancing precision and recall. If $\gamma$ is too high, the model incorrectly learns that nested entities are "not entities." If $\gamma$ is zero (ignoring all internal spans), the model may over-generate predictions, leading to high recall but low precision.

Performance metrics (Precision, Recall, F1) on ACE 2004 as the sampling rate $\gamma$ varies.

As shown in the experimental results for ACE 2004, an optimal F1 score is achieved at a very low sampling rate (around $\gamma = 0.005$ to $0.01$). At this balance, the model achieved a 54.8% F1 score on nested entities—roughly 70% of the performance of a model trained with full nested supervision—despite never seeing a nested label during training. On the new CoNLL 2003 NFF benchmark, the authors found that applying simple post-processing rules could further boost performance, doubling the nested F1 score from 16.6% to 33.2%.

Conclusion

This study proves the feasibility of recognizing nested entities from flat supervision. By simply adjusting how internal spans are handled during training, span-based models can gain nested NER capabilities as a "free" upgrade. Future work will look into using external knowledge and more advanced language models to identify nested entities that rarely appear in flat contexts.

Summary updated

BibTeX
@misc{zhu2022recognizing,
  author = {Enwei Zhu and Yiyang Liu and Ming Jin and Jinpeng Li},
  title = {{Recognizing Nested Entities from Flat Supervision: A New NER Subtask, Feasibility and Challenges}},
  year = {2022},
  eprint = {2211.00301},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.00301},
}
Figure