Improving Barely Supervised Learning by Discriminating Unlabeled Samples with Super-Class

Guan Gui, Zhen Zhao, Lei Qi, Luping Zhou, Lei Wang, Yinghuan ShiNeurIPS 2022

TL;DR

Standard semi-supervised learning (SSL) often fails in "Barely Supervised" scenarios where only one or two labels per class are available, leading to model collapse. This paper introduces SCMatch, which prevents collapse by clustering unlabeled data into "super-classes" to provide a soft discriminative signal, achieving a massive 10% accuracy boost on CIFAR-10 with just one label per class.

What Problem Does This Paper Address?

Semi-supervised learning (SSL) has become incredibly efficient, often reaching high accuracy with very little labeled data. However, there is a breaking point: Barely-Supervised Learning (BSL). In BSL, we might have only one or two labeled examples per category.

The authors observe that in these extreme cases, state-of-the-art methods like FixMatch suffer from model collapse. Because there are so few labels, the model's "separability" (the ability to distinguish between classes) is overwhelmed by its "immutability" (the drive to produce consistent predictions for different versions of the same unlabeled image).

Immutability vs. Separability

The result? The model takes the path of least resistance and starts predicting every single image as the same class, completely failing to learn meaningful distinctions.

Methods

The authors propose a dual-module framework to balance consistency and discrimination:

  1. Consistent Information Learning Module: This is the standard SSL approach (similar to FixMatch). It uses "weak" and "strong" augmentations of the same image and encourages the model to produce the same prediction for both.
  2. Discriminative Information Learning Module (The Core Innovation): To prevent model collapse, the authors mine "latent guidance" from unlabeled data:
  3. Super-Classes: Instead of trying to guess the exact label for every unlabeled image (which is very noisy in BSL), they cluster unlabeled features into a smaller number of "super-classes" using K-Means.
  4. Distribution-based Loss: They calculate a mean probability distribution for each super-class. They then apply a contrastive-like loss that encourages an unlabeled sample to be closer to its assigned super-class distribution than to others. This is a "softer" constraint than hard pseudo-labeling, making it more robust to errors.
  5. Progressive Construction: At the start of training, the model is weak, so they use a small number of super-classes ($K$). As the model improves, they dynamically increase $K$ to provide finer-grained discriminative signals.

Datasets

The researchers evaluated their method on three standard computer vision benchmarks, specifically focusing on the 1-label and 2-labels per class settings:

  • CIFAR-10: 10 classes of small images.
  • CIFAR-100: 100 classes, providing a more complex challenge for clustering.
  • STL-10: A dataset designed for semi-supervised learning with a larger set of unlabeled images.

Key Insights and Ideas

  • Separability vs. Immutability: The paper provides a clear theoretical framework for why BSL fails. If the discriminative signal from labels is too weak, the consistency regularization (immutability) forces all points in the feature space to merge into a single cluster.
  • Soft Guidance over Hard Labels: In BSL, pseudo-labels are often wrong. By using super-class distributions, the model receives a "neighborhood" signal rather than a "point" signal, which is much more tolerant of the noise inherent in early-stage training.
  • The Power of On-the-Fly Clustering: By performing K-Means clustering within mini-batches during training, the model discovers the underlying structure of the data without needing any prior knowledge of class hierarchies.

Key Results

The proposed method, SCMatch, significantly outperformed existing SSL and BSL baselines:

Performance and Model Collapse Prevention
  • CIFAR-10 (1 label/class): Achieved 76.76% accuracy, a nearly 10% improvement over previous state-of-the-art methods like LESS and SLA.
  • STL-10 (1 label/class): Reached 52.51%, outperforming others by roughly 20%.
  • Preventing Collapse: As shown in the distributions above, while FixMatch collapses to predicting a single class after 100 epochs, SCMatch maintains a healthy, balanced class distribution.
  • Stability: While FixMatch's performance varies wildly depending on which specific images are labeled (the "luck of the draw"), SCMatch showed much lower variance across different random seeds, proving it is a more stable and reliable learner.

Limitations and Future Work

  • Performance at Scale: While SCMatch dominates in the "barely supervised" regime, its advantage narrows as more labeled data becomes available. In high-label settings, other SOTA methods that use advanced techniques like class-proportion priors still hold a slight edge.
  • Clustering Sensitivity: The method relies on K-Means. While the authors show that the specific choice of $K$ isn't overly sensitive, the quality of the initial feature representations still dictates how well the super-classes can guide the model.
  • Future Directions: The authors suggest that exploring more complex clustering algorithms or integrating prior knowledge of class hierarchies (when available) could further refine the discriminative signal.

Summary updated

BibTeX
@inproceedings{gui2022improving,
  author = {Guan Gui and Zhen Zhao and Lei Qi and Luping Zhou and Lei Wang and Yinghuan Shi},
  title = {{Improving Barely Supervised Learning by Discriminating Unlabeled Samples with Super-Class}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=OfJyKAnumd},
}
Figure