Skip to main content
QUICK REVIEW

[Paper Review] Unsupervised Finetuning

Suichan Li, Dongdong Chen|arXiv (Cornell University)|Oct 18, 2021
Domain Adaptation and Few-Shot LearningComputer Science6 citations
TL;DR

This paper proposes unsupervised finetuning to adapt pretrained representations to small-scale unlabeled target data, introducing two strategies—sparse source data replaying and data mixing—to stabilize representation learning. Experiments show significant performance gains over naive unsupervised finetuning across multiple datasets and transfer tasks.

ABSTRACT

This paper studies "unsupervised finetuning", the symmetrical problem of the well-known "supervised finetuning". Given a pretrained model and small-scale unlabeled target data, unsupervised finetuning is to adapt the representation pretrained from the source domain to the target domain so that better transfer performance can be obtained. This problem is more challenging than the supervised counterpart, as the low data density in the small-scale target data is not friendly for unsupervised learning, leading to the damage of the pretrained representation and poor representation in the target domain. In this paper, we find the source data is crucial when shifting the finetuning paradigm from supervise to unsupervise, and propose two simple and effective strategies to combine source and target data into unsupervised finetuning: "sparse source data replaying", and "data mixing". The motivation of the former strategy is to add a small portion of source data back to occupy their pretrained representation space and help push the target data to reside in a smaller compact space; and the motivation of the latter strategy is to increase the data density and help learn more compact representation. To demonstrate the effectiveness of our proposed ``unsupervised finetuning'' strategy, we conduct extensive experiments on multiple different target datasets, which show better transfer performance than the naive strategy.

Motivation & Objective

  • Address the challenge of adapting pretrained models to small-scale unlabeled target datasets, where standard unsupervised learning fails due to low data density.
  • Identify that naive unsupervised finetuning from pretrained representations degrades performance due to unstable contrastive learning on sparse data.
  • Propose two effective strategies—sparse source data replaying and data mixing—to enhance representation compactness and data density during finetuning.
  • Demonstrate that better initialization via unsupervised finetuning improves downstream transfer performance, including in semi-supervised learning.
  • Systematically analyze the limitations of contrastive loss in low-data regimes and propose solutions grounded in representation stability.

Proposed method

  • Introduce 'sparse source data replaying' by incorporating a small portion (e.g., 10%) of source domain data into the contrastive learning process during finetuning to preserve pretrained representation space.
  • Use 'data mixing' to generate synthetic positive samples by blending two random images, with weights based on mixing ratio, to increase data density and encourage compact representations.
  • Combine both strategies during unsupervised finetuning: use mixed samples and replayed source data to train the model on a combined set of target and selected source data.
  • Apply contrastive learning with MoCo-style queue and momentum encoder to maintain representation stability during training on small target sets.
  • Train the model end-to-end on the combined data stream, using the same loss objective as standard contrastive learning but with augmented data and replayed source samples.
  • Ensure computational efficiency by limiting replayed source data and using lightweight mixing operations, making the method practical for real-world low-data scenarios.

Experimental results

Research questions

  • RQ1Why does naive unsupervised finetuning from a pretrained model fail on small-scale unlabeled target data?
  • RQ2How can the representation quality be preserved and improved when fine-tuning on limited target data without labels?
  • RQ3What role does the source data play in stabilizing unsupervised representation learning during finetuning on small target sets?
  • RQ4Can data mixing improve representation compactness and generalization in low-data regimes?
  • RQ5Does unsupervised finetuning with the proposed strategies lead to better transfer performance across diverse downstream tasks?

Key findings

  • Sparse source data replaying significantly improves few-shot transfer performance, boosting 2-shot accuracy by 6.8% on Caltech101 and 6.9% on Pet.
  • Data mixing consistently improves performance across all datasets, with a 23.12% gain in 2-shot transfer accuracy on Food101.
  • The combination of both strategies achieves the best performance, with 87.24% accuracy on Caltech101 under 8-shot transfer, outperforming baseline unsupervised finetuning.
  • Semi-supervised learning using the unsupervised-finetuned model as initialization achieves 8.3% performance gain on Food101 with only 2 labeled samples per class, compared to 2% with standard pretraining.
  • The ablation study confirms that both strategies are essential: removing either leads to substantial performance drops, especially on low-data datasets.
  • The proposed method generalizes across different pretraining methods (supervised and unsupervised), target datasets (Caltech101, Pet, CIFAR100, Food101), and transfer tasks (retrieval, clustering, few-shot learning).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.