Introduction
In modern Natural Language Processing (NLP), the performance of deep learning models is heavily dependent on large volumes of high-quality labeled data. However, manual annotation remains a significant bottleneck—it is expensive, time-consuming, and often necessitates subject matter expertise. While Weak Supervision (WS) frameworks like Snorkel have emerged to address this by allowing users to programmatically label data via labeling functions (LFs), these still require humans to manually craft heuristics.
AutoWS addresses this "human-in-the-loop" constraint by introducing a framework that automatically generates, evaluates, and aggregates LFs. By transforming a small "seed" of labeled data into a massive, high-quality training set with minimal intervention, AutoWS streamlines the path to state-of-the-art text classification.
Methodology
The AutoWS architecture consists of a multi-stage pipeline designed to automate the entire weak supervision lifecycle.
- Automated LF Generation: Instead of relying on expert-defined rules, AutoWS trains a diverse pool of 15 "weak" classifiers on a small labeled dataset (e.g., 200 samples per class). This pool includes feature-based models (Adaboost, Random Forest, SVMs), similarity-based heuristics using embedding cosine similarity, and transformer-based models (BERT, ELECTRA, DeBERTa).
- Label Aggregation: To resolve conflicts among the 15 LFs, the framework employs label models such as Majority Voting, Dawid-Skene, and FlyingSquid to produce probabilistic labels for unlabeled instances.
- Greedy Optimization: A core innovation of AutoWS is its greedy search algorithm. Rather than using all generated LFs, the framework identifies the optimal subset of LFs, the most effective aggregation model, and the ideal confidence threshold to maximize performance on a validation set.
- Final Classification: The high-confidence "noisy" labels generated are combined with the original seed data to train a final, high-capacity DeBERTa classifier.
Experimental Setup
The framework was evaluated across three diverse multi-class datasets:
- AGNews: A 4-class news classification task.
- Yahoo! Answers: A 10-class topic classification task.
- Retail: A 21-class product categorization task characterized by higher inherent noise.
For the AGNews and Yahoo! datasets, the authors simulated low-resource environments by utilizing only 200 labeled samples per class for training.
Results and Discussion
AutoWS demonstrated superior performance compared to existing state-of-the-art (SOTA) semi-supervised methods like MixText.
Key insights from the experimental results include:
- The Power of Optimization: Ablation studies revealed that using AutoWS without the optimization module led to a significant drop in accuracy. This confirms that the automated selection and pruning of LFs is as critical as the generation of the LFs themselves.
- Diversity Over Complexity: Interestingly, deep learning LFs were not always the top performers. In certain contexts, simpler models like SVMs or Random Forests provided more reliable weak signals, highlighting the benefit of a diverse LF pool.
- Plug-and-Play Automation: Unlike many semi-supervised methods requiring meticulous hyperparameter tuning, AutoWS is designed to be fully automated, requiring no manual specification of learning rates or consistency weights.
Conclusion
AutoWS effectively automates the weak supervision pipeline, achieving SOTA results on benchmark datasets with minimal labeled data. While the framework excels on standard benchmarks, its performance on the noisier Retail dataset suggests room for improvement when the initial seed data is inherently messy. Future work will focus on integrating noise-resistant training strategies (such as CoTeachPlus) into the final classifier stage and extending the framework to more complex tasks like Named Entity Recognition (NER).
Summary updated