Introduction
Deep learning's reliance on massive labeled datasets often creates a bottleneck due to the high cost of manual annotation. Weak supervision addresses this by leveraging "labeling functions"—noisy, inexpensive sources such as heuristics or distant supervision—to automatically generate training labels. However, these signals are frequently biased or highly correlated, causing traditional methods like Majority Vote to fail. While generative models like Snorkel attempt to model these dependencies, they are often computationally expensive and rely on strict probabilistic assumptions.
Constrained Label Learning (CLL) is a novel framework that reframes weak supervision as a set of linear constraints on the label space. By utilizing simple convex optimization, CLL produces robust labels that outperform complex generative models and remain resilient even under high signal redundancy.
Methodology
CLL shifts the paradigm from probabilistic modeling to geometric constraints through a four-step process:
- Linear Constraints: The relationship between unknown true labels ($y$) and weak signals ($w$) is represented as a system of linear equations ($Ay = c$), derived from the expected error rates of the signals.
- The Constrained Space: A feasible space of labels is defined, consisting of all labels consistent with the observed weak signals and their error rates.
- Optimization: Training labels are found by solving a quadratic program: $\min_{\tilde{y} \in [0,1]^n} \|A\tilde{y} - c\|^2_2$. This convex optimization ensures stability and speed.
- Randomized Sampling: Using projected gradient descent (Adagrad) from random initializations, the method efficiently finds feasible points sufficient for training downstream models.
Experimental Setup
The framework was evaluated across diverse synthetic and real-world benchmarks:
- Synthetic Data: Designed to test resilience against dependent vs. independent weak signals.
- Text Classification: Sentiment analysis tasks including IMDB, SST-2, and YELP-2, alongside question type classification (TREC-6).
- Image Classification: Tasks such as SVHN (Street View House Numbers) and Fashion-MNIST, utilizing nearest-neighbor signals and pseudolabels from a minimal (1%) data subset.
Key Insights
A core advantage of CLL is its handling of redundancy. Unlike majority voting, where identical noisy signals can overpower accurate ones, CLL treats redundant signals as overlapping constraints that do not "double-count" evidence.
Furthermore, the accuracy of the learned labels is theoretically linked to the rank of the constraint matrix $A$. As shown in Figure 1, increasing the diversity (linear independence) of weak signals directly reduces the error of the learned labels, whereas Majority Vote remains stagnant until a very high rank is reached.
Additionally, CLL proves robust to imperfect error rate estimates. Using a simple "uniform error rate" hyperparameter often yields performance comparable to using true, unknown error rates.
Results
CLL consistently matches or exceeds the performance of established baselines like Data Programming (Snorkel) and Majority Vote.
- Resilience to Dependencies: In synthetic scenarios with highly dependent signals, CLL achieved 66.8% accuracy, while baselines collapsed to random chance (50.4%).
- Text Classification: As detailed in Table 1, CLL achieved superior test accuracy across all evaluated text datasets, notably outperforming Snorkel on the IMDB task (0.740 vs 0.623).
- Image Classification: On the SVHN task, CLL reached 0.670 test accuracy, significantly higher than the Majority Vote baseline of 0.432.
- Efficiency: By relying on convex optimization, CLL is faster and more stable than adversarial or generative approaches.
Conclusion
CLL provides an efficient and robust framework for weak supervision. While it currently requires full coverage of the training set by weak signals and some hyperparameter tuning for error rates, its ability to handle correlated signals without complex modeling marks a significant step forward. Future work will focus on extending the framework to handle incomplete data coverage and further improving robustness to unreliable error estimates.
Summary updated