DATTA: Domain Diversity Aware Test-Time Adaptation for Dynamic Domain Shift Data Streams

Chuyang Ye, Dongyan Wei, Zhendong Liu, Yuanyi Pang, Yixi Lin +3 more
8/15/2024
cs.LG

Official code: DYW77/DATTA (1 star, MIT, last commit 2025-12-20).

Abstract

Test-Time Adaptation (TTA) addresses domain shifts between training and testing. However, existing methods assume a homogeneous target domain (e.g., single domain) at any given time. They fail to handle the dynamic nature of real-world data, where single-domain and multiple-domain distributions change over time. We identify that performance drops in multiple-domain scenarios are caused by batch normalization errors and gradient conflicts, which hinder adaptation. To solve these challenges, we propose Domain Diversity Adaptive Test-Time Adaptation (DATTA), the first approach to handle TTA under dynamic domain shift data streams. It is guided by a novel domain-diversity score. DATTA has three key components: a domain-diversity discriminator to recognize single- and multiple-domain patterns, domain-diversity adaptive batch normalization to combine source and test-time statistics, and domain-diversity adaptive fine-tuning to resolve gradient conflicts. Extensive experiments show that DATTA significantly outperforms state-of-the-art methods by up to 13%. Code is available at https://github.com/DYW77/DATTA.

View on arXivView PDF

Code Implementations(1)

DYW77/DATTAOfficial100%
MIT
10PythonFeb 20, 202510 months agoMIT

Similar Papers

Cite this paper

@article{ye2024datta,
  title  = {DATTA: Domain Diversity Aware Test-Time Adaptation for Dynamic Domain Shift Data Streams},
  author = {Chuyang Ye and Dongyan Wei and Zhendong Liu and Yuanyi Pang and Yixi Lin and Qinting Jiang and Jingyan Jiang and Dongbiao He},
  year   = {2024},
  eprint = {2408.08056},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.08056v2}
}

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/2408.08056.svg)](https://codeofpaper.com/paper/2408.08056)

Discussion