CRoFT: Robust Fine-Tuning with Concurrent Optimization for OOD Generalization and Open-Set OOD Detection
On the map: Multimodal LLMs / vision-language models → Prompt learning and adaptation of CLIP
Abstract (arXiv)
Recent vision-language pre-trained models (VL-PTMs) have shown remarkable success in open-vocabulary tasks. However, downstream use cases often involve further fine-tuning of VL-PTMs, which may distort their general knowledge and impair their ability to handle distribution shifts. In real-world scenarios, machine learning systems inevitably encounter both covariate shifts (e.g., changes in image styles) and semantic shifts (e.g., test-time unseen classes). This highlights the importance of enhancing out-of-distribution (OOD) generalization on covariate shifts and simultaneously detecting semantic-shifted unseen classes. Thus a critical but underexplored question arises: How to improve VL-PTMs' generalization ability to closed-set OOD data, while effectively detecting open-set unseen classes during fine-tuning? In this paper, we propose a novel objective function of OOD detection that also serves to improve OOD generalization. We show that minimizing the gradient magnitude of energy scores on training data leads to domain-consistent Hessians of classification loss, a strong indicator for OOD generalization revealed by theoretical analysis. Based on this finding, we have developed a unified fine-tuning framework that allows for concurrent optimization of both tasks. Extensive experiments have demonstrated the superiority of our method. The code is available at https://github.com/LinLLLL/CRoFT.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Placed in Prompt learning and adaptation of CLIP, one of 16 directions in Multimodal LLMs / vision-language models. Builds on 58 of its 83 references that are in the map. First posted on arXiv 26 May 2024.
Builds on
58 of 83 references.
Closest ancestors · 8
Same direction, newest first
- 2023Unsupervised Prototype Adapter for Vision-Language Models22 Aug
- 2023Improving Zero-Shot Generalization for CLIP with Synthesized Prompts14 Jul
- 2022Prompt-aligned Gradient for Prompt Tuning30 May
- 2022Unsupervised Prompt Learning for Vision-Language Models7 Apr
- 2022Conditional Prompt Learning for Vision-Language Models10 Mar
- 2021Tip-Adapter: Training-free CLIP-Adapter for Better Vision-Language Modeling6 Nov
- 2021CLIP-Adapter: Better Vision-Language Models with Feature Adapters9 Oct
- 2021Learning to Prompt for Vision-Language Models2 Sep
Other references · 50
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,069
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,416
- 2023Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detectioncited by 3,274
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
- 2021Align before Fuse: Vision and Language Representation Learning with Momentum Distillationcited by 1,612
- 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,507
- 2019Natural Adversarial Examplescited by 1,401
- 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,366
- 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,366
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,325
38 more
- 2020Energy-based Out-of-distribution Detectioncited by 1,296
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
- 2020In Search of Lost Domain Generalizationcited by 1,042
- 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,010
- 2017Deeper, Broader and Artier Domain Generalizationcited by 983
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 596
- 2018Predictive Uncertainty Estimation via Prior Networkscited by 555
- 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 486
- 2021SLIP: Self-supervision meets Language-Image Pre-trainingcited by 434
- 2021SWAD: Domain Generalization by Seeking Flat Minimacited by 431
- 2021Supervision Exists Everywhere: A Data Efficient Contrastive Language-Image Pre-training Paradigmcited by 405
- 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 404
- 2018Recent Advances in Open Set Recognition: A Surveycited by 309
- 2022VOS: Learning What You Don't Know by Virtual Outlier Synthesiscited by 300
- 2019Causality matters in medical imagingcited by 193
- 2022Finetune like you pretrain: Improved finetuning of zero-shot vision modelscited by 149
- 2021OpenGAN: Open-Set Recognition via Open Data Generationcited by 135
- 2022CyCLIP: Cyclic Contrastive Language-Image Pretrainingcited by 127
- 2020Hybrid Models for Open Set Recognitioncited by 109
- 2022POEM: Out-of-Distribution Detection with Posterior Samplingcited by 108
- 2020Conditional Gaussian Distribution Learning for Open Set Recognitioncited by 104
- 2018Generative Probabilistic Novelty Detection with Adversarial Autoencoderscited by 99
- 2023Vita-CLIP: Video and text adaptive CLIP via Multimodal Promptingcited by 90
- 2021Generalized Few-Shot Object Detection without Forgettingcited by 88
- 2022Training OOD Detectors in their Natural Habitatscited by 86
- 2021The Evolution of Out-of-Distribution Robustness Throughout Fine-Tuningcited by 74
- 2023AD-CLIP: Adapting Domains in Prompt Space Using CLIPcited by 62
- 2023Feed Two Birds with One Scone: Exploiting Wild Data for Both Out-of-Distribution Generalization and Detectioncited by 57
- 2022Boosting Out-of-distribution Detection with Typical Featurescited by 48
- 2021Improved Regularization and Robustness for Fine-tuning in Neural Networkscited by 45
- 2014Maximin effects in inhomogeneous large-scale datacited by 32
- 2019Revisiting Fine-tuning for Few-shot Learningcited by 29
- 2022Context-Aware Robust Fine-Tuningcited by 27
- 2023Domain Aligned CLIP for Few-shot Classificationcited by 16
- 2023Understanding Hessian Alignment for Domain Generalizationcited by 15
- 2021Few-Shot Learning for Road Object Detectioncited by 13
- 2021Unsupervised Energy-based Out-of-distribution Detection using Stiefel-Restricted Kernel Machinecited by 11
- 2023Towards Effective Semantic OOD Detection in Unseen Domains: A Domain Generalization Perspectivecited by 3
Built on by
Citing papers per year: 2025: 5; 2026: 1.
6 papers.
- 2025Adaptive Multi-prompt Contrastive Network for Few-shot Out-of-distribution Detectioncited by 8
- 2025ProtoConNet: Prototypical Augmentation and Alignment for Open-Set Few-Shot Image Classificationcited by 3
- 2025Delta Energy: Optimizing Energy Change During Vision-Language Alignment Improves both OOD Detection and OOD Generalizationcited by 1
- 2026One Model, Many Behaviors: Training-Induced Effects on Out-of-Distribution Detectioncited by 1
- 2025Exploring Graph-Transformer Out-of-Distribution Generalization Abilitiescited by 0
- 2025TSRE: Channel-Aware Typical Set Refinement for Out-of-Distribution Detectioncited by 0
- 2026One Model, Many Behaviors: Training-Induced Effects on Out-of-Distribution Detection15 Jan 2026
- 2025TSRE: Channel-Aware Typical Set Refinement for Out-of-Distribution Detection19 Nov 2025
- 2025Delta Energy: Optimizing Energy Change During Vision-Language Alignment Improves both OOD Detection and OOD Generalization13 Oct 2025
- 2025ProtoConNet: Prototypical Augmentation and Alignment for Open-Set Few-Shot Image Classification16 Jul 2025
- 2025Exploring Graph-Transformer Out-of-Distribution Generalization Abilities25 Jun 2025
- 2025Adaptive Multi-prompt Contrastive Network for Few-shot Out-of-distribution Detection21 Jun 2025
Similar, not cited
Close in wording, no citation either way
- 2023How Does Fine-Tuning Impact Out-of-Distribution Detection for Vision-Language Models?
- 2024Overcoming the Pitfalls of Vision-Language Model Finetuning for OOD Generalization
- 2024Conjugated Semantic Pool Improves OOD Detection with Pre-trained Vision-Language Models
- 2025Enhanced OoD Detection through Cross-Modal Alignment of Multi-Modal Representations
- 2023Towards Calibrated Robust Fine-Tuning of Vision-Language Models
- 2024Weak Distribution Detectors Lead to Stronger Generalizability of Vision-Language Prompt Tuning
- 2022Delving into Out-of-Distribution Detection with Vision-Language Representations
- 2025Knowledge Regularized Negative Feature Tuning of Vision-Language Models for Out-of-Distribution Detection