Abstract
Programmatic weak supervision (PWS) is a powerful paradigm for generating large-scale training data using noisy heuristic rules. However, traditional PWS frameworks restrict labeling functions (LFs) to single-class votes or abstentions. This paper introduces the Noisy Partial Label Model (NPLM), which generalizes PWS by allowing LFs to vote for subsets of classes. By modeling the accuracies and propensities of these partial labelers, NPLM achieves significant performance gains in text classification and competitive results in zero-shot image recognition.
Introduction: The Case for Partial Labels
Programmatic weak supervision (PWS) has emerged as a solution to the bottleneck of manual data labeling. In PWS, users write "labeling functions" (LFs)—such as keyword-based rules or pre-trained models—to provide noisy labels for unlabeled data. Existing frameworks like Snorkel typically assume each LF votes for a single class.
However, this "one-class-or-abstain" constraint is often too restrictive. In many domains, it is easier to define a rule that narrows down the possibilities than one that identifies a specific category. For instance, a "stripe detector" in an animal classification task can easily distinguish {Tiger, Zebra} from {Lion, Horse}, but cannot distinguish between a Tiger and a Zebra on its own.
Forcing users to create single-class rules leads to over-engineering and the loss of valuable domain knowledge. By allowing Partial Labeling Functions (PLFs), the proposed framework enables more expressive and flexible weak supervision.
The Noisy Partial Label Model (NPLM)
The authors propose the Noisy Partial Label Model (NPLM), a generative probabilistic model that treats the true label as a latent variable.
Key Components:
- Model Parameters: For each PLF, the model estimates its accuracy (the probability that the true label is within the predicted subset) and its propensity (the probability that the LF provides a vote rather than abstaining).
- Computational Efficiency: To make the model practical, the authors developed a vectorized implementation in PyTorch. This optimization achieved a 300x speedup, allowing the model to process 100,000 examples in approximately one minute on a standard CPU.
- Theoretical Grounding: The paper provides a mathematical proof of identifiability, demonstrating that model parameters can be uniquely learned from unlabeled data, provided the set of PLFs is sufficiently diverse.
Once the label model is trained, it produces a probability distribution over labels for each example. These "soft labels" are then used to train a high-capacity "end model," such as BERT for text or ResNet for images, which can generalize beyond the initial rules.
Experimental Evaluation
The framework was evaluated on text classification tasks (SciCite, TREC-6, AG-News) and object classification benchmarks (LAD, AwA2).
Text Classification Results
On text tasks, incorporating partial labels led to an average accuracy increase of 8.6 percentage points over traditional single-class LFs. The NPLM model significantly outperformed simpler aggregation heuristics like "Nearest Class" (NC), which simply counts votes.
As shown in the table above, NPLM consistently achieves higher accuracy and F1 scores compared to using LFs alone or the NC heuristic. For example, on the TREC-6 dataset, NPLM improved accuracy by 17.8 points over the "LFs Only" baseline.
Zero-Shot Learning
By treating pre-trained attribute detectors as PLFs, the authors demonstrated that PWS can effectively tackle zero-shot learning (ZSL) problems. On the AwA2 animal dataset, the framework achieved a harmonic mean of 80.1, performing competitively with specialized, complex transductive ZSL methods.
Discussion and Future Work
The primary advantage of the NPLM framework is its increased expressivity, allowing users to incorporate coarse heuristics that were previously unusable. Furthermore, the efficiency of the implementation enables the iterative workflow essential for developing high-quality weak supervision.
However, the model currently assumes that labeling functions are conditionally independent given the true label. In practice, rules often share features, which can lead to biased estimates. Future research may explore methods to model these dependencies or integrate PLFs with active learning and data augmentation to further minimize the need for manual labeling.
Summary updated