Better Feature Integration for Named Entity Recognition

Lu Xu, Zhanming Jie, Wei Lu, Lidong Bing

Introduction

Named Entity Recognition (NER) is a fundamental task in natural language processing that involves identifying and classifying entities in text. A significant challenge in NER is capturing long-distance relationships between words. For instance, in the sentence "Precision Castparts Corp. ... will begin trading with the symbol PCP", a model must link "PCP" back to "Corp." to correctly identify it as an organization rather than a product.

Dependency paths illustrating long-range relationships in NER.

While standard sequence models like BiLSTMs are effective for local context, they often struggle with these long-range dependencies. Dependency trees offer a structural "shortcut" for these relationships, but integrating them effectively remains difficult. Previous methods often stacked Graph Convolutional Networks (GCNs) on top of LSTMs, which can lead to training difficulties and a lack of clear interaction between sequence and graph features.

The Synergized-LSTM (Syn-LSTM)

To address these issues, the authors introduce the Synergized-LSTM (Syn-LSTM). This novel RNN architecture modifies the internal structure of the standard LSTM cell to independently assess and integrate contextual word representations ($x_t$) and graph-encoded representations ($g_t$) derived from a GCN.

Architecture and Gating Mechanism

The core innovation of the Syn-LSTM is its specialized gating mechanism. Unlike a standard LSTM with three gates (input, forget, output), the Syn-LSTM introduces a fourth: the structure gate $m_t$.

The internal architecture of the Syn-LSTM cell, featuring the new structure gate $m_t$.

The model calculates two candidate states: a contextual candidate state ($\tilde{c}_t$) from the word input and a structured candidate state ($\tilde{s}_t$) from the graph input. The input gate ($i_t$) and the new structure gate ($m_t$) act as filters, allowing the model to decide how much information to draw from the linear sequence versus the dependency tree at each time step. This "synergy" allows for a more principled fusion of features compared to simple stacking.

Experimental Evaluation

The Syn-LSTM-CRF model was evaluated on four benchmarks: Catalan and Spanish datasets from SemEval 2010 Task 1, and English and Chinese datasets from OntoNotes 5.0. These datasets provide explicit dependency annotations, enabling tests with both "gold-standard" and predicted trees.

Key Insights and Results

  • Robustness to Noise: The $m_t$ gate effectively filters out low-quality dependency information. When tested with random trees, the gate values decreased, showing the model learns to ignore unreliable structural data.
  • Overcoming Stacking Penalties: By integrating features internally, Syn-LSTM avoids the performance drops often seen when stacking GCNs on LSTMs. It outperformed stacked baselines significantly, such as a +4.64 $F_1$ point improvement over BiLSTM-GCN-CRF on Catalan.
  • Efficiency and Performance: Syn-LSTM-CRF achieved state-of-the-art results across multiple languages. On OntoNotes English, it reached an $F_1$ of 90.85 when combined with BERT. It is particularly effective for long sentences (over 60 tokens) and multi-word entities.

Conclusion

The Syn-LSTM provides a robust and efficient framework for integrating structural dependency information into sequence modeling for NER. By using a synergized gating mechanism, the model achieves superior performance and resilience against noisy parse trees. Future work may explore applying this architecture to other structured data types like knowledge graphs or coreference chains.

Summary updated

BibTeX
@inproceedings{xu2021better,
  author = {Lu Xu and Zhanming Jie and Wei Lu and Lidong Bing},
  title = {{Better Feature Integration for Named Entity Recognition}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.271},
}
Figure