FlexMatch: Boosting Semi-Supervised Learning with Curriculum Pseudo Labeling

Bowen Zhang, Yidong Wang, Wenxin Hou, Hao Wu, Jindong Wang, Manabu Okumura, Takahiro Shinozaki

Abstract

Modern semi-supervised learning (SSL) frameworks often rely on a fixed confidence threshold to filter pseudo-labels, which fails to account for the varying learning difficulties across different classes. We present Curriculum Pseudo Labeling (CPL), a dynamic thresholding strategy that adjusts per-class thresholds based on real-time learning progress. By integrating CPL into the FixMatch algorithm to create FlexMatch, we demonstrate significant performance gains in low-label regimes and achieve up to a 5x acceleration in convergence speed without additional computational cost.

Introduction

Semi-supervised learning (SSL) has become a cornerstone of deep learning research, particularly through methods like FixMatch, UDA, and Pseudo-Labeling. These algorithms generate artificial labels for unlabeled data but typically employ a pre-defined, constant confidence threshold (e.g., 0.95) to filter out noisy predictions. While effective, this approach introduces two major bottlenecks:

  1. Wasted Data: Early in training, the model lacks confidence, causing a vast majority of unlabeled data to be discarded and slowing the learning process.
  2. Class Agnosticism: A fixed threshold treats all classes equally, despite some being inherently harder to learn. This "starves" difficult classes of pseudo-labeled data, leading to severe underperformance on those specific categories.

Methodology: Curriculum Pseudo Labeling (CPL)

To overcome these limitations, we propose Curriculum Pseudo Labeling (CPL). CPL is a self-paced curriculum learning strategy that dynamically adjusts the confidence threshold for each class independently.

Instead of requiring an external validation set, CPL uses a computationally free proxy for learning progress: the number of unlabeled samples that confidently fall into a specific class (i.e., those exceeding the base threshold).

The CPL process dynamically adjusts thresholds based on the estimated learning effect of each class.

As illustrated above, classes with many high-confidence predictions are considered "well-learned," and their thresholds remain high to maintain quality. Conversely, classes with few confident predictions are identified as "hard-to-learn," and CPL dynamically lowers their thresholds. This allows more unlabeled samples to pass through, forcing the model to proactively learn difficult concepts early in the training cycle.

Experimental Results

We evaluated FlexMatch against standard SSL benchmarks, including CIFAR-10/100, SVHN, and STL-10. FlexMatch consistently outperformed existing methods, particularly in scenarios with extremely scarce labeled data.

Comparison of error rates across various datasets and label amounts. FlexMatch shows significant improvements in low-label settings.

Key Findings:

  • Superior Performance in Low-Label Regimes: On CIFAR-100 with only 4 labels per class (400 total), FlexMatch achieved an error rate of 39.94%, a relative reduction of nearly 14% compared to FixMatch's 46.42%.
  • Accelerated Convergence: FlexMatch reaches the final accuracy of FixMatch in less than 20% of the total training time. For instance, at 200k iterations on CIFAR-10, FlexMatch hits 94.29% accuracy, while FixMatch remains at 56.35%.
  • Plug-and-Play Versatility: CPL is not limited to FixMatch; applying it to UDA (Flex-UDA) and Pseudo-Labeling (Flex-PL) yielded similar performance boosts across all benchmarks.

Discussion and Limitations

While CPL provides a significant boost, it faces challenges with extreme class imbalance. In datasets like SVHN, minority classes may never reach a high "well-learned" count, keeping their thresholds permanently low and potentially allowing noisy pseudo-labels to corrupt training. Future work will focus on adapting CPL to better handle these long-tail distributions in unlabeled data.

In conclusion, FlexMatch demonstrates that dynamic, class-specific thresholding is a powerful, cost-free technique for improving both the accuracy and efficiency of semi-supervised learning.

Summary updated

BibTeX
@inproceedings{zhang2021flexmatch,
  author = {Bowen Zhang and Yidong Wang and Wenxin Hou and Hao Wu and Jindong Wang and Manabu Okumura and Takahiro Shinozaki},
  title = {{FlexMatch: Boosting Semi-Supervised Learning with Curriculum Pseudo Labeling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=hgXdUk2687-},
}
Figure