Abstract
Weak supervision allows training machine learning models using noisy, programmatic rules instead of expensive hand-labeled data. However, traditional methods rely on a disjointed two-step pipeline that assumes labeling functions have static, independent accuracies. We present WeaSEL (Weakly Supervised End-to-end Learner), a framework that jointly trains a label-aggregating encoder and a downstream classifier. By maximizing agreement between these two components, WeaSEL achieves state-of-the-art performance and remarkable robustness against correlated or adversarial noise.
Introduction
The success of modern machine learning is tethered to the availability of massive labeled datasets. Acquiring these labels is often the primary bottleneck in the development cycle. Data programming addresses this by allowing domain experts to write "Labeling Functions" (LFs)—heuristics or rules that automatically assign labels to data points.
Systems like Snorkel have popularized a two-step approach: first, a Probabilistic Graphical Model (PGM) estimates LF accuracies to produce "probabilistic labels"; second, a downstream model is trained on these labels. While effective, this pipeline is limited by the PGM's independence from the downstream model and its assumption that LF accuracy is constant across the entire dataset.
Methods
WeaSEL replaces the isolated PGM with a neural network architecture that learns end-to-end. It consists of two primary components trained simultaneously:
- Encoder Network ($e$): Acts as a sample-dependent label aggregator. It takes both the LF votes ($\lambda$) and the input features ($x$) to predict the probability of a class given the weak signals.
- Downstream Model ($f$): The target classifier that learns directly from the input features ($x$).
The core training objective is to maximize the agreement between $e$ and $f$. This is achieved through a symmetric cross-entropy loss. To prevent the models from collapsing into trivial solutions, WeaSEL employs a stop-gradient operation. When updating the downstream model, the encoder's predictions are treated as fixed targets, and vice versa. This forces each model to extract meaningful patterns from its respective input space—features for the classifier and rules for the encoder.
Key Insights
- Sample-Dependent Accuracy: Unlike PGMs that assign a global accuracy score to an LF, WeaSEL's encoder uses input features to determine how much to trust a rule for a specific data point.
- Robustness to Correlation: WeaSEL is naturally resistant to correlated or low-quality LFs. Because the downstream model relies on actual data features, it will not find consistent patterns in random noise, forcing the encoder to down-weight unreliable LFs to maintain agreement.
- The Role of
stop-grad: Borrowing concepts from self-supervised learning, thestop-gradientprevents degenerate solutions where models agree on arbitrary noise, ensuring they learn from their intended inputs.
Experimental Results
The authors evaluated WeaSEL across several benchmarks, including relation extraction (Spouse), occupation classification (ProfTeacher), and sentiment analysis (IMDB, Amazon).
As shown in the results, WeaSEL consistently outperforms traditional latent label models like Snorkel and Triplet-based methods. Notably, it achieved a 6.1 F1 point improvement on the Amazon dataset. In crowdsourcing benchmarks (LabelMe), WeaSEL also surpassed specialized state-of-the-art models, reaching 86.36% accuracy.
Furthermore, WeaSEL demonstrated extreme robustness. In stress tests where a single perfect LF was buried under thousands of noisy duplicates, traditional systems collapsed to random chance, while WeaSEL successfully ignored the noise and recovered near-supervised performance levels.
Discussion and Limitations
While powerful, the end-to-end nature of WeaSEL introduces a slower development cycle. Iterating on LFs requires retraining the entire downstream model, which can be computationally expensive for large architectures. Developers might benefit from using fast PGMs for rule prototyping before a final WeaSEL run. Additionally, without a small validation set for early stopping, the model risks overfitting to individual LFs, necessitating careful hyperparameter tuning or temperature adjustments.
Summary updated