Abstract
Named Entity Recognition (NER) typically relies on extensive human-annotated datasets, which are costly and time-consuming to produce. Weak supervision offers an alternative by leveraging noisy labels from heuristics or dictionaries, but these sources often conflict or lack context. This paper introduces CHMM-ALT, a framework that integrates the structured denoising capabilities of Hidden Markov Models (HMMs) with the contextual power of BERT. By neuralizing HMM parameters and employing an iterative alternate-training loop, the model achieves state-of-the-art performance, outperforming existing weakly supervised baselines by an average of 4.83 F1 points across diverse domains.
Introduction
Named Entity Recognition (NER) is a fundamental task in natural language processing, yet its dependence on high-quality manual labels remains a significant bottleneck. Weak supervision addresses this by aggregating multiple "noisy" sources, such as gazetteers or rule-based systems. However, traditional methods for aggregating these sources, like the Hidden Markov Model (HMM), often suffer from static parameters that ignore local word context and struggle with long-distance dependencies.
To overcome these limitations, we propose the Conditional Hidden Markov Model (CHMM) and an iterative training procedure called CHMM-ALT. This approach allows the model to learn from noisy data while benefiting from the deep semantic representations provided by modern language models.
Methodology
1. Conditional Hidden Markov Model (CHMM)
The core innovation is the "neuralization" of the HMM. Unlike standard HMMs that use fixed transition and emission matrices, the CHMM conditions these probabilities on the specific context of each token.
As shown in the architecture above, the model extracts contextual embeddings from BERT for every token. These embeddings are passed through Multi-Layer Perceptrons (MLPs) to predict token-wise transition and emission probabilities. This effectively relaxes the Markov constraint, as the "local" transitions are now informed by the "global" context captured by BERT.
2. Alternate-Training (CHMM-ALT)
The framework utilizes a two-phase iterative process to maximize the synergy between the structured reasoning of the CHMM and the generalization capabilities of a standard BERT-NER classifier.
- Phase I: The CHMM is trained on initial noisy labels to produce denoised "soft" labels. These labels are then used to fine-tune a BERT-NER model.
- Phase II: The predictions from the BERT-NER model are treated as a new, high-quality weak source. The CHMM is re-trained using the original sources plus this new BERT-derived source. This loop continues until convergence, allowing the model to discover entity patterns that were not present in the original weak labeling rules.
Experimental Results
The model was evaluated on four benchmarks: CoNLL 2003 (General), LaptopReview (Technical), and NCBI-Disease/BC5CDR (Biomedical).
Key findings include:
- State-of-the-Art Performance: CHMM-ALT consistently outperformed strong baselines like BOND and Linked HMM, showing an average F1 improvement of 4.83.
- Domain Robustness: The framework proved effective across both general news and highly specialized biomedical text, demonstrating its versatility as a general-purpose denoiser.
- Synergistic Gains: Ablation studies confirmed that both the conditional architecture and the iterative alternate-training loop are critical. Removing either component led to significant drops in F1 scores.
Discussion and Future Work
The success of CHMM-ALT stems from the "Precision-Recall Handshake": the CHMM acts as a high-precision filter, while BERT-NER acts as a high-recall explorer. By feeding BERT's generalizations back into the CHMM, the system synthesizes new knowledge beyond the original weak sources.
However, the iterative nature of the training process increases computational costs compared to single-pass methods. Future research may explore more complex constraints on transition probabilities or methods to reduce the sensitivity of the Expectation-Maximization (EM) process to initial parameters.
Conclusion
CHMM-ALT represents a significant step forward for weakly supervised NER. By bridging the gap between classical statistical modeling and modern deep learning, it provides a robust, high-performance solution for entity recognition in domains where labeled data is scarce.
Summary updated