Few-Shot Adaptation of Pre-Trained Networks for Domain Shift

Wenyu Zhang, Li Shen, Wanyue Zhang, Chuan-Sheng Foo
5/30/2022
cs.CVcs.LG

Official code: zwenyu/lccs (7 stars, Python, last commit 2023-03-27).

Abstract

Deep networks are prone to performance degradation when there is a domain shift between the source (training) data and target (test) data. Recent test-time adaptation methods update batch normalization layers of pre-trained source models deployed in new target environments with streaming data to mitigate such performance degradation.

Show full abstract

Although such methods can adapt on-the-fly without first collecting a large target domain dataset, their performance is dependent on streaming conditions such as mini-batch size and class-distribution, which can be unpredictable in practice. In this work, we propose a framework for few-shot domain adaptation to address the practical challenges of data-efficient adaptation. Specifically, we propose a constrained optimization of feature normalization statistics in pre-trained source models supervised by a small support set from the target domain. Our method is easy to implement and improves source model performance with as few as one sample per class for classification tasks. Extensive experiments on 5 cross-domain classification and 4 semantic segmentation datasets show that our method achieves more accurate and reliable performance than test-time adaptation, while not being constrained by streaming conditions.

View on arXivView PDF

Code Implementations(1)

zwenyu/lccsOfficial100%

Code for "Few-Shot Adaptation of Pre-Trained Networks for Domain Shift" (IJCAI 2022)

72Python, ShellSep 8, 20223 years ago
domain-adaptationfew-shot-domain-adaptationijcai2022source-free-domain-adaptation

Similar Papers

Cite this paper

@article{zhang2022fewshot,
  title  = {Few-Shot Adaptation of Pre-Trained Networks for Domain Shift},
  author = {Wenyu Zhang and Li Shen and Wanyue Zhang and Chuan-Sheng Foo},
  year   = {2022},
  eprint = {2205.15234},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.15234}
}

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

Discussion