Introduction
Deep learning typically requires vast amounts of labeled data. To address this, researchers often employ Transfer Learning (TL)—fine-tuning a model pre-trained on a large dataset like ImageNet—and Semi-Supervised Learning (SSL)—leveraging unlabeled data to improve model performance. While both paradigms are powerful, combining them is not trivial. Standard SSL methods often assume training from scratch, which can lead to issues like negative transfer (where source knowledge hinders target task performance) and representation mismatch (where models overfit on inappropriate feature spaces in low-data regimes).
Presented at CVPR 2021, this work introduces Adaptive Consistency Regularization, a framework designed to intelligently bridge SSL and TL by filtering noisy data and aligning distributions through an entropy-based gating mechanism.
Methodology
The proposed framework introduces two primary components that adaptively regularize the fine-tuning process: Adaptive Knowledge Consistency (AKC) and Adaptive Representation Consistency (ARC).
Adaptive Knowledge Consistency (AKC)
AKC acts as a cross-task knowledge distillation mechanism. It encourages the target model to maintain consistency with the pre-trained source model's feature representations. Crucially, this consistency is applied adaptively via an entropy gate. The regularization only triggers for samples where the source model exhibits high confidence. This prevents the target model from inheriting "noisy" or irrelevant features from the source domain that do not apply to the target task.
Adaptive Representation Consistency (ARC)
ARC focuses on aligning the feature distributions within the target domain. It utilizes Maximum Mean Discrepancy (MMD) to ensure that the representations of labeled and unlabeled data are statistically similar. Like AKC, ARC employs an entropy gate based on the target model’s confidence. It also incorporates a replay buffer to store high-confidence features, ensuring stable MMD calculations even with small batch sizes.
Key Insights: Implicit Curriculum Learning
A significant finding of this research is the emergence of an implicit curriculum. As training progresses, the model's confidence grows, allowing the entropy gates to "open" for more samples.
As shown in Figure 2, the selection ratio for ARC starts low and increases, meaning the model first aligns "easy" high-confidence samples before tackling more complex ones. This adaptive behavior makes the framework robust across diverse datasets.
Experiments and Results
The authors evaluated the framework by fine-tuning an ImageNet-pre-trained ResNet-50 on four benchmarks: CIFAR-10, CUB-200-2011 (fine-grained birds), MIT Indoor-67 (scenes), and MURA (medical X-rays).
The results demonstrate that AKC and ARC are orthogonal to existing SSL methods. When integrated with algorithms like FixMatch or MixMatch, they provide a substantial performance boost, particularly in extremely low-label settings:
- CUB-200: With only 200 labels, the method improved accuracy by 27.8% relative to MixMatch.
- CIFAR-10: Error rates were reduced by 10.59% when using 250 labels compared to standard MixMatch.
- MURA: Despite the significant domain shift from natural images to radiographs, the entropy-gating mechanism successfully mitigated negative transfer.
Conclusion
Adaptive Consistency Regularization offers a practical and effective way to combine Transfer Learning and Semi-Supervised Learning. By using confidence as a filter, the framework avoids the pitfalls of negative transfer and representation mismatch. While hyperparameter tuning for the entropy threshold remains a consideration, the method's compatibility with existing SSL techniques makes it a powerful tool for real-world applications where labeled data is scarce.
Summary updated