Contrastive Test-Time Adaptation

被引:64
|
作者
Chen, Dian [1 ,2 ]
Wang, Dequan [2 ]
Darrell, Trevor [2 ]
Ibrahimi, Sayna [2 ,3 ]
机构
[1] Toyota Res Inst, Tokyo, Japan
[2] Univ Calif Berkeley, Berkeley, CA USA
[3] Google, Mountain View, CA 94043 USA
关键词
D O I
10.1109/CVPR52688.2022.00039
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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-theart 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.
引用
收藏
页码:295 / 305
页数:11
相关论文
共 50 条
  • [1] Train/Test-Time Adaptation with Retrieval
    Zancato, Luca
    Achille, Alessandro
    Liu, Tian Yu
    Trager, Matthew
    Perera, Pramuditha
    Soatto, Stefano
    [J]. 2023 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2023, : 15911 - 15921
  • [2] Continual Test-Time Domain Adaptation
    Wang, Qin
    Fink, Olga
    Van Gool, Luc
    Dai, Dengxin
    [J]. 2022 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2022, : 7191 - 7201
  • [3] Robust Test-Time Adaptation in Dynamic Scenarios
    Yuan, Longhui
    Xie, Binhui
    Li, Shuang
    [J]. 2023 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2023, : 15922 - 15932
  • [4] Fully Test-Time Adaptation for Image Segmentation
    Hu, Minhao
    Song, Tao
    Gu, Yujun
    Luo, Xiangde
    Chen, Jieneng
    Chen, Yinan
    Zhang, Ya
    Zhang, Shaoting
    [J]. MEDICAL IMAGE COMPUTING AND COMPUTER ASSISTED INTERVENTION - MICCAI 2021, PT III, 2021, 12903 : 251 - 260
  • [5] Test-Time Adaptation for Deformable Image Registration
    Sang, Y.
    McNitt-Gray, M.
    Yang, Y.
    Cao, M.
    Low, D.
    Ruan, D.
    [J]. MEDICAL PHYSICS, 2022, 49 (06) : E458 - E459
  • [6] A Probabilistic Framework for Lifelong Test-Time Adaptation
    Brahma, Dhanajit
    Rai, Piyush
    [J]. 2023 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION, CVPR, 2023, : 3582 - 3591
  • [7] DomainAdaptor: A Novel Approach to Test-time Adaptation
    Zhang, Jian
    Qi, Lei
    Shi, Yinghuan
    Gao, Yang
    [J]. 2023 IEEE/CVF INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV 2023), 2023, : 18925 - 18935
  • [8] Video Test-Time Adaptation for Action Recognition
    Lin, Wei
    Mirza, Muhammad Jehanzeb
    Kozinski, Mateusz
    Possegger, Horst
    Kuchne, Hilde
    Bischof, Horst
    [J]. 2023 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2023, : 22952 - 22961
  • [9] Test-Time Adaptation for Egocentric Action Recognition
    Plananamente, Mirco
    Plizzari, Chiara
    Caputo, Barbara
    [J]. IMAGE ANALYSIS AND PROCESSING, ICIAP 2022, PT III, 2022, 13233 : 206 - 218
  • [10] Improved Test-Time Adaptation for Domain Generalization
    Chen, Liang
    Zhang, Yong
    Song, Yibing
    Shan, Ying
    Liu, Lingqiao
    [J]. 2023 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2023, : 24172 - 24182