Interactive Weak Supervision: Learning Useful Heuristics for Data Labeling

Benedikt Boecking, Willie Neiswanger, Eric Xing, Artur Dubrawski

The Data Labeling Bottleneck

Training machine learning models usually requires thousands of manually labeled examples, which is a massive bottleneck. Traditionally, we solve this by hiring annotators to look at thousands of individual samples—a process that is slow, expensive, and often plagued by privacy or expertise requirements.

"Weak supervision" (like the popular Snorkel framework) offers a shortcut: experts write "labeling functions" (LFs)—simple rules or heuristics—to noisily label large datasets. However, writing these rules is hard. It requires a "blank page" level of creativity and deep domain foresight. This paper addresses the discovery problem: How can we help experts find the best labeling rules without making them write code from scratch?

Introducing Interactive Weak Supervision (IWS)

To solve this, the authors introduce Interactive Weak Supervision (IWS), a framework where instead of labeling individual data points, experts simply give "Yes/No" feedback on automatically generated labeling heuristics (e.g., "Is the word 'excellent' a good indicator of a positive review?").

The IWS framework operates in a three-step interactive loop:

  1. Candidate Generation: The system starts with an "LF family"—a template for rules. For text, this might be "Does the document contain word X?". The system generates a huge pool of thousands of these candidate rules.
  2. Active Selection: Using an active learning framework, the system picks the most "informative" rules from the pool and asks a human: "Is this rule better than random at predicting the label?"
  3. Expert-Feedback Model: The system learns from the user's binary feedback to estimate the accuracy of all other un-queried rules in the pool, using an ensemble of neural networks to map rule features to predicted accuracy.
The three-step Interactive Weak Supervision (IWS) pipeline

The authors highlight two main scenarios for this loop: IWS-LSE (Level Set Estimation), which aims to find all rules above a certain accuracy threshold, and IWS-AS (Active Search), which focuses on finding as many "good" rules as possible within a fixed time budget.

Key Insights: Rules Over Data Points

The core "aha moment" of IWS is that labeling a function provides much more information to a model than labeling a single data point. One good rule can label thousands of samples.

Furthermore, the study found that humans are surprisingly adept at identifying whether a heuristic is useful, often doing so faster than they could label a single data point. By providing a "menu" of rules to choose from, IWS removes the creative block experts face when trying to think of weak supervision sources from scratch.

Performance and Efficiency Gains

The researchers evaluated IWS across several diverse domains, including text classification (Amazon, IMDB, BiasBios), cross-modal classification (COCO captions), and image classification (COCO images).

The results demonstrated massive efficiency gains:

  • Superior Efficiency: In text experiments, IWS reached a high mean AUC (Area Under the Curve) after just 200 rule annotations. To reach that same performance, standard active learning (labeling individual samples) required at least three times as many iterations.
  • Faster Response Times: On the IMDB dataset, the median time to judge a rule was 3.2 seconds, compared to 19 seconds to label a single review.
  • Competitive Accuracy: Models trained via IWS feedback achieved test-set performance nearly identical to models trained on the full, "gold-standard" ground truth labels, despite never seeing a single "true" training label.
Test AUC vs. Number of Annotations across multiple datasets, showing IWS outperforming standard active learning

Limitations and Future Directions

While powerful, IWS currently relies on having a pre-defined LF family. If the initial template is poorly suited to the task (e.g., looking for single words in a task that requires complex logic), the system won't find good rules.

Future work aims to expand LF families to handle more complex templates and a wider variety of data types. Additionally, scaling the system from binary tasks to multi-class problems with hundreds of classes remains an open challenge. Finally, hybrid systems that combine IWS (labeling rules) with traditional active learning (labeling points) could offer the best of both worlds.

Summary updated

BibTeX
@inproceedings{boecking2021interactive,
  author = {Benedikt Boecking and Willie Neiswanger and Eric Xing and Artur Dubrawski},
  title = {{Interactive Weak Supervision: Learning Useful Heuristics for Data Labeling}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=IDFQI9OY6K},
}
Figure