arrow
Return

Context-Aware Robust Fine-Tuning

delete2023-12-03
delete3
PRE
AI
X
Xiaofeng Mao *
陈钰枫 (Yufeng Chen)
X
Xiaojun Jia
R
Rong Zhang
H
Hui Xue
L
Li Zhao
DOI:10.1007/s11263-023-01951-2delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Contrastive language-image pre-trained (CLIP) models have zero-shot ability of classifying an image belonging to [CLASS] by using similarity between the image and the prompt sentence a [CONTEXT] of [CLASS]. Based on exhaustive text cues in [CONTEXT], CLIP model is aware of different contexts, e.g. background, style, viewpoint, and exhibits unprecedented robustness against a wide range of distribution shifts. However, recent works find further fine-tuning of CLIPmodels improves accuracy but sacrifices the robustness on downstream tasks. We conduct an empirical investigation to show fine-tuning will corrupt the context-aware ability of pre-trained CLIP features. To solve this problem, we propose Context-Aware Robust Fine-tuning (CAR-FT). CAR-FT regularizes the model during fine-tuning to capture the context information. Specifically, we use zero-shot prompt weights to get the context distribution contained in the image. By minimizing the KullbackLeibler divergence (KLD) between context distributions induced by original/fine-tuned CLIP models, CAR-FT makes the context-aware ability of CLIP inherited into downstream tasks, and achieves both higher in-distribution (ID) and out-ofdistribution (OOD) accuracy. The experimental results show CAR-FT achieves superior robustness on five OOD test datasets of ImageNet, and meanwhile brings accuracy gains on nine downstream tasks. Additionally, CAR-FT surpasses previous domain generalization (DG) methods and gets 78.5% averaged accuracy on DomainBed benchmark, building the new stateof-the-art.
Keywords:
Pre-trained models
CLIP
Fine-tuning
Robustness

Journal

International Journal of Computer Vision cover
International Journal of Computer Vision
IF:
9.3
Papers:
3.9K
Citations:
2.8W

Organization

A
alibaba group
Scholars:
1.1K
Papers: 789
Citations: 0
I
institute of information engineering, cas
Scholars:
474
Papers: 466
Citations: 0
C
chinese academy of sciences
Scholars:
56.5W
Papers: 44.9W
Citations: 704
researcher View more organizations