Introduction
Supervised machine learning is traditionally constrained by the need for large volumes of labeled data, which is both expensive and time-consuming to produce. Data Programming (or weak supervision) has emerged as a promising alternative. Instead of labeling every instance, domain experts write "Labeling Functions" (LFs)—simple, heuristic rules like "if the text contains 'buy now', label as SPAM."
However, this approach faces two significant hurdles. First, the human bottleneck: writing effective LFs still requires substantial domain expertise and time. Second, the noise problem: while tools like SNUBA can automatically generate LFs, these rules are often noisy, overlapping, or contradictory. Naively combining these automated rules often results in performance that is worse than a simple model trained on a handful of gold-standard labels.
To address these challenges, we introduce WISDOM (reWeIghting based Semi-supervised Data prOgraMming). WISDOM is a framework that automates the creation and refinement of LFs by using a bi-level optimization strategy to learn which rules to trust, effectively filtering out noise and outperforming existing weak supervision methods.
The WISDOM Framework
WISDOM builds upon the semi-supervised framework SPEAR, introducing a critical bi-level optimization loop to handle LF reliability. The process consists of three main stages:
- Automatic LF Generation: The system uses a small "labeled-set" to automatically induce human-interpretable LFs, such as keyword-based rules.
- Bi-level Optimization Loop: This is the core innovation. The optimization occurs in two nested stages:
- Inner Level: The model trains its feature-based classifier and its label aggregator using the current weights assigned to each LF.
- Outer Level: The model evaluates performance on a small, held-out validation set and updates the LF weights ($w$). If an LF's contribution leads to higher validation error, its weight is decreased; if it improves performance, its weight is increased.
- Joint Learning: Unlike cascaded approaches, WISDOM learns the classifier, the aggregator, and the LF weights simultaneously in a semi-supervised manner, leveraging both the small labeled set and a large unlabeled set.
Experimental Evaluation
We evaluated WISDOM across six diverse text classification benchmarks, including question type classification (TREC), spam detection (YouTube and SMS), movie genre classification (IMDB), and sentiment analysis (Twitter Sentiment and SST-5).
Key Results and Insights
WISDOM consistently outperformed baselines like SNUBA (which generates LFs but lacks a weighting mechanism) and standard semi-supervised methods like VAT.
- Massive Gains over Automated Baselines: On the YouTube dataset, SNUBA performed 28.7% worse than a simple supervised baseline, whereas WISDOM performed 4.4% better. This demonstrates that the reweighting mechanism is critical when dealing with auto-generated rules.
- Closing the Human Gap: Remarkably, WISDOM often performed nearly as well as—and sometimes better than—models using LFs carefully hand-crafted by humans. This suggests that "noisy but weighted" machine-generated rules can be more effective than "clean but sparse" human rules.
- Specificity and Robustness: Qualitative analysis showed that WISDOM successfully identifies high-precision rules. For example, in the TREC dataset, it assigned high weight to the specific phrase "how many" for the Numeric class while down-weighting the more ambiguous "how." Additionally, the framework proved robust even when the initial labeled set was as small as 5% of the total data.
Conclusion and Future Work
WISDOM demonstrates that a tiny validation set can serve as a powerful "truth signal" to reweight noisy, automated rules. While bi-level optimization is computationally intensive, the use of gradient approximation techniques makes it feasible for real-world deployment.
Future research will explore hybrid approaches that combine human-crafted LFs with auto-generated ones, allowing models to benefit from expert intuition while filling coverage gaps through automated pattern discovery. We also aim to improve performance on datasets with significant class imbalance in the unlabeled data, which remains a challenge for current semi-supervised methods.
Summary updated