Abstract
Semi-supervised learning (SSL) often suffers from training inefficiencies due to the exclusion of "unconfident" unlabeled data. We present Contrastive Regularization (CR), a novel approach that leverages both confident and unconfident samples to improve feature clustering in latent space. By applying a contrastive loss at the feature level, CR achieves state-of-the-art accuracy and significantly faster convergence across multiple benchmarks, including CIFAR and ImageNet.
Introduction
The current gold standard for semi-supervised learning, consistency regularization (e.g., FixMatch), relies on forcing identical predictions for different augmentations of the same unlabeled image. To avoid confirmation bias—where the model learns from its own incorrect guesses—these methods typically employ a high confidence threshold (e.g., 95%). Consequently, any sample falling below this threshold is discarded, leading to extreme training inefficiency. FixMatch often requires over 10,000 epochs to converge because labeling information propagates through the dataset at a very slow pace.
Methodology: Contrastive Regularization (CR)
To address this "efficiency gap," the authors propose Contrastive Regularization (CR). Unlike standard methods that only update class weights based on confident predictions, CR utilizes the relationships between all samples in a mini-batch to organize the feature space.
CR operates through three primary mechanisms:
- Cluster Formation: Features are grouped based on their pseudo-labels, regardless of the model's confidence level.
- The Pull and Push: A contrastive loss function pulls features with the same pseudo-label closer together while pushing those with different labels apart.
- Feature-Level Learning: This regularization occurs at the penultimate layer (the feature level) rather than the final classifier. This allows the model to learn the underlying data manifold from unconfident samples without prematurely committing to potentially incorrect labels in the final output.
Empirical Analysis and Results
The effectiveness of CR is most apparent in the early stages of training. By organizing the feature space into clean clusters early on, a single confident label can propagate its information to all other members of that cluster, including unconfident ones.
Key Findings
- Massive Speedup: On CIFAR-100, FixMatch+CR achieved superior results in 2,500 epochs compared to the 10,000 epochs required by standard FixMatch. In some instances, peak performance was reached in just 7% of the baseline training time.
- State-of-the-Art Accuracy: The method consistently outperformed previous SOTA models. For CIFAR-10 with only 20 labels, accuracy jumped from 74.98% (FixMatch) to 88.26% (FixMatch+CR).
- Robustness to Noise: CR demonstrated high resilience in "Open-Set" scenarios where unlabeled data contained out-of-distribution (OOD) images. Because CR works on features rather than direct label predictions, it maintains higher accuracy even when the data is "polluted."
Conclusion
Contrastive Regularization provides a mathematically grounded and empirically robust solution to the inefficiencies of modern SSL. By treating unconfident data as a source of structural information rather than noise, CR enables models to learn well-defined feature clusters rapidly. While the method currently benefits from large batch sizes, future work may explore memory-efficient implementations or applications in non-visual domains like natural language processing.
Summary updated