Introduction
Named Entity Recognition (NER) is a fundamental task in natural language processing, aimed at identifying and classifying entities within text. While general-purpose Knowledge Bases (KBs) like Wikidata offer a wealth of information, integrating them into domain-specific NER tasks remains challenging due to heterogeneity between the KB and the target task. This paper introduces KaNa (Knowledge-aware Named Entity Recognition), a framework designed to bridge this gap through unsupervised denoising and graph-based knowledge injection.
The Challenge of Heterogeneity in NER
Incorporating external knowledge often introduces noise that can degrade model performance. The authors identify three primary types of heterogeneity that hinder effective knowledge integration:
- Task-Irrelevant Noise: Entities in the KB may share names with text spans but belong to irrelevant categories (e.g., the band "Cracker" vs. the restaurant "Cracker Barrel").
- Namespace Mismatches (Complex Noise): KB types often differ from NER labels (e.g., "President" vs. "Person"), leading to false rejections if the systems are not properly aligned.
- Type-Compound Noise: A single KB entity may have numerous types, many of which are irrelevant to the specific context (e.g., Patrick Swayze listed as "Actor," "Singer," and "Disease").
The KaNa Framework
To address these issues, KaNa employs three key components designed to filter noise and harmonize data structures:
- Knowledge Denoising via Type Projection: Instead of relying on expensive manual mapping, KaNa uses a Type System Projector to map both NER labels and KB types into a shared, low-dimensional latent space. This allows the model to recognize semantic similarities between disparate type systems automatically.
- Unsupervised Noise Detection: Using Multi-Instance Learning (MIL), the model learns to distinguish helpful entities from noise without requiring gold-standard labels. It treats candidate entities as a "positive bag" and contrasts them against "negative samples" drawn from unrelated KB categories.
- Graph-Based Injection: Filtered entities are integrated into a text-entity graph. Graph Attention Networks (GATs) allow the model to dynamically weigh the importance of KB information based on the surrounding text context before passing the final representation to a standard CRF layer for prediction.
Experimental Results
KaNa was evaluated on five benchmark datasets covering diverse domains: MIT-Movie, MIT-Restaurant, RE3D (defense), AnEM (medical), and BC5CDR-Disease (biomedical). The framework achieved state-of-the-art results, with an average F1 score of 75.13, outperforming the strong BERT-CRF baseline by an average of 1.33 points.
Ablation studies confirmed the necessity of the denoising module; removing it led to a significant performance drop (e.g., from 76.38 to 74.64 F1 on the MIT-Movie task). Furthermore, the authors found that adding "one-hop" knowledge (related entities) actually decreased performance by 0.82%, suggesting that keeping knowledge injection focused is vital to avoid overwhelming the model with irrelevant data.
Conclusion
KaNa demonstrates that effectively leveraging KBs for NER requires more than just data retrieval; it requires sophisticated alignment and denoising. By projecting types into a shared space and using graph-based attention, KaNa successfully alleviates the heterogeneity problem across diverse, specialized domains. Future work will explore incorporating structural KB relations and extending the framework to handle multiple domains simultaneously.
Summary updated