Learning from weak labelers as constraints

Vishwajeet Agrawal, Rattana Pukdee, Maria Florina Balcan, Pradeep Kumar RavikumarICLR 2025

In the landscape of machine learning, high-quality labeled data is a highly sought-after resource that is often prohibitively expensive to acquire. Programmatic Weak Supervision (PWS) attempts to bridge this gap by utilizing "weak labelers"—such as heuristics, expert rules, or pre-trained models—that provide noisy and often incomplete labels.

Traditionally, aggregating these noisy labels relies on latent generative models, most notably Snorkel. However, these models typically depend on a "conditional independence" assumption: they assume that given the true label, the errors made by one rule are independent of the errors made by another. In practice, this assumption rarely holds. Furthermore, these generative models introduce implicit inductive biases that are difficult for domain experts to validate.

This paper asks a fundamental question: Can we bypass complex generative modeling and instead use explicit side-information—specifically, the approximate error rates of our rules—to guide the learning process?

Methodology: Optimization with Constraints

Instead of relying on hard-to-verify generative assumptions, the authors propose a framework that treats learning from weak labelers as a constrained optimization problem.

The core objective is to minimize a regularization functional (essentially keeping the model as "simple" as possible) while ensuring that the model's predictions do not deviate from the weak labelers beyond their known error budgets. For example, if a domain expert estimates that a specific rule is 80% accurate, the model is constrained to have an error rate of no more than 20% relative to that rule on the data it covers.

Because these accuracy constraints are discontinuous and difficult to optimize directly, the authors developed an alternating minimization algorithm:

  1. Projection (Soft Pseudo-labels): The algorithm computes soft pseudo-labels for the unlabeled data. These labels are designed to satisfy the error constraints while remaining as close as possible to the current model's predictions.
  2. Learning (Model Update): The discriminative model (e.g., a neural network) is updated by training it on these new pseudo-labels using a standard cross-entropy loss.

To ensure this approach scales to large datasets, the authors implement a fast, parallel update using a Newton-Raphson root-finding method, allowing the constraints to be satisfied efficiently.

Key Insights: Denoising and Agreement Regions

Treating weak supervision as a constraint satisfaction problem yields several elegant theoretical and practical insights.

Denoising via Conflict: When weak labelers disagree, the model cannot perfectly satisfy all constraints simultaneously. The constraint-based approach forces the model to find a compromise that fits within the overall error budgets of all conflicting rules, effectively filtering out the noise.

Agreement Regions: The authors theoretically demonstrate that multiple constraints create "agreement regions."

Agreement regions and linear separators

As illustrated above, the combined weight of multiple rules makes the true label much more certain in these agreement regions. Moving from a single constraint to multiple constraints effectively "shrinks" the space of valid models (the possible boundaries of a linear separator), leading to tighter bounds and better generalization.

Generalizing Beyond Coverage: Weak labelers often abstain, covering only a small fraction of the data. The authors prove that if the underlying data distribution is smooth (Lipschitz continuous), the error guarantees established on the covered regions naturally extend to the rest of the input space.

Robustness to Misspecification: Unlike generative models that can fail catastrophically if their underlying assumptions are wrong, this constraint-based method is remarkably robust. Even if the estimated error bounds are noisy or slightly inaccurate, performance degrades gracefully.

Experimental Results

The method was evaluated on the WRENCH benchmark, a comprehensive collection of eight text classification datasets spanning biomedical text, sentiment reviews, and general text. These datasets vary significantly, featuring between 2 to 10 classes and 5 to 164 weak labelers.

The proposed method—particularly the variant that estimates error bounds from a small validation set—demonstrated superior performance:

  • Top Performance: It achieved the best average rank (4.1) across all datasets, significantly outperforming both Majority Vote (5.8) and Snorkel (7.8).
  • Robustness: Ablation studies introducing random noise to the error bounds showed that the model's accuracy remained stable, even with significant "misinformation" regarding weak labeler accuracy.
  • Efficiency: By utilizing a continuous optimization formulation, the method directly leverages the power of modern deep learning architectures (like BERT embeddings) during the denoising process, rather than relegating it to a separate second stage.

Limitations and Future Directions

While highly effective, the method performs best when a small validation set is available to estimate the error bounds of the weak labelers. Without any prior knowledge of labeler quality, setting appropriate constraints becomes challenging. Additionally, while the paper successfully avoids the conditional independence assumption, it does not yet explicitly model known dependencies between labelers (e.g., if two rules are explicitly known to be variations of one another).

Future work may explore Mixed Integer Linear Programming (MILP) for even tighter constraint satisfaction, as well as combining this constraint-based approach with methods that explicitly model labeler correlations.

Summary updated

BibTeX
@inproceedings{agrawal2025learning,
  author = {Vishwajeet Agrawal and Rattana Pukdee and Maria Florina Balcan and Pradeep Kumar Ravikumar},
  title = {{Learning from weak labelers as constraints}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=2BtFKEeMGo},
}
Figure