Named Entity Recognition as Dependency Parsing

Juntao Yu, Bernd Bohnet, Massimo Poesio

Introduction

Traditional Named Entity Recognition (NER) systems typically treat the task as a sequence labeling problem, assigning tags like "B-Person" or "I-Person" to individual tokens. While this approach is effective for "flat" entities, it struggles with "nested" entities—where one entity is contained within another (e.g., "[Bank of [China]]"). This paper introduces a unified framework that reformulates NER as a span-scoring task using a biaffine model, a technique originally developed for dependency parsing.

Methods: A Biaffine Approach to Spans

The proposed model treats NER as a structural prediction task, drawing inspiration from graph-based dependency parsing. Instead of predicting tags for tokens, the model predicts the relationship between the start and end indices of potential entity spans.

The biaffine model architecture for NER, featuring BiLSTM encoders and a biaffine classifier.

The architecture consists of three primary components:

  1. Embedding Layer: A powerhouse stack of embeddings including BERT (contextual), fastText (static), and character-level CNNs to handle morphology and out-of-vocabulary words.
  2. Encoder: A multi-layer BiLSTM that processes the combined embeddings to produce contextualized word representations.
  3. Biaffine Scorer: Two separate Feed-Forward Neural Networks (FFNNs) generate "start" and "end" representations for every token. A biaffine classifier then calculates a score for every possible pair of start and end indices, resulting in a scoring tensor of size $L \times L \times C$, where $L$ is the sentence length and $C$ is the number of entity categories.

Post-processing handles the specific constraints of the task. For nested NER, spans are ranked and selected as long as they do not partially overlap (crossing boundaries). For flat NER, a stricter constraint is applied where no two selected spans can overlap at all.

Key Insights

  • Unified Framework: The same architecture handles both flat and nested NER; only the final decoding constraint changes.
  • Global Context: By scoring entire spans simultaneously rather than relying on local transitions (like CRFs), the model captures a more global view of entity structures, which is particularly helpful for long or complex entities.
  • Representation Power: Ablation studies indicate that while the biaffine architecture provides a significant performance boost (~0.8% F1 over a CRF), the integration of BERT is the most critical factor, contributing approximately 2.4% to the final F1 score.

Experimental Results

The model was evaluated across eight diverse benchmarks, including nested NER (ACE 2004, ACE 2005, GENIA) and flat NER (CoNLL 2002/2003, OntoNotes).

Performance comparison on Nested NER datasets (ACE 2004, ACE 2005, and GENIA) showing state-of-the-art results.

The system achieved state-of-the-art (SoTA) results on all eight corpora. Notable gains were observed in nested NER tasks, such as a +2.2% F1 improvement on GENIA and +2.0% on ACE 2004. In flat NER, the model outperformed previous sequence labeling systems, including a +2.1% F1 gain on OntoNotes and +1.3% on CoNLL 2003 German.

Conclusion

By reframing NER as a dependency parsing task, the authors provide a simple yet powerful method for handling complex entity structures. The biaffine model's ability to score all possible spans globally allows it to excel in both nested and flat NER scenarios without the need for complex layered architectures. While the system relies on greedy post-processing, its empirical success across multiple languages and domains establishes it as a robust new baseline for the field.

Summary updated

BibTeX
@inproceedings{yu2020named,
  author = {Juntao Yu and Bernd Bohnet and Massimo Poesio},
  title = {{Named Entity Recognition as Dependency Parsing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.577},
}
Figure