Enhancing Sample Utilization through Sample Adaptive Augmentation in Semi-Supervised Learning

Guan Gui, Zhen Zhao, Lei Qi, Luping Zhou, Lei Wang, Yinghuan Shi · DOI

Abstract

In semi-supervised learning (SSL), unlabeled samples are typically utilized through augmentation and consistency regularization. However, we observed that certain samples, even under strong augmentation, are still correctly classified with high confidence, resulting in a loss close to zero. This indicates that these samples have already been learned well and provide no additional optimization benefits, leading to training plateaus. We refer to these as "naive samples." Sample Adaptive Augmentation (SAA) is proposed to address this by identifying naive samples and augmenting them in a more diverse manner. SAA consists of two modules: a sample selection module that picks out naive samples based on historical training information, and a sample augmentation module that applies composite augmentations. SAA is simple, lightweight, and significantly improves performance. For example, it improved FixMatch accuracy from 92.50% to 94.76% on CIFAR-10 with 40 labels.

Introduction

Semi-supervised learning leverages unlabeled data to improve model performance when labeled data is scarce. Popular frameworks like FixMatch rely on consistency regularization, where the model is trained to produce consistent predictions for different augmentations of the same unlabeled image. However, a significant bottleneck exists: as training progresses, many samples become "naive." These are images that the model classifies correctly with high confidence even under strong augmentation, leading to near-zero loss and stagnant optimization. This phenomenon often results in long periods where model performance plateaus, as the model stops receiving useful gradients from a large portion of the unlabeled data.

Naive samples result in near-zero loss (top), leading to performance plateaus in standard training (bottom).

Methodology

To address the issue of naive samples, we propose Sample Adaptive Augmentation (SAA). SAA dynamically identifies these samples and increases their augmentation complexity to maintain a useful gradient signal throughout training.

Sample Selection Module

The system tracks the historical consistency loss of every unlabeled image using an Exponential Moving Average (EMA). It then applies OTSU thresholding—a classic image processing technique—to automatically divide the samples into two groups: "naive" (low historical loss) and "non-naive" (higher historical loss). This selection process is updated at each epoch to adapt to the model's evolving mastery of the dataset.

Sample Augmentation Module

While non-naive samples continue to receive standard strong augmentations, naive samples are given a more diverse and difficult augmentation. Instead of just one strong augmentation, the system generates two different strongly augmented versions of the same image, cuts them in half, and regroups them into a single composite image. This regrouping strategy increases the complexity of the scene without introducing the semantic confusion that can occur when mixing two different images (as in CutMix), ensuring the original pseudo-label remains valid.

The SAA sample augmentation module applies a regrouping strategy to naive samples (Fi=1) to increase training difficulty.

Results and Discussion

SAA was evaluated across several standard benchmarks, including CIFAR-10, CIFAR-100, SVHN, and STL-10. The results demonstrate consistent improvements over baseline models:

  • CIFAR-10: On the 40-label setting, SAA improved FixMatch's accuracy from 92.50% to 94.76% and FlexMatch's from 95.01% to 95.31%.
  • STL-10: SAA helped FixMatch achieve a 2.65% improvement, showcasing its effectiveness on datasets specifically designed for semi-supervised tasks.
  • Training Dynamics: As shown in the training curves, SAA helps the model "break through" plateaus, maintaining a steadier rate of improvement compared to the baseline. This suggests that keeping the model challenged with adaptive difficulty is key to efficient SSL.

Conclusion

SAA is a lightweight, effective plug-in for SSL that optimizes sample utilization. By adaptively increasing augmentation difficulty for samples the model has already mastered, it ensures continuous learning and superior final accuracy. The method is easy to implement and adds negligible computational overhead, making it a practical addition to modern SSL pipelines.

Summary updated

BibTeX
@inproceedings{gui2023enhancing,
  author = {Guan Gui and Zhen Zhao and Lei Qi and Luping Zhou and Lei Wang and Yinghuan Shi},
  title = {{Enhancing Sample Utilization through Sample Adaptive Augmentation in Semi-Supervised Learning}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  doi = {10.1109/iccv51070.2023.01455},
}
Figure