Pruning the Unlabeled Data to Improve Semi-Supervised Learning

Guy Hacohen, Daphna WeinshallarXiv 2023

Abstract

In the domain of semi-supervised learning (SSL), the conventional approach involves training a learner with a limited amount of labeled data alongside a substantial volume of unlabeled data, both drawn from the same underlying distribution. However, for deep learning models, this standard practice may not yield optimal results. In this research, we propose an alternative perspective, suggesting that distributions that are more readily separable could offer superior benefits to the learner as compared to the original distribution. To achieve this, we present PruneSSL, a practical technique for selectively removing examples from the original unlabeled dataset to enhance its separability. We present an empirical study, showing that although PruneSSL reduces the quantity of available training data for the learner, it significantly improves the performance of various competitive SSL algorithms, thereby achieving state-of-the-art results across several image classification tasks.

Introduction

Conventional wisdom in Semi-Supervised Learning (SSL) suggests that "more is better" when it comes to unlabeled data. Traditionally, researchers assumed that both labeled and unlabeled sets should come from the exact same underlying distribution. However, this "same distribution" assumption may not be optimal for deep learning. In practice, unlabeled datasets often contain "noisy" or ambiguous instances that lie near decision boundaries. These instances can confuse a model, leading it to learn incorrect dependencies and harming its ability to generalize.

The core challenge addressed by this work is identifying and removing these detrimental unlabeled points without access to their true labels. The authors propose that a smaller, more separable unlabeled dataset is more valuable than a larger, more ambiguous one.

The PruneSSL Framework

The authors introduce PruneSSL, a modular four-step protocol designed to "clean" the unlabeled dataset before the actual SSL training begins. This preprocessing step aims to enhance the separability of the data clusters before they are used for semi-supervised training.

The PruneSSL pipeline: from unsupervised representation to pruning low-confidence examples, compared to a random sample.

The process consists of:

  1. Unsupervised Representation: Unlabeled data is passed through a self-supervised task (e.g., SimCLR) or a pre-trained model (e.g., Inception) to create a meaningful embedding space.
  2. Pseudo-labeling: Data is clustered in this embedding space (using algorithms like SCAN or k-means) to assign "pseudo-labels" to every unlabeled point.
  3. Confidence Scoring: A simple classifier (like an RBF-SVM) is trained on these embeddings and pseudo-labels.
  4. Pruning: Classifier confidence scores are used to rank the data. Instances with the lowest confidence—those most likely to undermine cluster separability—are pruned.

Experimental Results

The researchers evaluated PruneSSL across standard computer vision benchmarks, including CIFAR-10, CIFAR-100, and STL-10. A key finding is the consistent performance gain across a wide variety of SSL algorithms. As shown in the figure below, PruneSSL improved the accuracy of every SSL algorithm tested (10 different methods) on CIFAR-100. For instance, it notably boosted SoftMatch from ~43% to ~46% using only 300 labels.

Comparison of accuracy across 10 different SSL algorithms on CIFAR-100, showing consistent gains using PruneSSL over using all data.

Key Insights

  • Separability > Quantity: Pruning points in high-density regions near boundaries effectively "clears a path" for SSL algorithms to find better decision boundaries, reinforcing the "cluster assumption."
  • Modularity: As a preprocessing step, PruneSSL is "plug-and-play" and can be combined with almost any existing SSL algorithm, benefiting from future improvements in self-supervised embeddings.
  • Efficiency in Scarcity: The benefits are most pronounced when labeled data is extremely limited. As the labeled set grows, the relative advantage of pruning decreases.
  • Optimal Pruning Level: Experiments suggest a "sweet spot" for pruning, typically retaining about 60% of the unlabeled data for the best results.

Conclusion and Future Work

PruneSSL demonstrates that selectively removing "hard" or ambiguous examples from the unlabeled pool can significantly boost performance, even with a reduction in total training data. The primary limitation is its dependency on the initial representation and clustering stages; if these fail, pruning becomes ineffective. Future work could explore integrating the pruning process directly into the SSL training loop or adapting the framework for non-image domains like Natural Language Processing or Audio.

Summary updated

BibTeX
@misc{hacohen2023pruning,
  author = {Guy Hacohen and Daphna Weinshall},
  title = {{Pruning the Unlabeled Data to Improve Semi-Supervised Learning}},
  year = {2023},
  eprint = {2308.14058},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.14058},
}
Figure