#120 · Primary category: Foundation Models
wise-ft
Robust fine-tuning of zero-shot models
Project last updated:04/29/22
GitHub Stars
766
Forks
73
Contributors
3
License
MIT
Why we included this project
Fine-tuning a large vision-language model like CLIP usually improves accuracy on the training data but can hurt performance when the model meets shifted distributions. WiSE-FT, the method implemented here, sidesteps that trade-off by interpolating the weights of the zero-shot and fine-tuned checkpoints with a mixing coefficient. The result keeps most of the in-distribution gain while restoring much of the zero-shot model's out-of-distribution robustness, and it does so with no extra compute during fine-tuning or inference. This is the reference implementation from the paper, and it's a compact, readable starting point if you want to apply the same weight-space ensembling trick to your own CLIP-style fine-tuning pipeline, especially when you care about robustness to distribution shift.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
CLIP
CLIP (Contrastive Language-Image Pretraining), Predict the most relevant text snippet given an image
MiniCPM-V
A Pocket-Sized MLLM for Ultra-Efficient Image and Video Understanding on Your Phone
generative-models
Generative Models by Stability AI
unilm
Large-scale Self-supervised Pre-training Across Tasks, Languages, and Modalities