Continual Test-Time Domain Adaptation

Qin Wang, Olga Fink, Luc Van Gool, Dengxin Dai
3/25/2022
cs.CV

Official code: qinenergy/cotta (326 stars, last commit 2024-06-17).

Abstract

Test-time domain adaptation aims to adapt a source pre-trained model to a target domain without using any source data. Existing works mainly consider the case where the target domain is static. However, real-world machine perception systems are running in non-stationary and continually changing environments where the target domain distribution can change over time. Existing methods, which are mostly based on self-training and entropy regularization, can suffer from these non-stationary environments. Due to the distribution shift over time in the target domain, pseudo-labels become unreliable. The noisy pseudo-labels can further lead to error accumulation and catastrophic forgetting. To tackle these issues, we propose a continual test-time adaptation approach~(CoTTA) which comprises two parts. Firstly, we propose to reduce the error accumulation by using weight-averaged and augmentation-averaged predictions which are often more accurate. On the other hand, to avoid catastrophic forgetting, we propose to stochastically restore a small part of the neurons to the source pre-trained weights during each iteration to help preserve source knowledge in the long-term. The proposed method enables the long-term adaptation for all parameters in the network. CoTTA is easy to implement and can be readily incorporated in off-the-shelf pre-trained models. We demonstrate the effectiveness of our approach on four classification tasks and a segmentation task for continual test-time adaptation, on which we outperform existing methods. Our code is available at \url{https://qin.ee/cotta}.

View on arXivView PDF

Code Implementations(1)

qinenergy/cottaOfficial100%

[CVPR 2022] Official CoTTA Code for our paper Continual Test-Time Domain Adaptation

32633Jinja, ShellMar 12, 20222 years agoNOASSERTION

Similar Papers

Cite this paper

@article{wang2022continual,
  title  = {Continual Test-Time Domain Adaptation},
  author = {Qin Wang and Olga Fink and Luc Van Gool and Dengxin Dai},
  year   = {2022},
  eprint = {2203.13591},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.13591}
}

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

Discussion