Progressive Feature Adjustment for Semi-supervised Learning from Pretrained Models

Hai-Ming Xu, Lingqiao Liu, Hao Chen, Ehsan Abbasnejad, Rafael Felix

TL;DR

This paper identifies a critical "bias magnification" issue that occurs when standard semi-supervised learning (SSL) methods are applied to pretrained models. To fix this, the authors propose Progressive Feature Adjustment, a simple strategy that decouples classifier and feature extractor updates to successfully overcome source-domain bias and achieve state-of-the-art results on fine-grained recognition tasks.

What Problem Does This Paper Address?

Semi-supervised learning (SSL) is a powerful tool for building models when labeled data is scarce but unlabeled data is plentiful. Traditionally, SSL research has focused on training models from scratch (random initialization). However, in practice, most computer vision practitioners start with a model pretrained on a massive dataset like ImageNet and then fine-tune it.

The authors point out a surprising gap: naively applying state-of-the-art SSL methods (like FixMatch) to pretrained models often yields disappointing results. They argue this is because pretrained models carry a "bias" inherited from their source data. In a typical SSL self-training loop, the model uses its own (potentially biased) predictions as "pseudo-labels" for unlabeled data. This creates a vicious cycle where the initial bias is reinforced and magnified, preventing the model from correcting early errors.

Figure 1. Visualization of the correct keeping and error correcting ability of FixMatch and ours approach with a pretrained model. The y-axis of the left figure denotes the percentage of the initially correctly labeled data keeping their correct class at a given iter- ation. The y-axis of the right figure denotes the percentage of the initially incorrectly labeled data being predicted to the correct class at a given iteration. The experiment is conducted on FGVC Aircraft dataset with 15% labels. As seen, FixMatch with a pre- trained model shows weaker error correcting ability than the ours approach. Please refer to Section 4.1 for more details.

Methods

The core innovation is a strategy called Progressive Feature Adjustment. Instead of updating the entire network using noisy pseudo-labels, the authors propose a decoupled approach:

  1. Classifier Training: The linear classifier is trained only on the high-quality, noise-free labeled data. This ensures the "decision head" isn't corrupted by incorrect pseudo-labels.
  2. Feature Extractor Adjustment: The feature extractor is adjusted using both labeled and unlabeled data. Instead of a standard classification loss for unlabeled data, they use a contrastive-style loss.
  3. Class-wise Embeddings: The model maintains a set of "class-wise embeddings" (prototypes) for each category. The adjustment loss pulls features toward their predicted class embedding and pushes them away from others.
  4. Progressive Updates: These embeddings are not static; they are updated progressively throughout training using a momentum-based running average of features from both labeled samples and confidently pseudo-labeled unlabeled samples.
Figure 2. Overview of our approach. The feature extractor is initialized with a pretrained model and the classifier is random initialized for the target dataset. In order to alleviate the bias as presented in Section 4.1, we let the classifier only trained on the labeled samples and use the large amount of unlabeled samples to adjust the feature extractor alone through pulling the immediate feature representation to its corresponding class embedding and pushing away to other class embeddings. The class-wise embeddings are progressively updated along the model optimization as presented in Eq. 6 and Eq. 7.

Datasets

The authors evaluated their method on several challenging benchmarks, focusing heavily on fine-grained visual classification (FGVC) where class differences are subtle:

  • FGVC Aircraft: 100 classes of aircraft.
  • Stanford Cars: 196 classes of cars.
  • CUB-200-2011: 200 species of birds.
  • CIFAR-100: A standard, diverse 100-class dataset.

They tested various label proportions (e.g., 15%, 30%, 50%) to simulate different levels of data scarcity.

Key Insights and Ideas

  • The Bias Trap: The most important insight is that the self-training mechanism in SSL acts as a positive feedback loop for the inherent bias of pretrained models. If the model starts with a slight bias (e.g., looking at backgrounds instead of objects), pseudo-labeling will force it to "double down" on that bias.
  • Decoupling as a Safeguard: By restricting the classifier to labeled data, it acts as a more reliable "anchor." The feature extractor is then adjusted to produce representations that the classifier can easily separate, even if the pseudo-labels used for that adjustment are occasionally noisy.
  • Feature Space Regularization: The progressive adjustment explicitly encourages better class separability in the embedding space. As seen in the t-SNE visualizations (Figure 3), this leads to much cleaner clusters compared to standard methods.
Figure 3. Feature embedding visualizations of (left) FixMatch and (right) Ours approach for the first 10 classes of FGVC Aircraft dataset by using t-SNE [29]. Both of the models are initialized with identical ResNet-50 supervised pre-trained on ImageNet.

Key Results

The proposed method significantly outperforms existing SSL techniques when starting from pretrained weights:

  • Fine-grained Performance: On Stanford Cars with only 15% labels, the method achieved 77.22% accuracy, compared to 64.97% for FixMatch and 72.50% for the previous state-of-the-art, Self-Tuning.
  • Robustness to Pretraining: The gains hold true whether the model was pretrained using supervised learning or unsupervised methods like MoCo v2.
  • Simplicity: The approach is remarkably simple to implement, requiring only a few changes to existing SSL pipelines like FixMatch or FlexMatch.

Limitations and Future Work

  • Random Initialization: The authors acknowledge that their method does not provide significant benefits when training from scratch (randomly initialized weights). This confirms that the technique is specifically a solution for the unique challenges of transfer learning in an SSL context.
  • Hyperparameter Sensitivity: While the paper shows robustness to the main new hyperparameters ($\beta$ and $\lambda$), the method still relies on standard SSL hyperparameters like confidence thresholds ($\tau$), which can be tricky to tune.
  • Future Directions: The authors suggest that this "feature adjustment" philosophy could be extended to other types of SSL beyond consistency regularization, potentially benefiting tasks like semantic segmentation or object detection.

Summary updated

BibTeX
@misc{xu2023progressive,
  author = {Hai-Ming Xu and Lingqiao Liu and Hao Chen and Ehsan Abbasnejad and Rafael Felix},
  title = {{Progressive Feature Adjustment for Semi-supervised Learning from Pretrained Models}},
  year = {2023},
  eprint = {2309.04659},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.04659},
}
Figure