HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

FlexMatch: Boosting Semi-Supervised Learning with Curriculum Pseudo Labeling

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

FlexMatch: Boosting Semi-Supervised Learning with Curriculum Pseudo Labeling

Abstract

The recently proposed FixMatch achieved state-of-the-art results on most semi-supervised learning (SSL) benchmarks. However, like other modern SSL algorithms, FixMatch uses a pre-defined constant threshold for all classes to select unlabeled data that contribute to the training, thus failing to consider different learning status and learning difficulties of different classes. To address this issue, we propose Curriculum Pseudo Labeling (CPL), a curriculum learning approach to leverage unlabeled data according to the model's learning status. The core of CPL is to flexibly adjust thresholds for different classes at each time step to let pass informative unlabeled data and their pseudo labels. CPL does not introduce additional parameters or computations (forward or backward propagation). We apply CPL to FixMatch and call our improved algorithm FlexMatch. FlexMatch achieves state-of-the-art performance on a variety of SSL benchmarks, with especially strong performances when the labeled data are extremely limited or when the task is challenging. For example, FlexMatch achieves 13.96% and 18.96% error rate reduction over FixMatch on CIFAR-100 and STL-10 datasets respectively, when there are only 4 labels per class. CPL also significantly boosts the convergence speed, e.g., FlexMatch can use only 1/5 training time of FixMatch to achieve even better performance. Furthermore, we show that CPL can be easily adapted to other SSL algorithms and remarkably improve their performances. We open-source our code at https://github.com/TorchSSL/TorchSSL.

Code Repositories

torchssl/torchssl
Official
pytorch
Mentioned in GitHub
beandkay/sequencematch
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
semi-supervised-image-classification-on-2FlexMatch
Top 1 Accuracy: 64.79%
Top 5 Accuracy: 86.04%
semi-supervised-image-classification-on-cifarFlexMatch
Percentage error: 4.19±0.01
semi-supervised-image-classification-on-cifar-2FlexMatch
Percentage error: 21.90±0.15
semi-supervised-image-classification-on-cifar-6FlexMatch
Percentage error: 4.8±0.06
semi-supervised-image-classification-on-cifar-7FlexMatch
Percentage error: 4.99±0.16
semi-supervised-image-classification-on-cifar-8FlexMatch
Percentage error: 39.94±1.62
semi-supervised-image-classification-on-cifar-9FlexMatch
Percentage error: 26.49±0.20

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp