Abstract
Test-Time Adaptation (TTA) allows deep learning models to adapt to domain shifts in online data streams. However, existing TTA methods often fail when encountering noisy or irrelevant data, leading to model drift. We present SoTTA (Screening-out Test-Time Adaptation), a framework that ensures robustness through High-confidence Uniform-class Sampling (HUS) and Entropy-Sharpness Minimization (ESM). Experimental results on CIFAR and ImageNet benchmarks demonstrate that SoTTA significantly outperforms state-of-the-art methods in noisy environments while maintaining high performance on clean data.
Introduction: The Challenge of Noisy Data Streams
Deep learning models frequently encounter domain shifts where test data distributions differ from training data. While Test-Time Adaptation (TTA) methods like TENT and CoTTA have been developed to update models on-the-fly using unlabeled data, they typically assume a "benign" test stream. In real-world applications such as autonomous driving, streams are often corrupted by dust, glare, or adversarial noise.
As shown in Figure 1, existing TTA algorithms are often "blind" to this noise. By attempting to adapt to irrelevant or corrupted samples, the model's parameters become corrupted—a phenomenon known as model drift. This leads to a precipitous drop in performance on the primary task.
Methodology: The SoTTA Framework
SoTTA addresses model drift through two complementary strategies:
1. Input-wise Robustness: High-confidence Uniform-class Sampling (HUS)
Instead of adapting to every incoming sample, SoTTA employs a filtering mechanism. It maintains a small memory buffer that only accepts samples where the model expresses high confidence. To prevent the model from developing biases toward skewed distributions common in noisy data, HUS manages the buffer to ensure a uniform distribution of predicted classes.
2. Parameter-wise Robustness: Entropy-Sharpness Minimization (ESM)
To handle noise that might bypass the HUS filter, SoTTA utilizes Entropy-Sharpness Minimization (ESM). While standard TTA focuses on minimizing entropy to increase certainty, ESM also minimizes the sharpness of the loss landscape. By seeking "flatter" minima, the model becomes more resilient to the disruptive gradients generated by outliers or noisy samples.
Experimental Setup
The framework was evaluated on three standard benchmarks: CIFAR10-C, CIFAR100-C, and ImageNet-C. To simulate realistic "wild" conditions, the test streams were injected with four types of noise:
- Near OOD: Semantically similar but distinct data (e.g., CIFAR100 in a CIFAR10 stream).
- Far OOD: Completely unrelated data (e.g., MNIST digits in natural image streams).
- Attack: Adversarial samples.
- Noise: Pure uniform random pixel noise.
Key Insights
- The Blind Adaptation Trap: Unfiltered TTA essentially "learns to be wrong" when exposed to noise.
- Confidence and Balance: High confidence combined with class balancing (HUS) effectively filters out most disruptive samples.
- Smoothness and Stability: Borrowing from Sharpness-Aware Minimization (SAM) principles, creating a flatter loss landscape provides a buffer against the "shocks" of noisy data.
- Synergistic Protection: Ablation studies confirm that neither HUS nor ESM is sufficient alone; their combination is critical for comprehensive robustness.
Results and Discussion
SoTTA demonstrates superior robustness across all tested scenarios.
As illustrated in Figure 2, SoTTA maintains high accuracy even when other methods fail. In the "Noise" scenario on CIFAR10-C, SoTTA achieved 80.0% accuracy, compared to 52.1% for TENT and 54.8% for CoTTA. Under adversarial attacks, it maintained 84.5% accuracy. Crucially, SoTTA does not suffer a "clean data penalty," achieving 82.2% accuracy on benign streams, which is competitive with specialized non-robust baselines.
Conclusion and Future Work
SoTTA provides a robust framework for online model adaptation in unpredictable environments. While effective, the authors note the computational overhead inherent in continual TTA and suggest that future research should focus on "memory-economic" versions. Additionally, while this work focuses on classification, extending these principles to object detection and image segmentation remains a promising frontier.
Summary updated