Improved Test-Time Adaptation for Domain Generalization

Liang Chen, Yong Zhang, Yibing Song, Ying Shan, Lingqiao Liu
2/14/2026

No official code found. Best implementation: liangchen527/ITTA (34 stars, last commit 2025-01-18).

Abstract

The main challenge in domain generalization (DG) is to handle the distribution shift problem that lies between the training and test data. Recent studies suggest that test-time training (TTT), which adapts the learned model with test data, might be a promising solution to the problem. Generally, a TTT strategy hinges its performance on two main factors: selecting an appropriate auxiliary TTT task for updating and identifying reliable parameters to update during the test phase. Both previous arts and our experiments indicate that TTT may not improve but be detrimental to the learned model if those two factors are not properly considered. This work addresses those two factors by proposing an Improved Test-Time Adaptation (ITTA) method. First, instead of heuristically defining an auxiliary objective, we propose a learnable consistency loss for the TTT task, which contains learnable parameters that can be adjusted toward better alignment between our TTT task and the main prediction task. Second, we introduce additional adaptive parameters for the trained model, and we suggest only updating the adaptive parameters during the test phase. Through extensive experiments, we show that the proposed two strategies are beneficial for the learned model (see Figure 1), and ITTA could achieve superior performance to the current state-of-the-art methods on several DG benchmarks. Code is available at https://github.com/liangchen527/ITTA.

View on arXivView PDF

Code Implementations(1)

liangchen527/ITTACommunity100%

Official code for the CVPR23 paper: "Improved Test-Time Adaptation for Domain Generalization"

342PythonMar 14, 20231 years ago
domain-generalizationtest-time-adaptation

Similar Papers

Cite this paper

@article{chen2026improved,
  title  = {Improved Test-Time Adaptation for Domain Generalization},
  author = {Liang Chen and Yong Zhang and Yibing Song and Ying Shan and Lingqiao Liu},
  year   = {2026},
  eprint = {2304.04494},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2304.04494},
  journal = {CVPR 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/2304.04494.svg)](https://codeofpaper.com/paper/2304.04494)

Discussion