Neural-Hidden-CRF: A Robust Weakly-Supervised Sequence Labeler

Zhijun Chen, Hailong Sun, Wanhao Zhang, Chunyi Xu, Qianren Mao, Pengpeng Chen · DOI

Introduction

Deep learning models for sequence labeling, such as Named Entity Recognition (NER) and slot filling, typically require large amounts of high-quality, expert-annotated data. However, obtaining such "gold" labels is often prohibitively expensive and time-consuming. Weak Supervision (WS) has emerged as a viable alternative, leveraging noisy labels from non-expert crowd workers, heuristic rules, or pre-trained classifiers.

The primary challenge in Weakly-Supervised Sequence Labeling (WSSL) is effectively modeling the dependencies between adjacent labels while accounting for the noise in the supervision sources. Traditional approaches often rely on Hidden Markov Models (HMMs), which utilize local normalization. This can lead to the "label bias problem," where the model becomes overly influenced by local patterns and fails to optimize for the global sequence context.

Methodology: The Neural-Hidden-CRF

To address these limitations, we introduce the Neural-Hidden-CRF, an undirected graphical model that treats true labels as latent variables between the input text and multiple noisy weak labels.

The Neural-Hidden-CRF graphical model illustrating the relationship between input tokens (x), hidden ground-truth labels (t), and noisy weak labels (y).

Global Normalization and BERT Integration

Unlike HMM-based models, the Neural-Hidden-CRF employs a Conditional Random Field (CRF) approach to score the entire sequence holistically. By using global normalization, the model ensures that the probability of a sequence is normalized over all possible paths, effectively mitigating the label bias problem.

The model integrates BERT to extract rich, contextual semantic features from input tokens. These features serve as emission scores, guiding the model toward the most likely hidden ground-truth labels. A hidden CRF layer captures internal dependencies between these latent labels, ensuring structural consistency (e.g., valid IOB tag sequences).

Interpretable Noise Modeling

A key feature of the Neural-Hidden-CRF is its ability to explicitly learn "confusion matrices" for each weak supervision source. These transition matrices allow the model to automatically identify the reliability of different sources and understand their specific biases. This makes the model's treatment of noise highly interpretable, as one can visualize how specific sources tend to misclassify certain entity types.

Experimental Evaluation

The framework was evaluated on four benchmark datasets representing diverse noise profiles:

  1. CoNLL-03 (MTurk): NER data with real-world noisy labels from Amazon Mechanical Turk.
  2. CoNLL-03 (WS): NER data with labels generated by programmatic rules.
  3. WikiGold (WS): Wikipedia NER data with rule-based weak labels.
  4. MIT-Restaurant (WS): Slot filling for restaurant queries using weak supervision.

Results and Discussion

The Neural-Hidden-CRF achieved new state-of-the-art results across all evaluated benchmarks. On average, it outperformed the previous leading model (CHMM) by 2.80 F1 points in generalization to unseen test data and improved truth inference from noisy training data by 2.23 F1 points.

Visualization of real vs. estimated confusion matrices and correlation coefficients across four datasets, demonstrating the model's ability to accurately recover noise distributions.

The model demonstrates significant robustness to initialization. Even when starting with simple majority voting from noisy sources, the Neural-Hidden-CRF effectively denoises the signal during training. Furthermore, despite its global perspective, the model maintains a computational complexity of $O(LJK^2)$ (where $L$ is sequence length, $J$ is the number of sources, and $K$ is the number of categories), making it efficient for practical applications.

Conclusion and Future Work

The Neural-Hidden-CRF represents a significant advancement in weakly-supervised sequence labeling by combining the contextual power of BERT with the global optimization of CRFs. While highly effective, future work could explore the impact of even larger language model backbones and address potential dependencies between different weak supervision sources, which are currently assumed to be independent.

Summary updated

BibTeX
@inproceedings{chen2023neural,
  author = {Zhijun Chen and Hailong Sun and Wanhao Zhang and Chunyi Xu and Qianren Mao and Pengpeng Chen},
  title = {{Neural-Hidden-CRF: A Robust Weakly-Supervised Sequence Labeler}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2023},
  doi = {10.1145/3580305.3599445},
}
Figure