# TTT++: When Does Self-Supervised Test-Time Training Fail or Thrive?

- Authors: Yuejiang Liu, Parth Ashit Kothari, Bastien Van Delft, Baptiste Bellot-Gurlet, Taylor Mordan, Alexandre Alahi
- Year: 2021
- Type: Conference paper
- Venue: 35th Conference on Neural Information Processing Systems (NeurIPS 2021)
- Research area: Robustness (VITA lab, EPFL)
- Code: https://github.com/vita-epfl/ttt-plus-plus
- EPFL Infoscience: https://infoscience.epfl.ch/handle/20.500.14299/190839
- Web page: https://vita.epfl.ch/papers/ttt-when-does-self-supervised-test-time-training-fail-or-thrive/



## Abstract

Test-time training (TTT) through self-supervised learning (SSL) is an emerging paradigm to tackle distributional shifts. Despite encouraging results, it remains unclear when this approach thrives or fails. In this work, we first provide an in-depth look at its limitations and show that TTT can possibly deteriorate, instead of improving, the test-time performance in the presence of severe distribution shifts. To address this issue, we introduce a test-time feature alignment strategy utilizing offline feature summarization and online moment matching, which regularizes adaptation without revisiting training data. We further scale this strategy in the online setting through batch-queue decoupling to enable robust moment estimates even with limited batch size. Given aligned feature distributions, we then shed light on the strong potential of TTT by theoretically analyzing its performance post adaptation. This analysis motivates our use of more informative self-supervision in the form of contrastive learning for visual recognition problems. We empirically demonstrate that our modified version of test-time training, termed TTT++, outperforms state-of-the-art methods by significant margins on several benchmarks. Our result indicates that storing and exploiting extra information, in addition to model parameters, can be a promising direction towards robust test-time adaptation.

## Keywords

Test-time Adaptation, Source-free Domain Adaptation, Self-supervised Learning, Distribution Shifts

## Related VITA papers

- [Learning Robust and Adaptive Representations: from Interactions, for Interactions](https://vita.epfl.ch/papers/learning-robust-and-adaptive-representations-from-interactions.md) (2023)
- [Sampling-Free Universal Domain Adaptive Object Detection with Synergistic Optimization Alignment](https://vita.epfl.ch/papers/sampling-free-universal-domain-adaptive-object-detection-with.md) (2026)
- [On Pitfalls of Test-time Adaptation](https://vita.epfl.ch/papers/on-pitfalls-of-test-time-adaptation.md) (2023)
- [Bilinear Multimodal Discriminator for Adversarial Domain Adaptation with Privileged Information](https://vita.epfl.ch/papers/bilinear-multimodal-discriminator-for-adversarial-domain.md) (2020)
- [Motion Style Transfer: Modular Low-Rank Adaptation for Deep Motion Forecasting](https://vita.epfl.ch/papers/motion-style-transfer-modular-low-rank-adaptation-for-deep.md) (2022)
- [Unified skeleton representation learning for autonomous driving](https://vita.epfl.ch/papers/unified-skeleton-representation-learning-for-autonomous-driving.md) (2026)

## BibTeX

```bibtex
@inproceedings{liu2021selfsupervised,
  title = {{TTT++: When Does Self-Supervised Test-Time Training Fail or Thrive?}},
  author = {Liu, Yuejiang and Kothari, Parth and Van Delft, Bastien and Bellot-Gurlet, Baptiste and Mordan, Taylor and Alahi, Alexandre},
  booktitle = {35th Conference on Neural Information Processing Systems (NeurIPS 2021)},
  year = {2021},
  volume = {34},
  url = {https://infoscience.epfl.ch/handle/20.500.14299/190839}
}
```
