Improving Named Entity Recognition with Attentive Ensemble of Syntactic Information

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

Introduction

Named Entity Recognition (NER) is a fundamental task in natural language processing, aimed at identifying and classifying entities such as persons, locations, and organizations within text. While modern neural models have achieved high performance, they often struggle with ambiguous contexts where the syntactic structure of a sentence is the primary disambiguating factor. For instance, in the phrase "the Bill of Rights," a model might incorrectly label "Bill" as a person without understanding that it serves as the head of a noun phrase modified by "of Rights."

The integration of syntactic information—such as part-of-speech (POS) tags, syntactic constituents, and dependency relations—presents a significant challenge. Most existing approaches rely on off-the-shelf parsers, which are prone to errors, especially in informal or noisy text. Simply concatenating these potentially noisy features to word embeddings forces the NER model to trust unreliable data. This research introduces a method to selectively attend to the most relevant and accurate syntactic features for any given token.

Proposed Methodology

The core of the proposed system is a three-stage "Attentive Ensemble" designed to robustly integrate syntactic information:

  1. Key-Value Memory Networks (KVMN): For each word, the model stores context features as "keys" and corresponding syntactic information as "values." This structure allows the model to query the memory bank based on the current word's neighborhood to retrieve the most relevant syntactic labels.
  2. Syntax Attention: Recognizing that different types of syntax vary in utility depending on the context, this layer calculates a weighted sum of outputs from multiple KVMNs. It effectively performs a "vote" to determine which syntactic source (e.g., POS vs. dependency) is most trustworthy for a specific token.
  3. Gate Mechanism: A reset gate determines the final mixture of the syntactic ensemble and the main text representation. If the syntactic information is deemed noisy or redundant, the gate can block its influence, allowing the model to rely solely on the context encoder.

The architecture utilizes an Adapted-Transformer as the context encoder and a Conditional Random Field (CRF) for sequence labeling. It also employs "mega-embeddings," combining pre-trained representations like BERT, ELMo, and GloVe.

The comprehensive neural architecture of the proposed model, illustrating the integration of syntactic information through KVMNs, Syntax Attention, and a Gating Mechanism.

Experimental Setup

The model, referred to as AESINER (Attentive Ensemble of Syntactic Information for NER), was evaluated across six diverse benchmarks in English and Chinese. These datasets cover a range of genres, from formal news to informal social media text, providing a rigorous test for the model's ability to handle varying levels of syntactic noise.

Statistics for the six benchmark datasets used in evaluation, including sentence counts (# S.) and entity counts (# E.) for training, development, and test sets.

The English datasets include OntoNotes 5.0, WNUT-16, and WNUT-17. The Chinese datasets comprise OntoNotes 4.0, Resume, and Weibo.

Key Results and Discussion

AESINER outperformed previous state-of-the-art models on all six datasets. Notable achievements include an F1 score of 90.32 on OntoNotes 5.0 (EN) and 69.78 on Weibo (ZH). The model showed particularly strong gains on "noisy" datasets like Weibo and WNUT, suggesting that the attentive ensemble effectively extracts useful signals even from imperfect parser outputs.

A key insight from this work is that syntactic features should be treated as suggestions rather than ground truth. The context-sensitive weighting allows the model to adaptively prioritize different syntactic structures—for example, favoring internal constituent structure for some entities while relying on dependency relations to verbs for others.

Conclusion

This paper demonstrates that an attentive ensemble of syntactic information can significantly improve NER performance by intelligently filtering noise from automated parsers. While the multi-stage ensemble adds computational complexity and remains dependent on the availability of external parsers, it provides a robust framework for structural information integration. Future work may extend this approach to other tasks such as relation extraction or semantic role labeling.

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