Robust Fine-tuning of Zero-shot Models via Variance Reduction
Not on the map. Why?
Abstract (arXiv)
When fine-tuning zero-shot models like CLIP, our desideratum is for the fine-tuned model to excel in both in-distribution (ID) and out-of-distribution (OOD). Recently, ensemble-based models (ESM) have been shown to offer significant robustness improvement, while preserving high ID accuracy. However, our study finds that ESMs do not solve the ID-OOD trade-offs: they achieve peak performance for ID and OOD accuracy at different mixing coefficients. When optimized for OOD accuracy, the ensemble model exhibits a noticeable decline in ID accuracy, and vice versa. In contrast, we propose a sample-wise ensembling technique that can simultaneously attain the best ID and OOD accuracy without the trade-offs. Specifically, we construct a Zero-Shot Failure (ZSF) set containing training samples incorrectly predicted by the zero-shot model. For each test sample, we calculate its distance to the ZSF set and assign a higher weight to the fine-tuned model in the ensemble if the distance is small. We term our method Variance Reduction Fine-tuning (VRF), as it effectively reduces the variance in ensemble predictions, thereby decreasing residual error. On ImageNet and five derived distribution shifts, our VRF further improves the OOD accuracy by 1.5 - 2.0 pp over the ensemble baselines while maintaining or increasing ID accuracy. VRF achieves similar large robustness gains (0.9 - 3.1 pp) on other distribution shifts benchmarks. Codes are available in https://github.com/BeierZhu/VRF.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 25 of its 32 references that are in the map. First posted on arXiv 11 Nov 2024.
Builds on
25 of 32 references.
References · 25
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,864
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
- 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,515
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
- 2019Natural Adversarial Examplescited by 1,408
- 2020Energy-based Out-of-distribution Detectioncited by 1,299
- 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,013
- 2021Robust fine-tuning of zero-shot modelscited by 797
- 2022Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distributioncited by 739
13 more
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
- 2021A Simple Fix to Mahalanobis Distance for Improving Near-OOD Detectioncited by 207
- 2020On the Theory of Transfer Learning: The Importance of Task Diversitycited by 186
- 2020BREEDS: Benchmarks for Subpopulation Shiftcited by 155
- 2022Finetune like you pretrain: Improved finetuning of zero-shot vision modelscited by 150
- 2020Removing Spurious Features can Hurt Accuracy and Affect Groups Disproportionatelycited by 52
- 2020In-N-Out: Pre-Training and Self-Training using Auxiliary Information for Out-of-Distribution Robustnesscited by 50
- 2022Calibrated ensembles can mitigate accuracy tradeoffs under distribution shiftcited by 34
- 2023Generalized Logit Adjustment: Calibrating Fine-tuned Models by Removing Label Bias in Foundation Modelscited by 32
- 2023Spurious Feature Diversification Improves Out-of-distribution Generalizationcited by 26
- 2023Debiased Fine-Tuning for Vision-language Models by Prompt Regularizationcited by 21
- 2024Lipsum-FT: Robust Fine-Tuning of Zero-Shot Models Using Random Text Guidancecited by 14
- 2024Anchor-based Robust Finetuning of Vision-Language Modelscited by 11
Built on by
Citing papers per year: 2025: 3; 2026: 3.
6 papers.
- 2025Enhancing CLIP Robustness via Cross-Modality Alignmentcited by 15
- 2025Dynamic Multimodal Prototype Learning in Vision-Language Modelscited by 13
- 2025Project-Probe-Aggregate: Efficient Fine-Tuning for Group Robustnesscited by 9
- 2026MERGETUNE: Continued Fine-Tuning of Vision-Language Modelscited by 0
- 2026Scalable Multi-Task Low-Rank Model Adaptationcited by 0
- 2026Meta-Learning Hyperparameters for Parameter Efficient Fine-Tuningcited by 0
- 2026Meta-Learning Hyperparameters for Parameter Efficient Fine-Tuning2 Mar 2026
- 2026Scalable Multi-Task Low-Rank Model Adaptation2 Mar 2026
- 2026MERGETUNE: Continued Fine-Tuning of Vision-Language Models15 Jan 2026
- 2025Enhancing CLIP Robustness via Cross-Modality Alignment28 Oct 2025
- 2025Dynamic Multimodal Prototype Learning in Vision-Language Models4 Jul 2025
- 2025Project-Probe-Aggregate: Efficient Fine-Tuning for Group Robustness12 Mar 2025