Lune

ICLR2023Top-tier venue

Test-Time Adaptation via Self-Training with Nearest Neighbor Information

Minguk Jang, Sae-Young Chung, Hye Won Chung

Abstract

Test-time adaptation (TTA) aims to adapt a trained classifier using online unlabeled test data only, without any information related to the training procedure. Most existing TTA methods adapt the trained classifier using the classifier's prediction on the test data as pseudo-label. However, under test-time domain shift, accuracy of the pseudo labels cannot be guaranteed, and thus the TTA methods often encounter performance degradation at the adapted classifier. To overcome this limitation, we propose a novel test-time adaptation method, called Test-time Adaptation via Self-Training with nearest neighbor information (TAST), which is composed of the following procedures: (1) adds trainable adaptation modules on top of the trained feature extractor; (2) newly defines a pseudo-label distribution for the test data by using the nearest neighbor information; (3) trains these modules only a few times during test time to match the nearest neighbor-based pseudo label distribution and a prototype-based class distribution for the test data; and (4) predicts the label of test data using the average predicted class distribution from these modules. The pseudo-label generation is based on the basic intuition that a test data and its nearest neighbor in the embedding space are likely to share the same label under the domain shift. By utilizing multiple randomly initialized adaptation modules, TAST extracts useful information for the classification of the test data under the domain shift, using the nearest neighbor information. TAST showed better performance than the state-of-the-art TTA methods on two standard benchmark tasks, domain generalization, namely VLCS, PACS, OfficeHome, and TerraIncognita, and image corruption, particularly CIFAR-10/100C. Our code is available at https://github.com/mingukjang/TAST .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

39 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • PROGRAM: PROtotype GRAph Model based Pseudo-Label Learning for Test-Time Adaptation cites Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptation
  • PROGRAM: PROtotype GRAph Model based Pseudo-Label Learning for Test-Time Adaptation cites FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence
  • PROGRAM: PROtotype GRAph Model based Pseudo-Label Learning for Test-Time Adaptation cites Tent: Fully Test-Time Adaptation by Entropy Minimization
  • PROGRAM: PROtotype GRAph Model based Pseudo-Label Learning for Test-Time Adaptation cites In Search of Lost Domain Generalization
  • Historical Test-time Prompt Tuning for Vision Foundation Models cites Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptation
  • Historical Test-time Prompt Tuning for Vision Foundation Models cites Tent: Fully Test-Time Adaptation by Entropy Minimization
  • Optimization-Free Test-Time Adaptation for Cross-Person Activity Recognition cites Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptation
  • Optimization-Free Test-Time Adaptation for Cross-Person Activity Recognition cites Tent: Fully Test-Time Adaptation by Entropy Minimization
  • CODA: Generalizing to Open and Unseen Domains with Compaction and Disambiguation cites Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptation
  • CODA: Generalizing to Open and Unseen Domains with Compaction and Disambiguation cites Tent: Fully Test-Time Adaptation by Entropy Minimization
  • Tent: Fully Test-Time Adaptation by Entropy Minimization cites Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptation
  • Learning with Calibration: Exploring Test-Time Computing of Spatio-Temporal Forecasting cites Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptation
  • Learning with Calibration: Exploring Test-Time Computing of Spatio-Temporal Forecasting cites Tent: Fully Test-Time Adaptation by Entropy Minimization
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers39

  1. Historical Test-time Prompt Tuning for Vision Foundation ModelsJingyi Zhang, Jiaxing Huang, Xiaoqin Zhang, Ling Shao et al.NeurIPS 2024 · 29 citations
  2. CODA: Generalizing to Open and Unseen Domains with Compaction and DisambiguationChaoqi Chen, Luyao Tang, Yue Huang, Xiaoguang Han et al.NeurIPS 2023 · 17 citations
  3. PROGRAM: PROtotype GRAph Model based Pseudo-Label Learning for Test-Time AdaptationHaopeng Sun, Lumin Xu, Sheng Jin, Ping Luo et al.ICLR 2024 · 16 citations
  4. Optimization-Free Test-Time Adaptation for Cross-Person Activity RecognitionShuoyuan Wang, Jindong Wang, Huajun Xi, Bob Zhang et al.UbiComp 2024 · 16 citations
  5. Learning with Calibration: Exploring Test-Time Computing of Spatio-Temporal ForecastingWei Chen, Yuxuan LiangNeurIPS 2025 · 16 citations

Builds on22

  1. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  2. FixMatch: Simplifying Semi-Supervised Learning with Consistency and ConfidenceKihyuk Sohn, David Berthelot, Nicholas Carlini, Zizhao Zhang et al.NeurIPS 2020 · 5,129 citations
  3. Tent: Fully Test-Time Adaptation by Entropy MinimizationDequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno A. Olshausen et al.ICLR 2021 · 1,731 citations
  4. Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain AdaptationJian Liang, Dapeng Hu, Jiashi FengICML 2020 · 1,624 citations
  5. In Search of Lost Domain GeneralizationIshaan Gulrajani, David Lopez-PazICLR 2021 · 1,416 citations

Related papers

  1. Domain-Specific Block Selection and Paired-View Pseudo-Labeling for Online Test-Time AdaptationYeonguk Yu, Sungho Shin, Seunghyeok Back, Minhwan Ko et al.CVPR 2024 · 3 citations
  2. Test Time Adaptation via Conjugate Pseudo-labelsSachin Goyal, Mingjie Sun, Aditi Raghunathan, J. Zico KolterNeurIPS 2022 · 152 citations
  3. Test-Time Classifier Adjustment Module for Model-Agnostic Domain GeneralizationYusuke Iwasawa, Yutaka MatsuoNeurIPS 2021 · 456 citations
  4. Adaptive Test-Time Personalization for Federated LearningWenxuan Bao, Tianxin Wei, Haohan Wang, Jingrui HeNeurIPS 2023 · 41 citations
  5. AdaNPC: Exploring Non-Parametric Classifier for Test-Time AdaptationYifan Zhang, Xue Wang, Kexin Jin, Kun Yuan et al.ICML 2023 · 76 citations
Dusk over the sea between two cliffs drawn in fine vertical lines