Rethinking the Teacher-Student Framework for Test-Time Adaptation

Damian Sójka, Marc Masana, Bartłomiej Twardowski, Sebastian CygertarXiv 2026

TL;DR

Test-Time Adaptation (TTA) relies heavily on "teacher-student" frameworks to update models on unlabeled data at deployment, using an Exponential Moving Average (EMA) teacher to stabilize learning. This paper reveals a critical flaw: EMA teachers don't prevent error accumulation over long periods—they merely delay it, eventually causing catastrophic model collapse. By simply freezing the teacher entirely—a strategy called the Intransigent Teacher—the authors halt this feedback loop of noise, delivering massive gains in long-term stability and hyperparameter robustness.

What Problem Does This Paper Address?

When machine learning models encounter real-world distribution shifts at deployment (e.g., changing weather conditions or sensor noise), Test-Time Adaptation (TTA) allows them to adapt on-the-fly using unsupervised data. To prevent the model from learning from its own noisy predictions and spiraling into chaos, state-of-the-art TTA methods use a teacher-student setup. The student model learns from pseudo-labels generated by a teacher model, and the teacher is continuously updated as a slow-moving average (EMA) of the student.

The authors point out a massive blind spot in how these systems are evaluated: standard benchmarks only test short data sequences. The authors demonstrate that over extended deployment timelines, the small errors generated by the EMA teacher compound into a destructive positive feedback loop. The teacher absorbs the student's noise, degrades, generates worse pseudo-labels, and ultimately causes the entire system to collapse below the performance of the original, unadapted source model.

Methods

The authors propose a beautifully simple modification to the teacher-student paradigm: The Intransigent Teacher (IT).

Instead of updating the teacher's weights using an EMA factor (typically $\beta = 0.999$), they set $\beta = 1$. This completely freezes the teacher's weights at their initial pre-trained values.

The Intransigent Teacher framework freezes teacher weights while updating the student via gradient descent.

During adaptation, the student is optimized using self-supervised objectives—such as cross-entropy consistency or contrastive losses—by comparing its predictions on heavily augmented data against the frozen teacher's predictions on clean data. Crucially, while the weights are frozen, the batch normalization statistics are still allowed to recalculate on a per-batch basis to handle the domain shift. This simple change completely decouples the pseudo-label generator from the student's noisy updates, ensuring that prediction noise remains stationary and non-compounding.

Datasets

To expose long-term vulnerabilities, the authors evaluated methods on standard benchmarks as well as newly extended "Long" (L) variants created by repeating the test sequences 20 times:

  • CIFAR10-C & ImageNet-C: Standard benchmarks for image corruptions (blur, fog, digital noise, etc.).
  • DomainNet-126 & ImageNet-R: Benchmarks capturing natural domain shifts (e.g., sketches, cartoons, real images).
  • CCC (Continual Cross-domain Corruption): A massive, non-repeating sequence consisting of 7,500,000 images to test extreme long-term stability.
  • CarlaTTA: A dataset used to validate the approach on a semantic segmentation task (transitioning from clear day to night).

Key Insights and Ideas

  • The Illusion of EMA Stability: EMA teachers do not inherently prevent model collapse; they merely postpone it. Short evaluation protocols have inadvertently masked this failure mode.
  • Decoupling the Noise Feedback Loop: By freezing the teacher, the noise distribution from domain shifts becomes stationary. It stops compounding, which fundamentally halts the mechanism behind long-term model collapse.
  • Surpassing the Master: Counterintuitively, a student trained against a completely frozen teacher can significantly outperform that teacher. When using contrastive feature alignment, the student optimizes its internal representations beyond what the static teacher provides.
  • The Stability-Plasticity Bottleneck: There is a strict trade-off. While an intransigent teacher guarantees long-term stability, it sacrifices "plasticity"—the ability to rapidly adapt to sudden, extreme distribution shifts in the short term.

Key Results

When evaluated on long sequences, standard TTA methods (like AdaContrast, CoTTA, RoTTA, and PETAL) frequently collapsed. Replacing their EMA teachers with the Intransigent Teacher consistently averted these failures.

Figure 1: Average classification accuracy [%] for the baseline methods, with and without our Intransigent Teacher technique, evaluated across the original bench- marks and their long variants (20× repetitions). While baseline methods exhibit performance degradation as test sequence length increases, our Intransigent Teacher modification to the teacher-student framework effec- tively mitigates this decay and maintains robust accuracy.
  • Accuracy Improvements: For a standard batch size of 64, the Intransigent Teacher boosted average accuracy across long benchmarks by 12.2% for AdaContrast, 2.4% for CoTTA, and 8.0% for RoTTA. On smaller, more challenging batch sizes (size 10), the gains were even more pronounced (e.g., a 22.8% boost for AdaContrast).
  • Long-Term Prevention of Collapse: In extended loops of ImageNet-C, standard EMA methods degraded rapidly after the 2nd or 3rd loop, whereas the Intransigent Teacher maintained high accuracy throughout all 20 loops.
Figure 2: Per-batch accuracy on repeated ImageNet-C (20 loops) with EMA teacher (ET) and intransigent teacher (IT), both for teacher (solid) and student (dashed). Only the self-supervised losses, without any additional compo- nents (or restart mechanisms), allow for successful adapta- tion over long sequences when the teacher is intransigent.
  • Hyperparameter Robustness: TTA methods are notoriously sensitive to learning rates. While standard CoTTA collapsed completely when the learning rate was scaled up by 10× or 50×, the IT-augmented version remained robust and functional.

Limitations and Future Work

The primary limitation of the Intransigent Teacher is its inherent conservative nature. Because the teacher is frozen, the student's adaptation can be slower in certain scenarios where high plasticity is required to bridge a massive domain gap quickly.

To address this "plasticity bottleneck," the authors briefly experimented with a hybrid approach: allowing the teacher to adapt normally during an initial warm-up phase before freezing its weights entirely. They suggest that developing more sophisticated, adaptive momentum strategies—which dynamically tune stability based on the timeline of deployment—is a highly promising direction for future long-term TTA research.

Summary updated

BibTeX
@misc{sojka2026rethinking,
  author = {Damian Sójka and Marc Masana and Bartłomiej Twardowski and Sebastian Cygert},
  title = {{Rethinking the Teacher-Student Framework for Test-Time Adaptation}},
  year = {2026},
  eprint = {2609.02507},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.02507},
}
Figure