Adapting to Distribution Shift by Visual Domain Prompt Generation

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Chi, Zhixiang, Gu, Li, Zhong, Tao, Liu, Huan, Yu, Yuanhao, Plataniotis, Konstantinos N, Wang, Yang
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916235494555648
author Chi, Zhixiang
Gu, Li
Zhong, Tao
Liu, Huan
Yu, Yuanhao
Plataniotis, Konstantinos N
Wang, Yang
author_facet Chi, Zhixiang
Gu, Li
Zhong, Tao
Liu, Huan
Yu, Yuanhao
Plataniotis, Konstantinos N
Wang, Yang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2405_02797
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Adapting to Distribution Shift by Visual Domain Prompt Generation
Chi, Zhixiang
Gu, Li
Zhong, Tao
Liu, Huan
Yu, Yuanhao
Plataniotis, Konstantinos N
Wang, Yang
Computer Vision and Pattern Recognition
Machine Learning
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.
title Adapting to Distribution Shift by Visual Domain Prompt Generation
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2405.02797