arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.13591cs.CV
收藏

连续测试时领域自适应

Continual Test-Time Domain Adaptation

ETH Zurich(苏黎世联邦理工学院);MPI for Informatics(马克斯·普朗克信息学研究所);EPFL(洛桑联邦理工学院)

Qin Wang, Olga Fink, Luc Van Gool, Dengxin Dai

摘要:

测试时领域自适应的目的是在不使用任何源数据的情况下使源预训练模型适应目标域。现有的工作主要考虑的情况下,目标域是静态的。然而,现实世界的机器感知系统运行在非平稳和不断变化的环境中,其中目标域分布可以随时间而变化。现有的方法,这主要是基于自训练和熵正则化,可以从这些非平稳环境的影响。由于目标域中随时间的分布偏移,伪标记变得不可靠。噪声伪标签可以进一步导致错误累积和灾难性遗忘。为了解决这些问题,我们提出了一个连续的测试时自适应方法(CoTTA),它包括两个部分。首先,我们建议通过使用加权平均和增强平均预测来减少误差累积,这些预测通常更准确。另一方面,为了避免灾难性遗忘,我们建议在每次迭代期间将一小部分神经元随机恢复到源预训练的权重,以帮助长期保存源知识。所提出的方法能够长期适应网络中的所有参数。CoTTA易于实现,并且可以很容易地集成到现成的预训练模型中。我们证明了我们的方法在四个分类任务和连续测试时自适应的分割任务,我们优于现有的方法的有效性。我们的代码可在\url{https://qin.ee/cotta}上获得。

英文摘要:

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}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑