Abstract
Named Entity Recognition (NER) is a critical component of many NLP pipelines, yet its performance often degrades significantly when applied to new domains without annotated data. This paper proposes a weak supervision framework that eliminates the need for hand-labelled data by aggregating diverse, noisy "labelling functions" (LFs) through a specialized Hidden Markov Model (HMM). By leveraging out-of-domain models, gazetteers, and heuristics, the framework generates high-quality probabilistic labels used to train state-of-the-art neural NER models. Experimental results on benchmark datasets demonstrate that this approach significantly outperforms traditional unsupervised domain adaptation methods, achieving an entity-level $F_1$ of 0.716 on the CoNLL 2003 dataset without using any gold-standard training labels.
Introduction
The "brittleness" of Named Entity Recognition (NER) models remains a significant hurdle for real-world deployment. A model optimized for news articles frequently fails when transitioned to specialized domains like legal or medical texts. While transfer learning offers a partial solution, it typically necessitates a small set of manually labelled "gold-standard" data in the target domain for fine-tuning—a process that is often prohibitively expensive or slow.
This research addresses the "zero-label" scenario: building high-performing NER models for a new domain without any human-annotated training data. The authors propose a "wisdom of the algorithmic crowd" approach, using weak supervision to bridge the gap between expert knowledge and deep learning.
Methodology
The proposed pipeline consists of three distinct stages designed to transform noisy, disparate signals into a robust sequence labelling model.
1. Labelling Functions (LFs)
Rather than relying on a single source of truth, the framework utilizes 52 diverse labelling functions to annotate the target text. These LFs include:
- Out-of-domain models: Pre-trained NER models from other datasets (e.g., OntoNotes).
- Gazetteers: Large lists of names, locations, and organizations from Wikipedia and GeoNames.
- Heuristics: Hand-crafted rules based on casing, regex, or part-of-speech tags.
- Document-level constraints: Rules that enforce consistency (e.g., if "Apple" is an ORG once in a document, it's likely an ORG throughout).
2. HMM Aggregation
The core innovation lies in the aggregation of these noisy LFs. Unlike previous frameworks like Snorkel, which treat data points as independent, this approach employs a Hidden Markov Model (HMM) to capture the sequential dependencies of language. The HMM uses Dirichlet distributions for emissions, allowing it to process "soft" probabilistic predictions from LFs rather than binary hard labels.
3. Sequence Labelling Model
The final step involves training a standard neural NER model (BiLSTM-CNN-CRF) using the probabilistic labels generated by the HMM. This allows the final model to generalize beyond the specific rules of the LFs by learning from the underlying patterns in the data.
Experimental Setup and Results
The framework was evaluated on two English datasets: the standard CoNLL 2003 benchmark and a new Reuters & Bloomberg News dataset featuring 9 fine-grained entity types.
As shown in the results, the weak supervision approach demonstrated substantial improvements over existing baselines. On the CoNLL 2003 dataset, the HMM-aggregated labels achieved an entity-level $F_1$ score of 0.716, significantly outperforming unsupervised domain adaptation methods like AdaptaBERT (0.691) and mSDA (0.561). The HMM parameter estimation proved highly efficient, taking less than 30 minutes on the full dataset.
Conclusion
This work demonstrates that weak supervision is a viable and efficient alternative to manual labelling for NER in new domains. By allowing labelling functions to output probabilities and incorporating document-level context, the HMM aggregation becomes much more robust than simple majority voting. Future research will focus on addressing the assumption of LF independence and automating the selection of optimal LF subsets.
Summary updated