Skip to main content
QUICK REVIEW

[Paper Review] DomainAdaptor: A Novel Approach to Test-time Adaptation

Jian Zhang, Lei Qi|arXiv (Cornell University)|Aug 20, 2023
Domain Adaptation and Few-Shot LearningComputer Science5 citations
TL;DR

DomainAdaptor proposes a novel test-time adaptation method for domain generalization that dynamically fuses source and target batch statistics via AdaMixBN and optimizes adaptation with a Generalized Entropy Minimization (GEM) loss. It achieves state-of-the-art performance across four benchmarks, especially excelling in few-shot unseen domain scenarios, by effectively leveraging unlabeled test data without retraining.

ABSTRACT

To deal with the domain shift between training and test samples, current methods have primarily focused on learning generalizable features during training and ignore the specificity of unseen samples that are also critical during the test. In this paper, we investigate a more challenging task that aims to adapt a trained CNN model to unseen domains during the test. To maximumly mine the information in the test data, we propose a unified method called DomainAdaptor for the test-time adaptation, which consists of an AdaMixBN module and a Generalized Entropy Minimization (GEM) loss. Specifically, AdaMixBN addresses the domain shift by adaptively fusing training and test statistics in the normalization layer via a dynamic mixture coefficient and a statistic transformation operation. To further enhance the adaptation ability of AdaMixBN, we design a GEM loss that extends the Entropy Minimization loss to better exploit the information in the test data. Extensive experiments show that DomainAdaptor consistently outperforms the state-of-the-art methods on four benchmarks. Furthermore, our method brings more remarkable improvement against existing methods on the few-data unseen domain. The code is available at https://github.com/koncle/DomainAdaptor.

Motivation & Objective

  • To address domain shift in test-time adaptation by leveraging unlabeled test data without retraining.
  • To overcome inaccurate batch normalization statistics estimation when domain gaps are large.
  • To improve adaptation by exploiting confident predictions in unlabeled test samples, which are often overlooked by standard entropy minimization.
  • To design a method that works with any pre-trained CNN model, enabling fully test-time adaptation without access to source data.
  • To mitigate performance degradation in adaptive normalization layers due to weight mismatch after finetuning.

Proposed method

  • AdaMixBN dynamically blends statistics from pre-trained (source) and current test batches using a learnable mixture coefficient, improving normalization accuracy under domain shift.
  • A statistic transformation operation converts source statistics into affine parameters before finetuning, preventing performance degradation from weight mismatch.
  • The Generalized Entropy Minimization (GEM) loss softens prediction probabilities using temperature scaling, generating larger gradients for confident samples to enhance learning.
  • The GEM loss extends traditional entropy minimization by emphasizing high-confidence predictions, which are typically underutilized in standard EM.
  • The method operates solely on the test-time batch, requiring no access to source data or model retraining, enabling plug-and-play deployment.
  • The approach is applied end-to-end to any pre-trained CNN, with only the BatchNorm layers finetuned during inference.

Experimental results

Research questions

  • RQ1Can adaptive fusion of source and test batch statistics improve normalization accuracy in the presence of large domain shifts?
  • RQ2Does a generalized entropy minimization loss that emphasizes confident predictions outperform standard entropy minimization in test-time adaptation?
  • RQ3Can a statistics transformation operation prevent performance degradation in adaptive normalization layers during finetuning?
  • RQ4How effective is DomainAdaptor compared to existing self-supervised losses like rotation or jigsaw in test-time adaptation?
  • RQ5Can DomainAdaptor achieve consistent gains across diverse domain generalization benchmarks, especially under low-data regimes?

Key findings

  • DomainAdaptor achieves a 96.41% top-1 accuracy on the PACS dataset with data augmentation, significantly outperforming the previous SOTA method (85.89%).
  • On the VLCS benchmark, DomainAdaptor improves accuracy from 75.77% (baseline) to 78.50%, demonstrating strong generalization across domains.
  • In the few-data unseen domain setting, DomainAdaptor shows the most substantial improvement over existing methods, confirming its effectiveness in low-data regimes.
  • The ablation study confirms that using the learned mixture coefficient α (rather than 1−α) yields significantly better performance, validating the design of the similarity-based mixing strategy.
  • Compared to self-supervised losses like rotation and jigsaw, DomainAdaptor achieves a 2.0% higher average accuracy (74.60% vs. 71.75%), proving its superior optimization strategy.
  • The method consistently improves performance when applied to multiple pre-trained SOTA models (e.g., MVRML), increasing accuracy from 85.89% to 88.12% on PACS without retraining.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.