Our new X account is live! Follow @wizwand_team for updates
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
238
Domain GeneralizationPACS--
221
Domain GeneralizationImageNet variants (V2, S, A, R) (test)
ImageNet-V2 Accuracy56.6
42
Domain GeneralizationDigits-DG
Accuracy81.62
38
Domain GeneralizationOffice-Home
Overall Average Accuracy85.94
34
Domain GeneralizationDomainNet Mini
Accuracy80.43
27
Open Set Domain GeneralizationOfficeHome H=1
Accuracy52.34
23
Low-Shot Open-Set Domain GeneralizationPACS 1-shot
Acc74.89
11
Low-Shot Open-Set Domain GeneralizationPACS 5-shot
Accuracy80.1
11
Low-Shot Open-Set Domain GeneralizationVLCS 5-shot
Accuracy45.78
11
Showing 10 of 11 rows

Other info

Follow for update