Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Towards Calibrated Robust Fine-Tuning of Vision-Language Models

About

Improving out-of-distribution (OOD) generalization during in-distribution (ID) adaptation is a primary goal of robust fine-tuning of zero-shot models beyond naive fine-tuning. However, despite decent OOD generalization performance from recent robust fine-tuning methods, confidence calibration for reliable model output has not been fully addressed. This work proposes a robust fine-tuning method that improves both OOD accuracy and confidence calibration simultaneously in vision language models. Firstly, we show that both OOD classification and OOD calibration errors have a shared upper bound consisting of two terms of ID data: 1) ID calibration error and 2) the smallest singular value of the ID input covariance matrix. Based on this insight, we design a novel framework that conducts fine-tuning with a constrained multimodal contrastive loss enforcing a larger smallest singular value, which is further guided by the self-distillation of a moving-averaged model to achieve calibrated prediction as well. Starting from empirical evidence supporting our theoretical statements, we provide extensive experimental results on ImageNet distribution shift benchmarks that demonstrate the effectiveness of our theorem and its practical implementation.

Changdae Oh, Hyesu Lim, Mijoo Kim, Dongyoon Han, Sangdoo Yun, Jaegul Choo, Alexander Hauptmann, Zhi-Qi Cheng, Kyungwoo Song• 2023

Related benchmarks

TaskDatasetResultRank
Image ClassificationImageNet V2
Top-1 Acc79.28
749
Image ClassificationImageNet A
Top-1 Acc72.68
698
Image ClassificationImageNet-Sketch
Top-1 Accuracy52.68
473
Image ClassificationObjectNet
Accuracy68.05
251
Image ClassificationImageNet V2 (test)
Top-1 Accuracy74.3
232
Image ClassificationCIFAR-100
Accuracy66.7
204
Image ClassificationImageNet-A (test)--
177
Image ClassificationImageNet-R (test)
Accuracy76.2
170
Image ClassificationImageNet-Sketch (test)--
153
Image ClassificationImageNet Rendition
Top-1 Accuracy77.74
113
Showing 10 of 28 rows

Other info

Code

Follow for update