Weakly Supervised Sequence Tagging from Noisy Rules

Esteban Safranchik, Shiying Luo, Stephen H. BachAAAI 2020

Introduction

Deep learning models for sequence tagging tasks, such as Named Entity Recognition (NER), typically demand extensive human-annotated datasets. Weak supervision offers a scalable alternative by using heuristic rules to label data automatically. However, standard weak supervision frameworks often treat tokens as independent observations, failing to capture the structural dependencies inherent in natural language. This paper proposes a novel framework that incorporates "linking rules" and a "Linked Hidden Markov Model" (linked HMM) to effectively denoise heuristic supervision for sequence tagging.

Methodology

The proposed framework moves beyond simple token-level labeling by introducing two distinct types of supervision:

  1. Tagging Rules: These are traditional heuristics that assign a specific tag to a token based on patterns (e.g., a dictionary match or a suffix like "-ase").
  2. Linking Rules: A key innovation of this work, these rules indicate whether adjacent tokens should share the same tag or have different tags. For instance, a rule might specify that two consecutive capitalized words are likely part of the same entity.

To integrate these noisy sources, the authors developed the Linked Hidden Markov Model (linked HMM). Unlike standard HMMs, this generative model treats the true tags as latent variables and explicitly models the dependencies introduced by linking rules.

The Linked HMM architecture, where y_t represents latent tags and lambda represents observed rule outputs.

The model learns the accuracies and propensities of each rule without ground-truth labels. The resulting probability distributions are then used to train a discriminative neural tagger (Bi-LSTM-CRF) using a noise-aware loss function that accounts for rule uncertainty.

Experimental Evaluation

The framework was evaluated on several benchmarks, including NCBI-Disease, BC5CDR, and LaptopReview. The authors manually defined a set of tagging and linking rules for each domain, leveraging existing dictionaries and common heuristics.

Summary of the number of tagging and linking rules applied to each dataset.

Key Results

  • Performance Gains: The neural taggers trained with this framework outperformed existing weak supervision baselines like Snorkel and AutoNER by an average of 2.6 F1 points.
  • Structural Advantage: Modeling tag dependencies via the linked HMM provided a significant boost, improving direct predictions by approximately 7 F1 points compared to i.i.d. models.
  • Efficiency: By utilizing linking rules, the framework eliminates the need for complex, manually-tuned candidate span generators, simplifying the deployment of weak supervision in new domains.

Conclusion and Future Work

This research demonstrates that incorporating structural dependencies through linking rules significantly improves the quality of weak supervision for sequence tagging. While the current model assumes uniform noise distributions for rules, future work could explore modeling correlated rule errors. Additionally, extending the framework to more complex tagging schemes like BIOES and automating rule discovery remain promising directions for further enhancing the scalability of this approach.

Summary updated

BibTeX
@inproceedings{safranchik2020weakly,
  author = {Esteban Safranchik and Shiying Luo and Stephen H. Bach},
  title = {{Weakly Supervised Sequence Tagging from Noisy Rules}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.6009},
}
Figure