Self-Adaptive Named Entity Recognition by Retrieving Unstructured Knowledge

Kosuke Nishida, Naoki Yoshinaga, Kyosuke Nishida

Abstract

Named Entity Recognition (NER) often struggles with domain-specific data scarcity and static knowledge limitations. We present SA-NER, a self-adaptive framework that enhances NER models by dynamically retrieving relevant context from unstructured knowledge bases (UKBs) at inference time. By identifying uncertain entity predictions and performing targeted "entity-level" queries, SA-NER effectively bridges knowledge gaps, outperforming standard baselines by up to 2.35 F1 points across multiple domains.

Introduction

NER is a fundamental NLP task, yet models typically rely on fixed parameters learned during training. This leads to two primary issues: the high cost of expert-annotated domain-specific data and the inability to adapt to new or rare entities post-training. While gazetteers offer a partial solution, they are often unavailable for niche fields. SA-NER addresses these challenges by providing models with a "search engine" capability to disambiguate uncertain entities using raw, unstructured text.

Methodology: The SA-NER Framework

The SA-NER system operates in a two-stage "self-adaptive" loop. First, the model performs an initial "gut check" pass on the input text, assigning confidence scores to predicted entities. Any entity falling below a confidence threshold ($\lambda_{conf}$) is flagged as "uncertain."

Detailed overview of the SA-NER framework, illustrating the retrieval of knowledge from labeled and unlabeled UKBs and its integration into the BERT model.

In the second stage, the model uses these uncertain entities as specific queries to retrieve the top-$m$ most relevant snippets from a massive Unstructured Knowledge Base (UKB), such as Wikipedia. Unlike traditional sentence-level retrieval, this entity-level retrieval focuses specifically on the usage of the ambiguous phrase. To integrate this external knowledge efficiently, the retrieved snippets are concatenated with the original input. A sparse attention mechanism is employed to manage the increased context length, ensuring the model focuses on how the retrieved knowledge informs the original input rather than redundant self-interactions within the knowledge snippets.

Experimental Setup

The model was evaluated on several benchmarks to test its cross-domain robustness:

  • CrossNER: A challenging dataset covering five domains: Politics, Science, Music, Literature, and AI.
  • Finance: A medium-scale dataset of U.S. SEC filings.
  • CoNLL03: The standard benchmark for general-domain NER (Reuters news).
  • Knowledge Source: Wikipedia served as the primary source for the Unstructured Knowledge Base.

Results and Analysis

SA-NER demonstrates significant performance gains over strong baselines like BERT and NERBERT. On average, the model achieved a 2.35 F1 point improvement across the CrossNER domains.

Performance comparison of SA-NER against baselines across multiple domains and datasets.

Key Insights

  • Precision in Retrieval: Entity-level queries proved superior to sentence-level retrieval, providing a +1.12 F1 boost compared to +0.79. This confirms that targeting specific uncertain phrases is more effective for disambiguation.
  • Handling Unseen Entities: The framework is particularly effective for entities not seen during pre-training, where it improved performance by 3.28 points, proving that external retrieval effectively fills knowledge gaps.
  • Efficiency via Confidence: By only triggering retrieval for low-confidence predictions, the system maintains efficiency and avoids introducing noise for well-understood entities.

Conclusion and Future Work

SA-NER successfully leverages unstructured text to improve NER accuracy dynamically. While highly effective for English, future work will explore adapting the n-gram-based retrieval for non-cased or non-segmented languages like Chinese. Additionally, further refinement of knowledge filtering could help mitigate misclassifications in domains with significant label imbalance.

Summary updated

BibTeX
@inproceedings{nishida2023self,
  author = {Kosuke Nishida and Naoki Yoshinaga and Kyosuke Nishida},
  title = {{Self-Adaptive Named Entity Recognition by Retrieving Unstructured Knowledge}},
  booktitle = {EACL},
  year = {2023},
  doi = {10.18653/v1/2023.eacl-main.233},
}
Figure