DPStyler: Dynamic PromptStyler for Source-Free Domain Generalization

Yunlong Tang, Yuxuan Wan, Lei Qi, Xin Geng
3/25/2024
cs.CV

No official code found. Best implementation: TYLfromSEU/DPStyler (17 stars, MIT, last commit 2024-07-26). 1 more below.

Abstract

Source-Free Domain Generalization (SFDG) aims to develop a model that works for unseen target domains without relying on any source domain. Research in SFDG primarily bulids upon the existing knowledge of large-scale vision-language models and utilizes the pre-trained model's joint vision-language space to simulate style transfer across domains, thus eliminating the dependency on source domain images. However, how to efficiently simulate rich and diverse styles using text prompts, and how to extract domain-invariant information useful for classification from features that contain both semantic and style information after the encoder, are directions that merit improvement. In this paper, we introduce Dynamic PromptStyler (DPStyler), comprising Style Generation and Style Removal modules to address these issues. The Style Generation module refreshes all styles at every training epoch, while the Style Removal module eliminates variations in the encoder's output features caused by input styles. Moreover, since the Style Generation module, responsible for generating style word vectors using random sampling or style mixing, makes the model sensitive to input text prompts, we introduce a model ensemble method to mitigate this sensitivity. Extensive experiments demonstrate that our framework outperforms state-of-the-art methods on benchmark datasets.

View on arXivView PDF

Code Implementations(2)

TYLfromSEU/DPStylerCommunity100%
MIT

DPStyler: Dynamic PromptStyler for Source-Free Domain Generalization

173Shell, PythonMay 17, 20242 years agoMIT
Qi5Lei/DPStylerCommunity67%
MIT

DPStyler: Dynamic PromptStyler for Source-Free Domain Generalization

30Shell, PythonDec 27, 20241 years agoMIT

Cite this paper

@article{tang2024dpstyler,
  title  = {DPStyler: Dynamic PromptStyler for Source-Free Domain Generalization},
  author = {Yunlong Tang and Yuxuan Wan and Lei Qi and Xin Geng},
  year   = {2024},
  eprint = {2403.16697},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.16697v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.16697.svg)](https://codeofpaper.com/paper/2403.16697)

Discussion