Improving Neural Named Entity Recognition with Gazetteers

Chan Hee Song, Dawn J. Lawrie, Tim Finin, James MayfieldarXiv 2020

TL;DR

This paper introduces a method to improve Neural Named Entity Recognition (NER) by incorporating gazetteers (lists of known entities) as features. They demonstrate that this approach, when integrated with powerful pre-trained models like BERT, significantly boosts NER performance across English, Chinese, and a newly created Russian dataset, especially for entity types with good gazetteer coverage.

What Problem Does This Paper Address?

Named Entity Recognition (NER) is a fundamental task in Natural Language Understanding (NLU) that involves identifying and classifying mentions of real-world entities (like people, organizations, and locations) in text. While deep learning models, particularly those using BiLSTM-CRF architectures and pre-trained transformers like BERT, have achieved state-of-the-art results, they often require large amounts of labeled training data. This can be a bottleneck, especially for low-resource languages or specialized domains. Gazetteers, which are curated lists of entities, have historically been used to aid NER systems, but their integration into modern neural architectures, particularly with powerful pre-trained models, needed further exploration. The paper aims to bridge this gap by showing how to effectively generate and leverage gazetteers to enhance neural NER systems, even when labeled data is scarce.

Methods

The core contribution lies in two main areas: gazetteer generation and integration into neural NER models.

  1. Gazetteer Generation: The authors leverage the Wikidata knowledge graph to automatically create gazetteers. They extract canonical names and aliases for various entity types and then filter and process this data to create clean, type-specific lists. For Russian, they also generate inflected and familiar forms of names to increase coverage.
  2. Integration into Neural NER:
    • Feature Engineering: They propose augmenting existing neural NER models (specifically a BERT-BiLSTM-CRF architecture) with gazetteer features. For each word in the input text, they create one-hot encoded vectors indicating whether the word (or an n-gram containing it) matches an entry in a gazetteer. These gazetteer features are then concatenated with BERT embeddings and fed into the BiLSTM layer.
  3. Matching Schemes: Two matching schemes are employed: "full match" (exact n-gram match) and "partial match" (allowing for partial matches, with specific rules for different entity types and languages). For Chinese, due to its character-based nature and potential for false positives, only full matching is used.
  4. Data Augmentation (Exploratory): They also explore using gazetteers to generate additional training data by replacing existing annotated entities with randomly selected gazetteer entities of the same type.

Datasets

  • English OntoNotes v5.0: A well-established dataset for NER, used for evaluating performance on a high-resource, word-based language.
  • Chinese OntoNotes v5.0: Used for evaluating performance on a high-resource, character-based language.
  • Russian Reddit Dataset: A newly created dataset for evaluating performance on a low-resource language. This dataset was constructed from Russian informal text scraped from Reddit, annotated with four core and twelve extended entity types.

Key Insights and Ideas

  • Gazetteers are valuable even with powerful pre-trained models: Despite the strong capabilities of models like BERT, incorporating gazetteer information still provides a significant performance boost, especially when gazetteer coverage is high.
  • Wikidata is a rich source for gazetteer creation: The paper demonstrates a practical and scalable method for generating useful gazetteers from Wikidata, a readily available knowledge source.
  • Language-specific matching is crucial: The decision to forgo partial matching for Chinese highlights the importance of adapting gazetteer integration strategies to the characteristics of different languages.
  • Gazetteer coverage is key to success: The performance gains are directly correlated with how well the gazetteer covers the entities present in the dataset. Low coverage, as observed in the Russian dataset experiments, limits the effectiveness of gazetteer features.
  • Data augmentation with gazetteers is tricky: While intuitively appealing, simply replacing entities with gazetteer entries can lead to anomalous or less informative training examples, especially when entity types are broad or the gazetteer contains obscure entries.

Key Results

  • English OntoNotes: Adding gazetteer features to the BERT-BiLSTM-CRF baseline resulted in a statistically significant improvement of 0.52 F1 score (p < 0.001).
  • Chinese OntoNotes: A statistically significant improvement of 0.3 F1 score (p = 0.003) was observed, though less pronounced than in English, attributed to the decision to forgo partial matching.
  • Russian Reddit: Experiments with gazetteer features on the Russian dataset did not show statistically significant improvements. This was attributed to lower gazetteer coverage and uneven coverage across the dataset splits.
  • Data Augmentation: The approach of generating additional training data using gazetteers yielded mixed results and was generally inconsistent in improving performance, particularly with BERT.

Limitations and Future Work

  • Gazetteer Coverage: The primary limitation identified is the dependency on gazetteer coverage. When coverage is low, the benefits are diminished, as seen in the Russian experiments.
  • Data Augmentation Challenges: The authors acknowledge that simply replacing entities with gazetteer entries can create unnatural examples, especially with broad entity types or when the gazetteer contains obscure entities.
  • Future Work:
    • Improving Data Augmentation: Exploring more sophisticated data augmentation techniques, such as replacing entities with gazetteer entities that belong to finer-grained Wikidata types or using prominence metrics to select more relevant entities.
  • Contextualized Gazetteers: Investigating ways to make gazetteer features more context-aware.
  • Trustworthiness of Gazetteers: Developing methods to ensure gazetteers are trustworthy and align well with the training data to maximize their helpfulness.
  • Standardizing Gazetteers: Advocating for gazetteer features as a standard addition to NER systems, given that they generally do not harm performance even with low coverage.

Summary updated

BibTeX
@misc{song2020improving,
  author = {Chan Hee Song and Dawn J. Lawrie and Tim Finin and James Mayfield},
  title = {{Improving Neural Named Entity Recognition with Gazetteers}},
  year = {2020},
  eprint = {2003.03072},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.03072},
}
Figure