English

Adapting to Distribution Shift by Visual Domain Prompt Generation

Computer Vision and Pattern Recognition 2024-05-07 v1 Machine Learning

Abstract

In this paper, we aim to adapt a model at test-time using a few unlabeled data to address distribution shifts. To tackle the challenges of extracting domain knowledge from a limited amount of data, it is crucial to utilize correlated information from pre-trained backbones and source domains. Previous studies fail to utilize recent foundation models with strong out-of-distribution generalization. Additionally, domain-centric designs are not flavored in their works. Furthermore, they employ the process of modelling source domains and the process of learning to adapt independently into disjoint training stages. In this work, we propose an approach on top of the pre-computed features of the foundation model. Specifically, we build a knowledge bank to learn the transferable knowledge from source domains. Conditioned on few-shot target data, we introduce a domain prompt generator to condense the knowledge bank into a domain-specific prompt. The domain prompt then directs the visual features towards a particular domain via a guidance module. Moreover, we propose a domain-aware contrastive loss and employ meta-learning to facilitate domain knowledge extraction. Extensive experiments are conducted to validate the domain knowledge extraction. The proposed method outperforms previous work on 5 large-scale benchmarks including WILDS and DomainNet.

Keywords

Cite

@article{arxiv.2405.02797,
  title  = {Adapting to Distribution Shift by Visual Domain Prompt Generation},
  author = {Zhixiang Chi and Li Gu and Tao Zhong and Huan Liu and Yuanhao Yu and Konstantinos N Plataniotis and Yang Wang},
  journal= {arXiv preprint arXiv:2405.02797},
  year   = {2024}
}

Comments

ICLR2024, code: https://github.com/Guliisgreat/VDPG

R2 v1 2026-06-28T16:16:55.011Z