Step-wise Distribution Alignment Guided Style Prompt Tuning for Source-free Cross-domain Few-shot Learning

Huali Xu, Li Liu, Tianpeng Liu, Shuaifeng Zhi, Shuzhou Sun +1 more
11/15/2024
cs.CV

Official code: xuhuali-mxj/StepSPT (15 stars, last commit 2024-11-21).

Abstract

Existing cross-domain few-shot learning (CDFSL) methods, which develop source-domain training strategies to enhance model transferability, face challenges with large-scale pre-trained models (LMs) due to inaccessible source data and training strategies. Moreover, fine-tuning LMs for CDFSL demands substantial computational resources, limiting practicality. This paper addresses the source-free CDFSL (SF-CDFSL) problem, tackling few-shot learning (FSL) in the target domain using only pre-trained models and a few target samples without source data or strategies. To overcome the challenge of inaccessible source data, this paper introduces Step-wise Distribution Alignment Guided Style Prompt Tuning (StepSPT), which implicitly narrows domain gaps through prediction distribution optimization. StepSPT proposes a style prompt to align target samples with the desired distribution and adopts a dual-phase optimization process. In the external process, a step-wise distribution alignment strategy factorizes prediction distribution optimization into a multi-step alignment problem to tune the style prompt. In the internal process, the classifier is updated using standard cross-entropy loss. Evaluations on five datasets demonstrate that StepSPT outperforms existing prompt tuning-based methods and SOTAs. Ablation studies further verify its effectiveness. Code will be made publicly available at https://github.com/xuhuali-mxj/StepSPT.

View on arXivView PDF

Code Implementations(1)

The code of paper "Step-wise Distribution Alignment Guided Style Prompt Tuning for Source-free Cross-domain Few-shot Learning"

150PythonNov 14, 20241 years ago

Similar Papers

Cite this paper

@article{xu2024stepwise,
  title  = {Step-wise Distribution Alignment Guided Style Prompt Tuning for Source-free Cross-domain Few-shot Learning},
  author = {Huali Xu and Li Liu and Tianpeng Liu and Shuaifeng Zhi and Shuzhou Sun and Ming-Ming Cheng},
  year   = {2024},
  eprint = {2411.10070},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.10070v2}
}

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/2411.10070.svg)](https://codeofpaper.com/paper/2411.10070)

Discussion