What weak supervision changes
Weak supervision uses imperfect signals to build training data. Instead of manually assigning a label to every example, someone expresses knowledge through rules or resources that can be wrong. The practical question is how to combine those signals without mistaking agreement for truth.
Snorkel is a reference for this approach. The original paper by Ratner and colleagues describes a path from labeling functions to probabilistic labels and a final classifier. This does not remove the need to define the task carefully or evaluate results against reliable examples.
A rule can abstain
A labeling function receives an example and returns a class or abstains. Abstention avoids treating a missing clue as a negative answer. In the Snorkel 0.9.7 documentation, the abstention value is -1; class codes need a consistent definition.
A rule proposes a label to create supervision; a feature describes an example so a model can learn. The same information may appear in both places, but its roles differ.
A hypothetical example
Imagine two categories: billing and account access. One rule proposes billing when it finds “invoice”; another proposes access when it finds “password”; a third looks for “refund” and proposes billing. Each abstains when its clue is absent. This is an illustration, without training or measured performance results.
“I need a copy of the invoice” gets a billing signal. “I cannot remember my password” gets an access signal. “I want a refund and cannot change my password” produces conflicting signals. “I need help” may remain unlabeled.
If a message can contain several reasons, forcing a single class may be the initial problem. Before adding rules, decide whether you need a main category, multiple labels or referral for review. Do not turn real ambiguity into an assumed model error.
Coverage, overlap and conflict
Coverage indicates what proportion of examples receives a signal. Overlap shows where several functions act, and conflict where they propose different classes. LFAnalysis documents these measures. None alone equals accuracy: two rules may agree because they repeat the same mistaken clue.
Also inspect examples where every function abstains. They may reveal vocabulary or expressions missing from your rules. Adding many variations of one expression increases the number of votes without necessarily supplying independent knowledge.
Two different models
The label model combines function outputs; the final classifier subsequently learns from the resulting supervision. The original paper studies source accuracies and dependencies, whereas LabelModel in the 0.9.7 documentation states conditional independence given the classes. Do not assume that every implementation automatically learns all correlations.
A probability distribution expresses an estimate under assumptions, rather than a certificate of truth. Compare the approach with a simple baseline and check whether added complexity improves your task. Do not extrapolate gains from a historical study to every dataset.
Evaluation and maintenance
Reserve reviewed examples for developing rules and a separate test set for final evaluation. The original work distinguishes these sets from training with weak labels. Repeatedly adjusting rules to test examples undermines that separation.
Empirical function accuracy requires reference labels: LFAnalysis takes these labels to calculate it. Inspect errors by class and by cases relevant to the intended use, alongside aggregate results. Version rules, resources and data so changes can be explained.
Start with a bounded task and examples you can review. Document each rule and its exceptions, examine coverage and conflicts, compare combinations and evaluate the final classifier. Repeat checks when vocabulary or domain changes. Weak supervision changes where human effort goes; it does not turn noisy signals into guaranteed facts.
Keep exploring
Sources consulted
Corrections and transparency
If you spot incorrect or outdated information, send us a correction with the page and source we should review.
Submit a correction