Reliable Programmatic Weak Supervision with Confidence Intervals for Label Probabilities

Verónica Álvarez, Santiago Mazuelas, Steven An, Sanjoy Dasgupta

TL;DR

Programmatic weak supervision (PWS) saves massive amounts of time by combining noisy heuristics to label data, but existing methods can't tell you how reliable their predictions actually are. This paper introduces a distribution-free framework that provides mathematically guaranteed confidence intervals for label probabilities alongside highly accurate minimax predictions. By avoiding restrictive statistical assumptions, it handles complex, overlapping, and abstaining labeling functions with ease.

What Problem Does This Paper Address?

Deep learning thrives on massive datasets, but manual labeling is a notorious bottleneck. Programmatic Weak Supervision (PWS) solves this by using "Labeling Functions" (LFs)—heuristics, rules-of-thumb, or pre-trained models—to automatically generate rough label guesses.

However, these LFs are often noisy, highly correlated, or prone to abstaining. Current PWS frameworks (like Snorkel) typically assume LFs are conditionally independent or fit a rigid graphical model. When these assumptions fail in the real world, the resulting probabilistic labels become miscalibrated and unreliable. Crucially, existing methods offer no way to quantify this unreliability. If a PWS system predicts a label probability of 0.9, but it's only correct 60% of the time, downstream models trained on this data will perform poorly. This paper addresses the critical lack of reliability assessments and rigid distributional assumptions in PWS.

Fig. 1: Example of programmatic weak supervision where the unlabeled dataset is composed by reviews (left column) and the LFs are simple heuristics based on the presence of specific words (middle top). In addition, the LFs provide rough guesses (middle bottom) that have assorted types and unknown interdependences. The proposed methodology determines an uncertainty set of distributions that encapsulate the information provided by general LFs. This set contains probability distributions consistent with the LFs’ observed behavior such as abstention rate and bounds for the LFs’ error. Then, the proposed methodology uses the uncertainty set to provide reliable probabilistic predictions and confidence intervals.

Methods

The authors propose a framework based on uncertainty sets of distributions. Instead of assuming a specific generative model for how LFs behave, they construct a set of all probability distributions that are consistent with the observed behavior of the LFs (such as their error rates, abstention rates, and mutual disagreements).

  • Feature Mapping: They use a flexible feature mapping $\Phi(\Lambda, y)$ to encode various LF characteristics (e.g., whether an LF abstained, its Brier score, or how often it disagrees with another LF).
  • Confidence Intervals: By solving a pair of linear optimization problems (the Lagrange duals), the method computes upper and lower bounds for the true label probabilities for any group of instances.
  • Minimax Probabilistic Predictions (MMPs): To get the actual label predictions, they solve a minimax problem that minimizes the worst-case expected log-loss over the uncertainty set. This ensures the predictions are robust even under the worst-case distribution consistent with the data.

Datasets

The methodology was evaluated on 8 diverse public benchmark datasets:

  • Image/Vision: Animals with Attributes (AWA), DomainNet.
  • Text/Sentiment: IMDB, Yelp, SMS.
  • Tabular/Medical: Basketball, OBS Network, Cardiotocography.

These datasets cover various LF typologies: some LFs output discrete labels, some abstain, and others output continuous probabilities.

Key Insights and Ideas

  • Embracing Disagreement: Instead of trying to model complex dependencies explicitly, the framework uses the empirical disagreement between LFs to bound their errors via the triangle inequality. If two LFs disagree often, at least one of them must be making errors.
  • Distribution-Free Guarantees: The confidence intervals come with simultaneous coverage guarantees. This means that with high probability (e.g., 95%), the true label probabilities for all possible groups of instances will fall within their respective intervals simultaneously.
  • Calibration via Abstention: By using the confidence intervals, users can safely implement an "abstention threshold." If the interval for a prediction is too wide or close to 0.5, the system can flag those instances for manual review, drastically improving downstream model reliability.

Key Results

  • Superior Calibration and Accuracy: The proposed MMP method consistently outperformed baselines like Snorkel, FlyingSquid, and AMCL across multiple metrics. For example, on the Cardiotocography dataset, MMP achieved a Brier score of 0.04 and a log-loss of 0.21, significantly lower than Snorkel's 0.26 and 7.01.
  • Empirical Validity of Intervals: Across all experiments, the true label probabilities consistently fell within the calculated confidence intervals, proving the practical utility of their theoretical bounds. Adding more LFs consistently tightened these intervals.

Limitations and Future Work

  • Computational Overhead: The method requires solving two optimization problems per group of instances and label examined. While efficient for a few groups, scaling this to a massive number of arbitrary subgroups could become a bottleneck. The authors suggest exploring stochastic gradient descent-based techniques to mitigate this.
  • Group Size Trade-off: The confidence intervals can become loose for very small groups of instances or in scenarios with very few LFs. Future work includes developing adaptive grouping strategies to handle low-data regimes more effectively.

Summary updated

BibTeX
@misc{alvarez2025reliable,
  author = {Verónica Álvarez and Santiago Mazuelas and Steven An and Sanjoy Dasgupta},
  title = {{Reliable Programmatic Weak Supervision with Confidence Intervals for Label Probabilities}},
  year = {2025},
  eprint = {2508.03896},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.03896},
}
Figure