arXiv:2609.02507cs.LGSep 2026

Manuscript Offprint

arXiv:2609.02507

Rethinking the Teacher-Student Framework for Test-Time Adaptation

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Test-Time Adaptation (TTA) has recently emerged as a promising strategy that allows the adaptation of pre-trained models to changing data distributions at deployment time, without access to any labels. To mitigate error accumulation, researchers have widely adopted the teacher-student framework, though its long-term stability is often taken for granted. In this work, we challenge the common strategy of setting the teacher weights to an exponential moving average of the student by showing that error accumulation still occurs, although it is mostly apparent on longer sequences compared to those commonly utilized. We analyze the stability-plasticity trade-off within the teacher-student framework and propose to use an intransigent teacher that does not update its weights. Surprisingly, we show that this simple change allows TTA methods to significantly improve their performance on multiple datasets with longer scenarios and result in increased robustness to changes in hyperparameters. Finally, we show that those changes can be seamlessly and effectively applied to various architectures and experimental setups, including semantic segmentation. The code is available at https://github.com/dmn-sjk/intransigent_teacher.

1 INTRODUCTION

Machine learning models typically assume that training and testing data originate from a similar distribution. However, in real-world applications, distribution shifts between training (source) and testing (target) data domains are common and can lead to performance issues throughout inference (Geirhos et al., 2019; Hendrycks & Dietterich, 2019; Koh et al., 2021). Test-Time Adaptation (TTA) (Wang et al., 2021) allows for an online adaptation of a pre-trained model to the changing data distributions during testing, in an unsupervised way. While many TTA methods have been developed in recent years (Gong et al., 2022; Goyal et al., 2022; Marsden et al., 2024a; Niu et al., 2022; 2023; Rusak et al., 2022; Sun et al., 2020; Wang et al., 2022; Yuan et al., 2023), important challenges remain, such as adaptation over very long scenarios (Press et al., 2023), robustness to noisy data (Gong et al., 2023), and sensitivity to hyperparameter change (Boudiaf et al., 2022; Zhao et al., 2023; Cygert et al., 2026).

The teacher-student paradigm is a popular framework in TTA (Chen et al., 2022; Döbler et al., 2022; Sójka et al., 2023; Wang et al., 2022; Yuan et al., 2023; Zhou et al., 2024), where the teacher weights are updated as the Exponential Moving Average (EMA) of the student weights (i.e., EMA teacher). This strategy follows pioneering works in semi-supervised learning (Laine & Aila, 2017; Tarvainen & Valpola, 2017), representation learning (Grill et al., 2020; He et al., 2020; Oquab et al., 2024), and learning under label noise (Liu et al., 2020; Nguyen et al., 2020). The averaged model provides more accurate and consistent predictions, which the student uses for training. While recent TTA survey (Maharana et al., 2026) suggests this framework inherently prevents model collapse and enables state-of-the-art performance, our findings challenge this consensus.

In this work, we present experimental evidence indicating that the teacher-student framework does not strictly prevent error accumulation, which can result in model collapse (i.e., falling below the accuracy of the source model). Moreover, we demonstrate that state-of-the-art TTA methods relying on this stabilization (Chen et al., 2022; Wang et al., 2022; Yuan et al., 2023; Brahma & Rai, 2023) are prone to significant accuracy degradation on extended test sequences. The EMA teacher merely postpones the effects of error accumulation. This reveals a critical flaw in common evaluation protocols, which have previously failed to detect this issue. In search for a solution, we observe that employing a simple technique of making the teacher more intransigent (not updating the teacher's weights) prevents

model collapse over very long testing sequences (see Fig. 1). Interestingly, such a teacher can also enable students to fulfill the age-old cliche of surpassing their teacher (see Fig. 7). Based on that finding, we take a closer look at the stability-plasticity trade-off (Mermillod et al., 2013) within teacher-student frameworks and how it affects the final model performance. We show that while increased teacher plasticity can lead to better performance on the current data in the short run, using a more stable teacher leads to a better adaptation over longer scenarios. This is due to the error accumulation of the plastic model, which adapts well to the current data but fails to maintain generalization over time, as explored in Sec. 4.2.

Our contributions are as follows:

  • We analyze the teacher-student framework commonly used in TTA, demonstrating that an EMA teacher fails to prevent model collapse on longer test sequences.
  • We observe that maintaining the teacher's weights fixed during adaptation (Intransigent Teacher – IT), effectively prevents model collapse while allowing the student to surpass the teacher. We find that IT works well because it avoids negative flips and tends to keep the representation strength intact.
  • This simple solution (i.e., IT) can be combined with state-of-the-art methods, mitigating error accumulation by easily replacing any EMA teacher and obtaining reliable performance. IT can serve as a simple yet effective comparative baseline for future TTA works.

Figure

Figure 1: Average classification accuracy [%] for the baseline methods, with and without our Intransigent Teacher technique, evaluated across the original benchmarks 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 effectively mitigates this decay and maintains robust accuracy.

References (65)