Dependency-Aware Named Entity Recognition with Relative and Global Attentions

Gustavo Aguilar, Thamar SolorioarXiv 2019

Introduction

Traditional Named Entity Recognition (NER) systems typically treat text as a flat, linear sequence of tokens. While effective for local context, this approach often fails to capture the recursive and structured nature of human language. In complex sentences, critical semantic cues—such as a verb indicating a person's action—may be separated from the entity by long relative clauses or parenthetical statements. To address this, we present a model that explicitly incorporates syntactic dependency trees to bridge these long-distance relationships, allowing the network to leverage the underlying structural hierarchy of the sentence.

Methodology

The proposed architecture integrates sequential semantic representations with recursive syntactic features through a multi-stage pipeline:

  1. Input Layer: Words are represented using contextualized ELMo embeddings, concatenated with learned embeddings for Part-of-Speech (POS) tags and dependency relations.
  2. Dual Feature Extractors: The model employs two parallel tracks to process input. A standard Bidirectional LSTM (BiLSTM) captures sequential semantics, while a Child-Sum Tree-LSTM, guided by dependency parse trees, extracts syntactic structural features.
  3. Dual Attention Mechanisms: To synthesize these features, the model utilizes two complementary attention modules. Relative attention computes word-to-word relationships, while Global attention identifies the most salient tokens across the entire sequence.
  4. Inference: The resulting vectors are passed through a Conditional Random Field (CRF) layer to predict the final sequence of entity labels.
The proposed model architecture featuring dual LSTM tracks (Bi-LSTM and Tree-LSTM) followed by relative and global attention modules.

Experimental Setup and Results

The model was evaluated across four major NER benchmarks: CoNLL 2003, SemEval 2010 Task 1, CoNLL 2012, and the OntoNotes 5.0 Broadcast News (BN) subset.

The system established new state-of-the-art performance on the SemEval 2010 dataset (86.72 F1) and the OntoNotes 5.0 BN subset (89.22 F1). It also remained highly competitive on the CoNLL benchmarks. Ablation studies confirmed that the combination of POS tags, dependency relations, and the dual-attention mechanism was critical for these gains, significantly outperforming baseline BiLSTM models.

Key Insights: Trees vs. Sequences

A primary advantage of the dependency-aware approach is its ability to reduce the distance between related words. By analyzing the "hops" required to reach the most informative context words, we found that dependency trees consistently provide a shorter path than linear sequences. For instance, a verb that identifies a PERSON entity might be ten tokens away in a sequence but only two nodes away in a dependency tree. This structural proximity prevents the loss of context that often plagues purely sequential models.

Comparison of average hops to the most attended words in trees versus linear sequences across various entity types, demonstrating how trees shorten contextual distance.

Conclusion and Limitations

By incorporating syntactic structure via Tree-LSTMs and dual attention, our model effectively captures the linguistically recursive nature of entities. However, the model's performance is inherently tied to the quality of the input dependency trees. Experiments showed a significant drop in F1 score when switching from manually annotated trees to automatically generated ones. Future work will focus on improving robustness to noisy parses or exploring joint learning of syntax and entity recognition to mitigate this dependency.

Summary updated

BibTeX
@misc{aguilar2019dependency,
  author = {Gustavo Aguilar and Thamar Solorio},
  title = {{Dependency-Aware Named Entity Recognition with Relative and Global Attentions}},
  year = {2019},
  eprint = {1909.05166},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.05166},
}
Figure