DomainAdaptor: A Novel Approach to Test-time Adaptation

Jian Zhang, Lei Qi, Yinghuan Shi, Yang Gao
2/14/2026

No official code found. Best implementation: koncle/DomainAdaptor (46 stars, last commit 2023-08-25).

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 co-efficient 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.

View on arXivView PDF

Code Implementations(1)

466Shell, PythonAug 10, 20233 years ago

Similar Papers

Cite this paper

@article{zhang2026domainadaptor,
  title  = {DomainAdaptor: A Novel Approach to Test-time Adaptation},
  author = {Jian Zhang and Lei Qi and Yinghuan Shi and Yang Gao},
  year   = {2026},
  eprint = {2308.10297},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2308.10297},
  journal = {ICCV 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.10297.svg)](https://codeofpaper.com/paper/2308.10297)

Discussion