DATTA: Domain Diversity Aware Test-Time Adaptation for Dynamic Domain Shift Data Streams
Chuyang Ye, Dongyan Wei, Zhendong Liu, Yuanyi Pang, Yixi Lin, Qinting Jiang, Jingyan Jiang, Dongbiao He
TL;DR
DATTA tackles the challenge of dynamic domain shifts in test-time adaptation by introducing a Domain-Diversity Score to detect single- vs multi-domain batches and three modules—Domain-Diversity Discriminator (DD), Domain-Diversity Adaptive Batch Normalization (DABN), and Domain-Diversity Adaptive Fine-Tuning (DAFT). DD assesses domain diversity using a Domain-Diversity Angle and a KDE-driven threshold to guide adaptation; DABN blends source and test BN statistics according to the domain-diversity score; DAFT gates updates to avoid gradient conflicts. The approach yields substantial performance gains over state-of-the-art TTA methods across CIFAR-10-C, CIFAR-100-C, and ImageNet-C under Single-, Multiple-, and Dynamic-Domain streams, with Avg-All improvements up to 13% and favorable efficiency. The work contributes a principled, real-time mechanism to quantify and respond to domain diversity, enabling robust test-time adaptation in realistic, heterogeneous data streams.
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.
