Sparse Conditional Hidden Markov Model for Weakly Supervised Named Entity Recognition

Yinghao Li, Le Song, Chao Zhang · DOI

Abstract

Weakly supervised named entity recognition (NER) methods train label models to aggregate token annotations from multiple noisy labeling functions (LFs) without manual labels. To succeed, a label model must contextually identify and emphasize high-performing LFs while down-weighting under-performers—a task complicated by the absence of ground truth. We propose the Sparse Conditional Hidden Markov Model (Sparse-CHMM). Unlike traditional HMM-based methods that predict entire emission matrices, Sparse-CHMM focuses on estimating diagonal elements as LF reliability scores. These sparse scores are expanded into full emission matrices via pre-defined functions and augmented with weighted XOR (WXOR) scores to track incorrect entity observations. Optimized through a three-stage unsupervised training pipeline, Sparse-CHMM achieves a 3.01 average $F_1$ score improvement over Wrench benchmark baselines across five datasets. Experiments demonstrate that Sparse-CHMM's estimated reliability scores correlate strongly with true LF $F_1$ scores.

Introduction

Named Entity Recognition (NER) is a fundamental task in Natural Language Processing (NLP), yet its reliance on large-scale, manually annotated datasets remains a significant bottleneck. Weak supervision offers a scalable alternative by using Labeling Functions (LFs)—such as heuristics, pattern matching, or external knowledge bases—to generate noisy labels. However, aggregating these conflicting and incomplete labels into high-quality training data requires sophisticated "label models."

While the Conditional Hidden Markov Model (CHMM) represents a state-of-the-art approach by using BERT embeddings to model LF behavior, it suffers from over-parameterization. By attempting to predict every possible error an LF might make (the full emission matrix), CHMM becomes difficult to train and prone to local optima. Sparse-CHMM addresses these challenges by introducing structural sparsity and a refined training strategy.

Methodology: The Sparse-CHMM Approach

Sparse-CHMM simplifies the aggregation process by focusing on the most critical aspects of LF behavior through three primary innovations.

1. Sparse Emission Matrices and Expansion Functions

Instead of predicting a full $L \times L$ emission matrix (where $L$ is the number of labels), Sparse-CHMM predicts only the diagonal elements. These elements represent the "reliability" of an LF for a given token. To reconstruct the full matrix, the model uses pre-defined expansion functions that encode common-sense heuristics—for instance, the observation that LFs are more likely to mislabel an entity as "Outside" (O) than as a different entity type. This reduction in parameters acts as a powerful regularizer, preventing the model from overfitting to noise.

2. Weighted XOR (WXOR) Scores

To capture specific error patterns without the overhead of a full matrix, the authors introduce WXOR scores. This component tracks the probability of an LF observing an incorrect entity by monitoring disagreements between LFs. This allows the model to refine off-diagonal elements (error probabilities) dynamically during training without requiring a massive neural network.

3. Three-Stage Training Pipeline

To ensure stability and avoid local optima, Sparse-CHMM employs a staged training approach:

  • Stage 1: Focuses on transition patterns and basic LF reliability.
  • Stage 2: Refines the WXOR error-tracking mechanisms.
  • Stage 3: Fine-tunes transition parameters while keeping the emission (LF behavior) fixed.

Additionally, the model utilizes Dirichlet Sampling, which treats predictions as priors and adds controlled noise during training. This helps the model explore the loss landscape more effectively and avoid suboptimal solutions.

Experimental Evaluation

The model was evaluated on five diverse NER benchmarks from the Wrench repository: CoNLL 2003 (news), LaptopReview (technical), NCBI-Disease and BC5CDR (biomedical), and OntoNotes 5.0 (large-scale general).

Performance and Efficiency

Sparse-CHMM outperformed existing baselines by an average of 3.01 $F_1$ points. Notably, the model showed significant improvements in recall, suggesting a superior ability to identify entities that noisy LFs might otherwise obscure.

In terms of efficiency, Sparse-CHMM demonstrated a clear advantage on large datasets. On the OntoNotes 5.0 dataset, it was approximately 3x faster per epoch than the standard CHMM and required fewer epochs to reach convergence, highlighting the benefits of its reduced parameter space.

Insights: Reliability Discovery

A key finding of the research is the model's ability to perform "reliability discovery." Despite never seeing ground truth labels, the internal reliability scores estimated by Sparse-CHMM correlate almost perfectly with the actual $F_1$ scores of the LFs. This confirms that the model successfully learns to distinguish between high-quality and low-quality supervision sources in an entirely unsupervised manner.

Conclusion

Sparse-CHMM demonstrates that in the context of weak supervision, structural sparsity can lead to superior performance. By constraining the model's focus to diagonal reliability scores and using heuristic expansion, Sparse-CHMM achieves better accuracy, faster training, and greater robustness than more complex predecessors. Future work includes extending this sparse HMM framework to other sequence labeling tasks such as part-of-speech tagging and dialogue slot filling.

Summary updated

BibTeX
@inproceedings{li2022sparse,
  author = {Yinghao Li and Le Song and Chao Zhang},
  title = {{Sparse Conditional Hidden Markov Model for Weakly Supervised Named Entity Recognition}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2022},
  doi = {10.1145/3534678.3539247},
}
Figure