Semi-Supervised Data Programming with Subset Selection

Ayush Maheshwari, Oishik Chatterjee, KrishnaTeja Killamsetty, Ganesh Ramakrishnan, Rishabh K. Iyer

Abstract

Modern machine learning is often bottlenecked by the high cost of manual data annotation. This paper introduces SPEAR (Semi-suPervisEd dAta pRogramming), a framework that jointly optimizes a feature-based classifier and a rule-based graphical model to leverage noisy, weak supervision. To further enhance efficiency, the authors propose SPEAR-SS, a subset selection layer that uses submodular optimization to identify the most informative data points for human labeling. Experimental results across diverse text and tabular datasets demonstrate that SPEAR-SS significantly outperforms state-of-the-art methods, particularly in scenarios with high class imbalance.

Introduction

As machine learning models grow in complexity, the demand for labeled training data has increased. Two primary strategies have emerged to address this: Semi-Supervised Learning (SSL), which uses a small set of labeled data to anchor a larger pool of unlabeled data, and Data Programming (DP), which uses human-written "Labeling Functions" (LFs)—such as regex or keyword lookups—to programmatically label data.

However, DP often ignores the underlying feature space and struggles with noisy or conflicting rules, while SSL typically relies on random subset selection for labeling, which is rarely optimal. This research addresses these gaps by asking: Can we combine rules and features into a single joint model, and can we mathematically determine which data points a human should label to best complement these rules?

Methodology

The SPEAR Framework

Unlike traditional cascaded approaches that train models sequentially, SPEAR employs joint training. It utilizes a multi-component loss function that includes supervised loss on labeled data, entropy minimization on unlabeled data, and an agreement loss (KL-divergence) that forces the feature-based classifier and the rule-based model to align. Additionally, "Quality Guides" are used to incorporate prior beliefs about the accuracy of specific rules.

Examples of Labeling Functions (LFs) used to programmatically label data.

SPEAR-SS (Subset Selection)

To optimize the labeling budget, the authors introduce SPEAR-SS, which uses submodular optimization (specifically Facility Location functions) to select a diverse and representative subset of data for human annotation. Two versions were developed:

  • Unsupervised: Selects points representative of the entire dataset's feature distribution.
  • Supervised: Uses LFs to hypothesize labels first, then selects representative points within each hypothesized class to ensure broad coverage across the distribution.

Experimental Results

The framework was evaluated on seven datasets spanning text classification (YouTube, SMS, IMDB), sequence labeling (MIT-R), and tabular data (Census, Ionosphere, Audit).

Performance comparison of SPEAR and SPEAR-SS against various baselines across seven datasets.

Key Findings

  • Superior Performance: SPEAR consistently outperformed previous state-of-the-art methods like ImplyLoss. For instance, on the YouTube dataset, it achieved a +3.7% gain over the baseline.
  • Handling Class Imbalance: The model showed remarkable robustness on the imbalanced Audit dataset. While previous methods struggled to run or provided minimal gains, SPEAR-SS achieved a +44.5% F1-score improvement.
  • Efficiency of Selection: Automated subset selection (SPEAR-SS) frequently outperformed the "hand-picked" subsets used in prior landmark studies, proving that mathematical selection is more effective than random or intuitive human selection for small labeling budgets.

Discussion and Conclusion

The results suggest that rules and features are highly complementary; while rules provide domain-specific heuristics, feature-based models can capture nuances (like specific n-grams) that rule-writers might miss. Joint training acts as a regularizer, preventing over-reliance on noisy rules.

One limitation noted was the requirement for rule coverage across all classes; performance dipped on the MIT-R dataset where no LFs were provided for the negative class. Future work will focus on extending subset selection to streaming data environments and refining the hyperparameter optimization process for the multi-component loss function.

Summary updated

BibTeX
@inproceedings{maheshwari2021semi,
  author = {Ayush Maheshwari and Oishik Chatterjee and KrishnaTeja Killamsetty and Ganesh Ramakrishnan and Rishabh K. Iyer},
  title = {{Semi-Supervised Data Programming with Subset Selection}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.findings-acl.408},
}
Figure