Improving Named Entity Recognition with Attentive Ensemble of Syntactic Information

Yuyang Nie, Yuanhe Tian, Yan Song, Xiang Ao, Xiang Wan

Abstract

Named entity recognition (NER) is highly sensitive to sentential syntactic and semantic properties where entities may be extracted according to how they are used and placed in the running text. To model such properties, one could rely on existing resources to provide helpful knowledge to the NER task; some existing studies proved the effectiveness of doing so, yet are limited in appropriately leveraging the knowledge, such as distinguishing the important ones for a particular context. In this paper, we improve NER by leveraging different types of syntactic information through an attentive ensemble, which functionalizes by the proposed key-value memory networks, syntax attention, and the gate mechanism for encoding, weighting, and aggregating such syntactic information, respectively. Experimental results on six English and Chinese benchmark datasets suggest the effectiveness of the proposed model and show that it outperforms previous studies on all experiment datasets.

Introduction

Named Entity Recognition (NER) is the task of identifying entities like people, locations, and organizations in text. While modern neural models are excellent at capturing general context, they often struggle with the structural nuances of language. Syntactic information—how words relate to each other structurally—is a goldmine for NER, but it is challenging to use effectively.

Previous attempts typically concatenated extra features, such as part-of-speech (POS) tags, onto word embeddings. This approach has two major flaws: noise sensitivity, where errors from external parsers mislead the model, and feature conflict, where different syntactic signals (e.g., dependency vs. constituency trees) provide contradictory information. Simple concatenation often fails to help the model decide which signal to trust in a specific context.

Syntactic information types: (a) POS Labels, (b) Syntactic Constituents, and (c) Dependency Relations.

The Attentive Ensemble Framework

To address these limitations, the authors propose a three-stage "Attentive Ensemble" architecture to incorporate syntactic information dynamically:

  1. Key-Value Memory Networks (KVMN): For each word, the model extracts context features (keys) and their corresponding syntactic labels (values). The KVMN allows the model to "query" the memory using the current word's hidden state, effectively weighting the syntactic information based on how well the context matches.
  2. Syntax Attention: Since the model uses three types of syntax (POS labels, Syntactic Constituents, and Dependency Relations), it needs a way to combine them. This attention layer learns to assign different weights to each syntactic type for every word, allowing the model to prioritize the most informative signal.
  3. Gate Mechanism: Finally, a gating function acts as a "filter" between the standard text representation (from an Adapted-Transformer) and the synthesized syntactic ensemble. It dynamically decides how much of the syntactic signal should actually influence the final entity label.
The overall architecture of the proposed model, featuring Key-Value Memory Networks, Syntax Attention, and a Gate Mechanism.

The backbone of the model uses an Adapted-Transformer for encoding and a Conditional Random Field (CRF) for the final sequence decoding.

Experimental Evaluation

The model, AESINER (Attentive Ensemble of Syntactic Information for NER), was evaluated on six diverse benchmark datasets to ensure robustness across languages and domains:

  • English: OntoNotes 5.0 (ON5e), WNUT-16 (social media), and WNUT-17 (emerging entities).
  • Chinese: OntoNotes 4.0 (ON4c), Resume (RE), and Weibo (WE - social media).

AESINER achieved state-of-the-art (SOTA) F1 scores on all six datasets. For instance, it reached 90.32 F1 on ON5e, outperforming previous BERT-based models, and 69.78 F1 on the challenging Weibo dataset. Ablation studies proved that every component—the KVMN, the Syntax Attention, and the Gate—contributed significantly to the final performance. Notably, the researchers found that simple concatenation actually hurt performance in several cases, highlighting the necessity of the attentive ensemble.

Discussion and Conclusion

A key insight of this work is treating syntax as a flexible "hint" rather than a rigid rule. By using a gate mechanism, the model can mitigate noise from external parsers, which is especially crucial for informal text like social media. While the KVMN provides context-aware weighting, the ensemble approach ensures that the model leverages the strengths of multiple syntactic perspectives.

Future work may address the computational overhead of running multiple syntactic parsers and explore applying this attentive ensemble approach to other structural NLP tasks, such as relation extraction or event detection.

Summary updated

BibTeX
@inproceedings{nie2020improving,
  author = {Yuyang Nie and Yuanhe Tian and Yan Song and Xiang Ao and Xiang Wan},
  title = {{Improving Named Entity Recognition with Attentive Ensemble of Syntactic Information}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.findings-emnlp.378},
}
Figure