[Paper Review] CLIP Itself is a Strong Fine-tuner: Achieving 85.7% and 88.0% Top-1 Accuracy with ViT-B and ViT-L on ImageNet
This paper demonstrates that CLIP, when fine-tuned with a carefully optimized hyper-parameter strategy, achieves state-of-the-art performance on ImageNet-1K, reaching 85.7% and 88.0% top-1 accuracy with ViT-Base and ViT-Large backbones, respectively, challenging the belief that CLIP is unsuitable for fine-tuning and establishing it as a strong baseline for vision representation learning.
Recent studies have shown that CLIP has achieved remarkable success in performing zero-shot inference while its fine-tuning performance is not satisfactory. In this paper, we identify that fine-tuning performance is significantly impacted by hyper-parameter choices. We examine various key hyper-parameters and empirically evaluate their impact in fine-tuning CLIP for classification tasks through a comprehensive study. We find that the fine-tuning performance of CLIP is substantially underestimated. Equipped with hyper-parameter refinement, we demonstrate CLIP itself is better or at least competitive in fine-tuning compared with large-scale supervised pre-training approaches or latest works that use CLIP as prediction targets in Masked Image Modeling. Specifically, CLIP ViT-Base/16 and CLIP ViT-Large/14 can achieve 85.7%,88.0% finetuning Top-1 accuracy on the ImageNet-1K dataset . These observations challenge the conventional conclusion that CLIP is not suitable for fine-tuning, and motivate us to rethink recently proposed improvements based on CLIP. We will release our code publicly at \url{https://github.com/LightDXY/FT-CLIP}.
Motivation & Objective
- To investigate whether CLIP's fine-tuning performance is underestimated due to suboptimal hyper-parameter choices.
- To identify and validate a comprehensive set of hyper-parameter configurations that maximize CLIP's fine-tuning accuracy on ImageNet-1K.
- To establish CLIP itself as a strong, competitive alternative to supervised pre-training or CLIP-distillation methods in fine-tuning settings.
- To provide a reproducible, high-performing baseline for future research on CLIP-based vision models.
Proposed method
- Fine-tuned CLIP ViT-Base/16 and ViT-Large/14 on ImageNet-1K using a modified training protocol with optimized hyper-parameters.
- Employed a layer-wise linear scaling strategy for the initial learning rate, with lower layers trained at a reduced rate.
- Used a cosine learning rate decay schedule with 20 warm-up epochs and a base initial learning rate of 1e-3.
- Applied strong data augmentations including RandAug (m9, n2, mstd0.5), mixup (0.8), cutmix (1.0), and random erase (0.25).
- Incorporated label smoothing (0.1) and weight decay (0.05) as regularization techniques.
- Evaluated architectural modifications such as relative position encoding (RPE) and layer scaling (LS), finding minimal performance gains.
Experimental results
Research questions
- RQ1Can CLIP achieve state-of-the-art fine-tuning performance on ImageNet-1K when hyper-parameters are carefully tuned?
- RQ2What specific hyper-parameter configurations significantly improve CLIP's fine-tuning accuracy?
- RQ3How does the performance of directly fine-tuned CLIP compare to methods that use CLIP as a distillation target in masked image modeling?
- RQ4Does architectural modification (e.g., RPE, LS) improve CLIP's fine-tuning performance?
- RQ5What is the impact of regularization techniques like drop path, label smoothing, and weight decay on CLIP fine-tuning?
Key findings
- CLIP ViT-Base/16 achieved 85.7% top-1 accuracy on ImageNet-1K with 224×224 input resolution, surpassing the state-of-the-art CLIP-targeted MIM method by 0.2%.
- With 384×384 input resolution, CLIP ViT-Base achieved 86.6% top-1 accuracy, comparable to models pre-trained on JFT-300M or JFT-3B.
- CLIP ViT-Large/14 achieved 88.0% top-1 accuracy at 224×224 resolution and 88.3% at 336×336 resolution, demonstrating strong performance on larger models.
- The layer-wise learning rate strategy significantly improved performance, with half of the layers frozen yielding 85.6% accuracy.
- Label smoothing (0.1) was crucial—removing it led to overfitting and a drop to 85.3% top-1 accuracy.
- Drop path regularization degraded performance when used in fine-tuning, likely due to its absence during pre-training.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.