Towards Stable Test-Time Adaptation in Dynamic Wild World

02/24/2023
by   Shuaicheng Niu, et al.
0

Test-time adaptation (TTA) has shown to be effective at tackling distribution shifts between training and testing data by adapting a given model on test samples. However, the online model updating of TTA may be unstable and this is often a key obstacle preventing existing TTA methods from being deployed in the real world. Specifically, TTA may fail to improve or even harm the model performance when test data have: 1) mixed distribution shifts, 2) small batch sizes, and 3) online imbalanced label distribution shifts, which are quite common in practice. In this paper, we investigate the unstable reasons and find that the batch norm layer is a crucial factor hindering TTA stability. Conversely, TTA can perform more stably with batch-agnostic norm layers, , group or layer norm. However, we observe that TTA with group and layer norms does not always succeed and still suffers many failure cases. By digging into the failure cases, we find that certain noisy test samples with large gradients may disturb the model adaption and result in collapsed trivial solutions, , assigning the same class label for all samples. To address the above collapse issue, we propose a sharpness-aware and reliable entropy minimization method, called SAR, for further stabilizing TTA from two aspects: 1) remove partial noisy samples with large gradients, 2) encourage model weights to go to a flat minimum so that the model is robust to the remaining noisy samples. Promising results demonstrate that SAR performs more stably over prior methods and is computationally efficient under the above wild test scenarios.

READ FULL TEXT
research
04/06/2022

Efficient Test-Time Model Adaptation without Forgetting

Test-time adaptation (TTA) seeks to tackle potential distribution shifts...
research
09/07/2023

REALM: Robust Entropy Adaptive Loss Minimization for Improved Single-Sample Test-Time Adaptation

Fully-test-time adaptation (F-TTA) can mitigate performance loss due to ...
research
03/02/2023

Learning to Adapt to Online Streams with Distribution Shifts

Test-time adaptation (TTA) is a technique used to reduce distribution ga...
research
08/17/2023

Label Shift Adapter for Test-Time Adaptation under Covariate and Label Shifts

Test-time adaptation (TTA) aims to adapt a pre-trained model to the targ...
research
08/10/2022

Robust Continual Test-time Adaptation: Instance-aware BN and Prediction-balanced Memory

Test-time adaptation (TTA) is an emerging paradigm that addresses distri...
research
06/01/2023

Universal Test-time Adaptation through Weight Ensembling, Diversity Weighting, and Prior Correction

Since distribution shifts are likely to occur during test-time and can d...
research
11/23/2022

ActMAD: Activation Matching to Align Distributions for Test-Time-Training

Test-Time-Training (TTT) is an approach to cope with out-of-distribution...

Please sign up or login with your details

Forgot password? Click here to reset