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

StyLIP: Multi-Scale Style-Conditioned Prompt Learning for CLIP-based Domain Generalization

About

Large-scale foundation models, such as CLIP, have demonstrated impressive zero-shot generalization performance on downstream tasks, leveraging well-designed language prompts. However, these prompt learning techniques often struggle with domain shift, limiting their generalization capabilities. In our study, we tackle this issue by proposing StyLIP, a novel approach for Domain Generalization (DG) that enhances CLIP's classification performance across domains. Our method focuses on a domain-agnostic prompt learning strategy, aiming to disentangle the visual style and content information embedded in CLIP's pre-trained vision encoder, enabling effortless adaptation to novel domains during inference. To achieve this, we introduce a set of style projectors that directly learn the domain-specific prompt tokens from the extracted multi-scale style features. These generated prompt embeddings are subsequently combined with the multi-scale visual content features learned by a content projector. The projectors are trained in a contrastive manner, utilizing CLIP's fixed vision and text backbones. Through extensive experiments conducted in five different DG settings on multiple benchmark datasets, we consistently demonstrate that StyLIP outperforms the current state-of-the-art (SOTA) methods.

Shirsha Bose, Ankit Jha, Enrico Fini, Mainak Singha, Elisa Ricci, Biplab Banerjee• 2023

Related benchmarks

TaskDatasetResultRank
Domain GeneralizationVLCS
Accuracy87.21
347
Domain GeneralizationPACS
Accuracy98.17
323
Image ClassificationPACS
Overall Average Accuracy92.5
299
Domain GeneralizationDigits-DG
Accuracy96.73
79
Image ClassificationVLCS
Accuracy (Caltech101)99.46
66
Domain GeneralizationImageNet variants (V2, S, A, R) (test)
ImageNet-V2 Accuracy56.6
57
Domain GeneralizationOffice-Home
Overall Average Accuracy85.94
34
Domain GeneralizationOfficeHome
Accuracy (Art Domain)84.93
29
Domain GeneralizationDomainNet Mini
Accuracy80.43
27
Open Set Domain GeneralizationOfficeHome H=1
Accuracy52.34
23
Showing 10 of 14 rows

Other info

Follow for update