Prompt Vision Transformer for Domain Generalization

08/18/2022
by   Zangwei Zheng, et al.
0

Though vision transformers (ViTs) have exhibited impressive ability for representation learning, we empirically find that they cannot generalize well to unseen domains with previous domain generalization algorithms. In this paper, we propose a novel approach DoPrompt based on prompt learning to embed the knowledge of source domains in domain prompts for target domain prediction. Specifically, domain prompts are prepended before ViT input tokens from the corresponding source domain. Each domain prompt learns domain-specific knowledge efficiently since it is optimized only for one domain. Meanwhile, we train a prompt adapter to produce a suitable prompt for each input image based on the learned source domain prompts. At test time, the adapted prompt generated by the prompt adapter can exploit the similarity between the feature of the out-of-domain image and source domains to properly integrate the source domain knowledge. Extensive experiments are conducted on four benchmark datasets. Our approach achieves 1.4 which is 3.5 times the improvement of the state-of-the-art algorithm with a ViT backbone.

READ FULL TEXT
research
10/06/2021

Dynamically Decoding Source Domain Knowledge For Unseen Domain Generalization

Domain generalization is an important problem which has gain much attent...
research
11/25/2021

Exploiting Both Domain-specific and Invariant Knowledge via a Win-win Transformer for Unsupervised Domain Adaptation

Unsupervised Domain Adaptation (UDA) aims to transfer knowledge from a l...
research
08/19/2023

TDG: Text-guided Domain Generalization

Domain generalization (DG) attempts to generalize a model trained on sin...
research
07/16/2023

Domain Generalisation with Bidirectional Encoder Representations from Vision Transformers

Domain generalisation involves pooling knowledge from source domain(s) i...
research
05/01/1997

Connectionist Theory Refinement: Genetically Searching the Space of Network Topologies

An algorithm that learns from a set of examples should ideally be able t...
research
10/02/2021

Domain-Specific Bias Filtering for Single Labeled Domain Generalization

Domain generalization (DG) utilizes multiple labeled source datasets to ...
research
01/13/2023

CLIP the Gap: A Single Domain Generalization Approach for Object Detection

Single Domain Generalization (SDG) tackles the problem of training a mod...

Please sign up or login with your details

Forgot password? Click here to reset