mlsanityData to 7 Oct 2026

CRoFT: Robust Fine-Tuning with Concurrent Optimization for OOD Generalization and Open-Set OOD Detection

arXiv 2405.16417 ↗First posted 26 May 2024cs.CVcited by 6

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

  1. 2023Unsupervised Prototype Adapter for Vision-Language Models22 Aug
  2. 2023Improving Zero-Shot Generalization for CLIP with Synthesized Prompts14 Jul
  3. 2022Prompt-aligned Gradient for Prompt Tuning30 May
  4. 2022Unsupervised Prompt Learning for Vision-Language Models7 Apr
  5. 2022Conditional Prompt Learning for Vision-Language Models10 Mar
  6. 2021Tip-Adapter: Training-free CLIP-Adapter for Better Vision-Language Modeling6 Nov
  7. 2021CLIP-Adapter: Better Vision-Language Models with Feature Adapters9 Oct
  8. 2021Learning to Prompt for Vision-Language Models2 Sep

Other references · 50

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,069
  3. 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,416
  4. 2023Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detectioncited by 3,274
  5. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
  6. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
  7. 2021Align before Fuse: Vision and Language Representation Learning with Momentum Distillationcited by 1,612
  8. 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,507
  9. 2019Natural Adversarial Examplescited by 1,401
  10. 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,366
  11. 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,366
  12. 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,325
38 more
  1. 2020Energy-based Out-of-distribution Detectioncited by 1,296
  2. 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
  3. 2020In Search of Lost Domain Generalizationcited by 1,042
  4. 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,010
  5. 2017Deeper, Broader and Artier Domain Generalizationcited by 983
  6. 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 596
  7. 2018Predictive Uncertainty Estimation via Prior Networkscited by 555
  8. 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 486
  9. 2021SLIP: Self-supervision meets Language-Image Pre-trainingcited by 434
  10. 2021SWAD: Domain Generalization by Seeking Flat Minimacited by 431
  11. 2021Supervision Exists Everywhere: A Data Efficient Contrastive Language-Image Pre-training Paradigmcited by 405
  12. 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 404
  13. 2018Recent Advances in Open Set Recognition: A Surveycited by 309
  14. 2022VOS: Learning What You Don't Know by Virtual Outlier Synthesiscited by 300
  15. 2019Causality matters in medical imagingcited by 193
  16. 2022Finetune like you pretrain: Improved finetuning of zero-shot vision modelscited by 149
  17. 2021OpenGAN: Open-Set Recognition via Open Data Generationcited by 135
  18. 2022CyCLIP: Cyclic Contrastive Language-Image Pretrainingcited by 127
  19. 2020Hybrid Models for Open Set Recognitioncited by 109
  20. 2022POEM: Out-of-Distribution Detection with Posterior Samplingcited by 108
  21. 2020Conditional Gaussian Distribution Learning for Open Set Recognitioncited by 104
  22. 2018Generative Probabilistic Novelty Detection with Adversarial Autoencoderscited by 99
  23. 2023Vita-CLIP: Video and text adaptive CLIP via Multimodal Promptingcited by 90
  24. 2021Generalized Few-Shot Object Detection without Forgettingcited by 88
  25. 2022Training OOD Detectors in their Natural Habitatscited by 86
  26. 2021The Evolution of Out-of-Distribution Robustness Throughout Fine-Tuningcited by 74
  27. 2023AD-CLIP: Adapting Domains in Prompt Space Using CLIPcited by 62
  28. 2023Feed Two Birds with One Scone: Exploiting Wild Data for Both Out-of-Distribution Generalization and Detectioncited by 57
  29. 2022Boosting Out-of-distribution Detection with Typical Featurescited by 48
  30. 2021Improved Regularization and Robustness for Fine-tuning in Neural Networkscited by 45
  31. 2014Maximin effects in inhomogeneous large-scale datacited by 32
  32. 2019Revisiting Fine-tuning for Few-shot Learningcited by 29
  33. 2022Context-Aware Robust Fine-Tuningcited by 27
  34. 2023Domain Aligned CLIP for Few-shot Classificationcited by 16
  35. 2023Understanding Hessian Alignment for Domain Generalizationcited by 15
  36. 2021Few-Shot Learning for Road Object Detectioncited by 13
  37. 2021Unsupervised Energy-based Out-of-distribution Detection using Stiefel-Restricted Kernel Machinecited by 11
  38. 2023Towards Effective Semantic OOD Detection in Unseen Domains: A Domain Generalization Perspectivecited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 5; 2026: 1.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023How Does Fine-Tuning Impact Out-of-Distribution Detection for Vision-Language Models?
  2. 2024Overcoming the Pitfalls of Vision-Language Model Finetuning for OOD Generalization
  3. 2024Conjugated Semantic Pool Improves OOD Detection with Pre-trained Vision-Language Models
  4. 2025Enhanced OoD Detection through Cross-Modal Alignment of Multi-Modal Representations
  5. 2023Towards Calibrated Robust Fine-Tuning of Vision-Language Models
  6. 2024Weak Distribution Detectors Lead to Stronger Generalizability of Vision-Language Prompt Tuning
  7. 2022Delving into Out-of-Distribution Detection with Vision-Language Representations
  8. 2025Knowledge Regularized Negative Feature Tuning of Vision-Language Models for Out-of-Distribution Detection