End-to-End Weak Supervision

Salva Rühling Cachay, Benedikt Boecking, Artur Dubrawski

Overview

WeaSEL (Weakly Supervised End-to-end Learner) moves beyond the traditional two-step process of weak supervision by training a label aggregator and a downstream model simultaneously. By maximizing the agreement between these two components using a neural encoder, the system achieves state-of-the-art performance and demonstrates remarkable robustness against highly correlated or adversarial noisy sources.

The Problem with Two-Step Weak Supervision

Supervised learning is hungry for labeled data, but manual annotation is a massive bottleneck. Weak Supervision (WS) attempts to solve this by using "Labeling Functions" (LFs)—heuristics, rules, or external knowledge bases—to programmatically label data.

However, LFs are noisy and often conflict. Current state-of-the-art frameworks (like Snorkel) handle this in two disconnected steps:

  1. The Generative Step: A Probabilistic Graphical Model (PGM) estimates the accuracy of LFs based solely on how they agree or disagree with each other, ignoring the actual data features ($X$).
  2. The Discriminative Step: A downstream model is trained on the "probabilistic labels" produced by the PGM.

The authors argue this is sub-optimal. The PGM makes rigid independence assumptions that rarely hold in the real world (e.g., LFs are often highly correlated), and the label model never "sees" the downstream model’s performance during training.

Methods: The WeaSEL Framework

The authors introduce WeaSEL, an end-to-end framework that treats label aggregation and downstream learning as a joint optimization problem.

WeaSEL Architecture
  • The Neural Encoder ($e$): Instead of a static PGM, WeaSEL uses a neural network to predict sample-specific accuracy scores ($\theta$) for each LF. Crucially, this encoder looks at both the LF outputs and the raw features ($X$), allowing it to learn that certain LFs might be more trustworthy for specific types of data.
  • Posterior Reparameterization: The model generates a probabilistic label ($y_e$) by calculating a weighted average of the LF votes, where the weights are the accuracy scores produced by the encoder.
  • The Agreement Game: The system trains two models—the Encoder and the Downstream Model ($f$)—to agree with each other. They use a symmetrized loss function where each model acts as the "ground truth" for the other.
  • The stop-grad Trick: To prevent the models from collapsing into trivial solutions (like always predicting the same class), the authors use a stop-gradient operation. When training the downstream model, the encoder's predictions are treated as fixed constants, and vice versa. This is inspired by successful techniques in self-supervised learning.

Key Insights

  • Features are Informative for Labels: Traditional label models ignore the input features ($X$). WeaSEL proves that knowing the context of a sample helps the model decide which noisy source to trust, leading to more accurate "soft" labels.
  • Robustness to Correlation: PGMs typically break if you provide multiple LFs that are highly correlated (e.g., two rules that look for the same keyword). Because WeaSEL is end-to-end and neural-based, it naturally ignores redundant or adversarial LFs. In one synthetic test, WeaSEL maintained perfect performance even when a "junk" LF was duplicated 2,000 times, while traditional methods failed completely.
  • Inductive Bias Matters: The authors found it critical to restrict LF accuracies to a positive interval (using a softmax). This encodes the intuitive bias that LFs are generally better than random guessing, preventing the model from learning "adversarial" interpretations of the rules.

Key Results

The authors evaluated WeaSEL on five diverse benchmarks, including sentiment analysis (IMDB & Amazon), occupation classification (ProfTeacher), relation extraction (Spouse), and multi-class image classification (LabelMe).

Performance Comparison on Benchmark Datasets
  • Performance Gains: WeaSEL outperformed Snorkel and other PGM-based methods on 4 out of 5 benchmark datasets. On the Amazon dataset, it saw an improvement of 6.1 F1 points over the next best method.
  • State-of-the-Art Crowdsourcing: On the LabelMe dataset, WeaSEL achieved 86.36% accuracy, outperforming specialized crowdsourcing models.
  • Stability: The end-to-end approach proved more stable than "Triplet" methods, which often failed to converge on datasets with many labeling functions.

Limitations and Future Work

  • The Iteration Loop: In weak supervision, users often iterate on their LFs based on feedback. Because WeaSEL requires training the full downstream model to see results, the "development loop" for a human-in-the-loop workflow might be slower than using a fast, standalone PGM.
  • Computational Cost: Training two models simultaneously is more resource-intensive than the traditional two-step approach. The authors suggest using a simpler "proxy" downstream model during the LF development phase to mitigate this.
  • Future Extensions: WeaSEL could potentially be extended to handle continuous labeling functions or integrated with Graph Neural Networks (GNNs) to explicitly model dependencies between sources.

Summary updated

BibTeX
@inproceedings{cachay2021end,
  author = {Salva Rühling Cachay and Benedikt Boecking and Artur Dubrawski},
  title = {{End-to-End Weak Supervision}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=hNhX8r5npbA},
}
Figure