Discover Your Neighbors: Advanced Stable Test-Time Adaptation in Dynamic World
Qinting Jiang, Chuyang Ye, Dongyan Wei, Yuan Xue, Jingyan Jiang, Zhi Wang
TL;DR
The paper tackles performance degradation under distribution shifts by proposing Discover Your Neighbors (DYN), a backward-free test-time adaptation method designed for dynamic data streams. DYN combines Layer-wise Instance Statistics Clustering (LISC) with Cluster-Aware Batch Normalization (CABN) to iteratively group samples with similar feature distributions and fuse cluster-specific statistics with source BN statistics, improving robustness to mixed-domain batches. The work analyzes the roles of SBN and TBN in capturing class-related and class-irrelevant features, revealing that a careful, cluster-aware integration of BN statistics yields more stable representations in dynamic settings. Experiments on CIFAR10-C, CIFAR100-C, and ImageNet-C show that DYN outperforms state-of-the-art TTA and TBN-based methods across multiple scenarios, model architectures, domain scales, and batch sizes, highlighting its practical impact for real-time multimedia applications.
Abstract
Despite progress, deep neural networks still suffer performance declines under distribution shifts between training and test domains, leading to a substantial decrease in Quality of Experience (QoE) for multimedia applications. Existing test-time adaptation (TTA) methods are challenged by dynamic, multiple test distributions within batches. This work provides a new perspective on analyzing batch normalization techniques through class-related and class-irrelevant features, our observations reveal combining source and test batch normalization statistics robustly characterizes target distributions. However, test statistics must have high similarity. We thus propose Discover Your Neighbours (DYN), the first backward-free approach specialized for dynamic TTA. The core innovation is identifying similar samples via instance normalization statistics and clustering into groups which provides consistent class-irrelevant representations. Specifically, Our DYN consists of layer-wise instance statistics clustering (LISC) and cluster-aware batch normalization (CABN). In LISC, we perform layer-wise clustering of approximate feature samples at each BN layer by calculating the cosine similarity of instance normalization statistics across the batch. CABN then aggregates SBN and TCN statistics to collaboratively characterize the target distribution, enabling more robust representations. Experimental results validate DYN's robustness and effectiveness, demonstrating maintained performance under dynamic data stream patterns.
