Self-Training with Weak Supervision

Giannis Karamanolakis, Subhabrata Mukherjee, Guoqing Zheng, Ahmed Hassan Awadallah

Introduction

Deep learning models typically require massive amounts of high-quality labeled data, which is often prohibitively expensive or time-consuming to obtain. Weak supervision has emerged as a popular alternative, where domain experts write heuristic rules—such as regular expressions or keyword lexicons—to automatically label data. However, these rules are often noisy, have limited coverage, and frequently conflict with one another.

Overview of ASTRA framework combining weak rules with a Teacher-Student iterative loop.

To address these challenges, we introduce ASTRA (weAkly-supervised Self-TRAining), a novel framework that synergizes the precision of domain-specific rules with the broad coverage of self-training. ASTRA leverages a "Student" model to predict labels for data not covered by rules and a "Teacher" network to intelligently aggregate noisy sources using an attention mechanism.

The Challenges of Weak Supervision

Existing weak supervision frameworks like Snorkel often struggle with three primary hurdles:

  1. Noise: Heuristic rules are inherently imperfect and can mislabel instances depending on context.
  2. Low Coverage: Rules typically apply only to a small fraction of the dataset, leaving a significant amount of "dark data" unused.
  3. Conflicts: Multiple rules may assign different labels to the same data point.

ASTRA aims to utilize all available data—labeled, unlabeled, and rule-covered—while recognizing that a rule's reliability is context-dependent.

Methodology: The ASTRA Framework

ASTRA operates through an iterative co-training loop between two primary components: a Student model and a Teacher network (Rule Attention Network).

Detailed architecture of the Rule Attention Network (RAN) and the iterative self-training process.

The Student Model

The Student is a deep neural network (e.g., BERT or ELMo) initially trained on a small set of labeled data. Its role is to generate "pseudo-labels" for the entire unlabeled dataset, effectively extending the reach of the framework to instances where human-written rules do not apply.

The Teacher (Rule Attention Network - RAN)

The RAN is the core innovation of ASTRA. Instead of simple rule averaging, the RAN learns to aggregate labels from multiple weak rules and the Student’s pseudo-labels. It employs an attention mechanism to assign instance-specific weights to each source. By using contextualized representations from the Student, the Teacher can learn, for example, that a specific rule is highly reliable for short sentences but noisy for longer ones.

Learning Objective

The RAN is trained using a semi-supervised objective that minimizes cross-entropy loss on the small labeled set to maintain grounding in ground truth. Simultaneously, it minimizes entropy on the unlabeled set, encouraging a consensus among the various rules and the Student's predictions.

Experimental Evaluation

ASTRA was evaluated across six diverse text classification benchmarks, including TREC (question classification), SMS & YouTube (spam detection), and relation extraction tasks. These datasets represent varying levels of rule coverage and sparsity.

Key Results

  • Performance Gains: ASTRA outperformed Snorkel by an average of 6.1% in accuracy and surpassed the strong ImplyLoss baseline by 3.1%.
  • Handling Sparsity: In scenarios where only 10% of rules were available, ASTRA demonstrated its robustness, outperforming the next best baseline by 12-19%.
  • Coverage Improvement: In the TREC dataset, ASTRA increased the effective data coverage (where multiple sources agree) from 46% to 95%.
  • Ablation Study: Removing the Student's pseudo-labels from the Teacher's aggregation resulted in a 3.2% performance drop, highlighting the importance of the self-training component.

Conclusion and Future Work

ASTRA demonstrates that combining weak supervision with self-training through a context-aware attention mechanism significantly improves model performance and data coverage. While currently focused on classification and slot-filling, future research could extend ASTRA to more complex structured prediction tasks or explore more sophisticated rule embeddings to further enhance the attention mechanism's effectiveness.

Summary updated

BibTeX
@inproceedings{karamanolakis2021self,
  author = {Giannis Karamanolakis and Subhabrata Mukherjee and Guoqing Zheng and Ahmed Hassan Awadallah},
  title = {{Self-Training with Weak Supervision}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.66},
}
Figure