Abstract
Semi-supervised learning (SSL) algorithm is a setup built upon a realistic assumption that access to a large amount of labeled data is tough. In this study, we present a generalized framework, named SCAR, standing for Selecting Clean samples with Adversarial Robustness, for improving the performance of recent SSL algorithms. By adversarially attacking pre-trained models with semi-supervision, our framework shows substantial advances in classifying images. We introduce how adversarial attacks successfully select high-confident unlabeled data to be labeled with current predictions. On CIFAR10, three recent SSL algorithms with SCAR result in significantly improved image classification.
Introduction
Semi-Supervised Learning (SSL) addresses the challenge of training high-performing models when labeled data is scarce but unlabeled data is abundant. A core mechanism in modern SSL is pseudo-labeling, where the model generates labels for unlabeled data to expand its training set. However, this process is susceptible to noise: if a model assigns an incorrect but high-confidence label to a sample, it reinforces its own errors, leading to performance degradation. While standard methods employ confidence thresholds (e.g., Softmax probability), these often fail to distinguish between truly "clean" samples and those where the model is confidently incorrect.
The SCAR Framework
We propose SCAR (Selecting Clean samples with Adversarial Robustness), a two-step fine-tuning framework that utilizes adversarial robustness as a diagnostic tool for data quality. Instead of relying solely on probability scores, SCAR evaluates the stability of a model's decision boundary.
The process involves:
- Pre-training: An initial SSL model (e.g., VAT, MixMatch, or FixMatch) is trained on the available data.
- Adversarial Filtering: For each unlabeled image, an adversarial attack is generated—a small, calculated perturbation designed to flip the model's prediction.
- Selection: A sample is deemed "clean" only if the model's prediction remains invariant under the attack (within a perturbation limit $\epsilon$).
- Fine-tuning: These robustly labeled samples are integrated into the training set for further model refinement.
Experimental Results
The SCAR framework was evaluated on the CIFAR-10 dataset using 4,000 labeled samples. The results demonstrate consistent improvements across multiple state-of-the-art SSL baselines.
As shown in the results, MixMatch saw the most significant gain, with a 3.00% absolute increase in accuracy. FixMatch, already a high-performing baseline, reached an accuracy of 95.17% when augmented with SCAR.
Analysis of Robustness and Sensitivity
The effectiveness of SCAR hinges on the perturbation parameter $\epsilon$. A larger $\epsilon$ represents a stronger attack, which increases the "sensitivity" of the filter—ensuring that the selected samples are highly likely to be correctly labeled. However, this comes at the cost of "specificity," as fewer samples meet the stringent robustness criteria.
For instance, with FixMatch at $\epsilon=1$, SCAR achieves a sensitivity of 99.59%, indicating that nearly all selected pseudo-labels are correct. This high precision is key to preventing the "hallucination" effect common in standard pseudo-labeling where the model learns from its own mistakes.
Conclusion
SCAR demonstrates that adversarial attacks, typically viewed as a vulnerability, can be repurposed as a powerful quality filter for semi-supervised learning. By selecting samples based on decision boundary stability rather than just output probability, SCAR significantly enhances the reliability of pseudo-labeling. While computationally more expensive than simple thresholding, the accuracy gains suggest it is a robust path forward for SSL research.
Summary updated