Contrastive Test-Time Adaptation 论文

20222022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)引用 227
Domain Adaptation and Few-Shot LearningMultimodal Machine Learning ApplicationsAdvanced Neural Network Applications

详细信息

发表期刊/会议
2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)
发表日期
2022-06-01
发表年份
2022

关键词

Domain Adaptation and Few-Shot LearningMultimodal Machine Learning ApplicationsAdvanced Neural Network Applications

摘要

Test-time adaptation is a special setting of unsupervised domain adaptation where a trained model on the source domain has to adapt to the target domain without accessing source data. We propose a novel way to leverage self-supervised contrastive learning to facilitate target feature learning, along with an online pseudo labeling scheme with refinement that significantly denoises pseudo labels. The contrastive learning task is applied jointly with pseudo labeling, contrasting positive and negative pairs constructed similarly as MoCo but with source-initialized encoder, and excluding same-class negative pairs indicated by pseudo labels. Meanwhile, we produce pseudo labels online and refine them via soft voting among their nearest neighbors in the target feature space, enabled by maintaining a memory queue. Our method, AdaContrast, achieves state-of-the-art performance on major benchmarks while having several desirable properties compared to existing works, including memory efficiency, insensitivity to hyper-parameters, and better model calibration. Code is released at https://github.com/DianCh/AdaContrast.