NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

When Test-Time Adaptation Meets Self-Supervised Models

Jisu Han, Jihee Park, Dongyoon Han, Wonjun HwangarXiv 2025 · DOI

Abstract

Test-Time Adaptation (TTA) is a vital technique for mitigating domain shift on-the-fly. However, traditional TTA methods rely heavily on supervised source pretraining, which is both label-intensive and computationally expensive. This paper introduces AWS (Adapt Without Source pretraining), a framework that enables TTA using self-supervised learning (SSL) models. By addressing the "entropy trap" inherent in SSL models and utilizing a prototype-based classifier, AWS achieves state-of-the-art performance while significantly reducing pretraining overhead.

Introduction: The Hidden Cost of Test-Time Adaptation

Deep learning models frequently encounter "domain shift," where test-time data distributions differ from training data. While TTA aims to adapt models to these shifts without retraining from scratch, current approaches suffer from a significant "hidden cost." They typically require a high-quality model pretrained on a large, labeled source dataset. This creates a bottleneck due to heavy label dependency and the inefficiency of pretraining separate supervised models for every potential scenario.

Comparison between conventional TTA and the proposed AWS framework.

The Entropy Trap in Self-Supervised Models

A core challenge identified by the authors is that standard TTA techniques, such as Entropy Minimization (EM), fail when applied to SSL models. In supervised models, low prediction entropy often correlates with accuracy. In contrast, SSL models can produce low-entropy (highly confident) predictions that are incorrect. Minimizing entropy in this context causes the model to reinforce its own errors, a phenomenon the authors term the "entropy trap."

Analysis of TTA failures in SSL models and performance comparison of AWS.

The AWS Framework

To overcome these hurdles, the AWS framework integrates SSL models into the TTA pipeline using four key components:

  1. Prototype Classifier: Instead of a traditional supervised head, AWS constructs a classifier by calculating mean feature vectors (prototypes) for each class from a small subset of source data. This process is highly efficient, requiring only a single forward pass.
  2. Approximately Correct Contrastive Learning (CL): To refine representations without labels, the model identifies "positive pairs" based on shared classes in the top-$k$ predictions, pulling these samples together in the feature space.
  3. Knowledge Distillation (KD): A distillation loss ensures the adapting model retains the general features learned during self-supervision, preventing catastrophic forgetting.
  4. Mutual Learning (ML): A collaborative loop between the initial SSL "generalist" and the adapting "specialist" model improves overall stability and performance.

Experimental Results and Insights

The AWS framework was evaluated on benchmarks like ImageNet-to-ImageNetC and natural domain shifts (ImageNet-R, Sketch).

  • Superior Performance: On ImageNetC, AWS achieved a mean error rate of 39.4%, outperforming previous state-of-the-art methods like Continual-MAE (42.5%) and Tent (51.0%).
  • Efficiency: AWS reduces the pretraining phase from days of supervised training to mere minutes for prototype generation.
  • Robustness: The method remains effective even in "few-shot" scenarios, requiring as few as 30 samples per class to build a competitive prototype classifier.

Conclusion

AWS demonstrates that self-supervised models can serve as a robust foundation for test-time adaptation, bypassing the need for expensive labeled source pretraining. By addressing the unique failure modes of SSL models during adaptation, AWS paves the way for more efficient and scalable domain-adaptive systems. Future work may explore extending this framework to multi-modal models like CLIP to further reduce source data dependency.

Summary updated

BibTeX
@misc{han2025when,
  author = {Jisu Han and Jihee Park and Dongyoon Han and Wonjun Hwang},
  title = {{When Test-Time Adaptation Meets Self-Supervised Models}},
  year = {2025},
  eprint = {2506.23529},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.23529},
}
Figure