arXiv:2609.01795cs.CVSep 2026

Manuscript Offprint

arXiv:2609.01795

DESA-TTA: Dynamic EMA and Source Anchoring for Test-Time Adaptation

Atif Belal, Lilian Hollard, Marco Pedersoli, Eric Granger

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

Abstract

Vision-language object detectors (VLODs) achieve strong zero-shot performance but remain vulnerable to distribution shifts during deployment. Mean-teacher methods for test-time adaptation (TTA) can improve robustness by updating a student model using teacher-generated pseudo-labels. However, mean-teacher TTA is highly sensitive to the choice of a fixed exponential moving average (EMA) coefficient for teacher updates, and repeated optimization with noisy pseudo-labels can cause cumulative student drift. We propose Dynamic EMA and Source Anchoring for TTA (DESA-TTA), a low-overhead method that jointly regulates teacher updates and student drift through dynamic temporal averaging and source anchoring. Dynamic temporal averaging estimates teacher uncertainty from pseudo-label confidence and box density and uses it to select a sample-wise EMA coefficient within bounds determined by teacher parameter drift. Source anchoring partially restores the updated student parameters toward their pretrained values, with the anchoring strength increasing according to student drift. Experiments across diverse distribution shifts and two VLOD architectures show consistent improvements over existing TTA methods. On VOC-C, DESA-TTA improves AP50AP_{50} by 14.5 points over zero-shot inference while achieving 55% higher inference throughput than the previous state-of-the-art TTA method for YOLO-World.

Our code: https://github.com/imatif17/DESA-TTA

1 Introduction

VLODs enable open-vocabulary object detection by aligning visual regions with textual class descriptions (Liu et al. 2024a; Cheng et al. 2024). Unlike conventional closed-set detectors (Ren et al. 2015), VLODs can recognize categories specified at inference time, making them particularly attractive for deployment in dynamic real-world environments. However, their strong zero-shot (ZS) performance can degrade substantially when the deployment distribution differs from the pretraining distribution. To address this limitation, TTA has gained increasing attention, as it enables a pretrained model to adapt online during deployment using only unlabeled test data.

State-of-the-art TTA approaches for VLODs primarily follow two paradigms: entropy minimization (Belal et al. 2026)

and mean-teacher adaptation (Gao et al. 2025). The entropy-minimization approach performs episodic adaptation by resetting the model parameters after each test batch (Belal et al. 2026). Although this prevents erroneous updates from accumulating, it also limits the model's ability to retain useful knowledge from previous samples (Niu et al. 2023). Mean-teacher adaptation instead enables cumulative adaptation by maintaining a temporally averaged teacher that generates pseudo-labels for updating a student model. Given its ability to accumulate target-specific knowledge across the test stream, we focus on mean-teacher adaptation in this work.

Despite its ability to accumulate knowledge over a test stream, mean-teacher adaptation has two key limitations for TTA of VLODs. First, the teacher relies on a fixed EMA coefficient to balance the preservation of its previous state against the incorporation of the adapted student state. As shown in Figure 1(a), the preferred coefficient varies substantially across domains. A smaller coefficient incorporates recent student updates more rapidly, enabling faster adaptation but increasing sensitivity to errors induced by noisy pseudo-labels. Conversely, a larger coefficient provides greater stability by preserving the previous teacher state but may make adaptation overly conservative. Because the target domain is unknown during deployment, selecting a suitable domain-specific coefficient is impractical. Moreover, a fixed coefficient cannot account for variations in pseudo-label reliability or model state over the course of adaptation.

Second, the student is updated cumulatively using pseudo-labels generated throughout the target stream. Since these pseudo-labels can be noisy or miscalibrated, repeated optimization can lead to error accumulation (Wang et al. 2022). As each adapted student state is subsequently incorporated into the teacher, the accumulated errors can affect the pseudo-labels generated for later samples. As shown in Figure 1(b), adaptation without source anchoring initially improves performance but subsequently deteriorates as more target samples are processed. This behavior indicates that repeated pseudo-label optimization can cause the student to drift progressively away from the pretrained ZS detector, resulting in long-term performance degradation.

To address these limitations, we propose DESA-TTA: Dynamic EMA and Source Anchoring for TTA of VLODs. DESA-TTA jointly regulates temporal averaging in the teacher and constrains student drift during cumulative adap-

Figure

(a) Sensitivity to the fixed EMA coefficient

Figure

(b) Effect of source anchoring over long streams

Figure 1: Motivation for DESA-TTA. (a) The performance gain from mean-teacher TTA is highly sensitive to the fixed EMA coefficient, whose best-performing value varies substantially across domains. Stars denote dynamic temporal averaging and are placed at the best fixed-EMA coefficient only for visual comparison. (b) Without source anchoring, the initial adaptation gains diminish as pseudo-label updates accumulate, whereas source anchoring preserves these gains over long target streams.

tation. To reduce sensitivity to a fixed EMA coefficient, DESA-TTA dynamically adjusts the teacher update coefficient according to teacher uncertainty and teacher parameter drift. Teacher uncertainty is estimated from the mean pseudo-label confidence and normalized box density, while teacher drift determines the admissible EMA range. Dense, low-confidence predictions produce greater uncertainty and therefore a smaller coefficient, allowing the teacher to incorporate the adapted student state more rapidly. Conversely, lower uncertainty produces stronger temporal averaging to preserve teacher stability. As shown in Figure 1(a), dynamic temporal averaging outperforms the best domain-specific fixed-EMA setting on all three displayed domains without requiring prior knowledge of the target distribution.

To mitigate cumulative student drift, DESA-TTA introduces source anchoring after each pseudo-label-based gradient update. The pretrained ZS detector provides a fixed reference, while the adapted student captures target-specific information from the test stream. After each update, the student parameters are partially restored toward their source initialization by linearly interpolating the adapted parameters with their pretrained values using a drift-dependent anchoring coefficient. The anchoring remains weak when the student is close to its initialization and progressively strengthens as student drift increases. This mechanism preserves the student's capacity to acquire target-specific information while constraining excessive deviation from the pretrained detector. As illustrated in Figure 1(b), source anchoring preserves the initial adaptation gains and substantially mitigates the long-term degradation observed without anchoring.

The two components address complementary failure modes. Source anchoring constrains the adapted student state before it is incorporated into the teacher, while dynamic temporal averaging controls the extent of this incorporation. Together, they enable cumulative acquisition of target-specific knowledge while limiting error propagation from repeated pseudo-label optimization.

The contributions of this paper are summarized as follows. (1) We identify and empirically characterize two key limitations of mean-teacher TTA for VLODs: the domain sensitivity of fixed EMA updates and cumulative stu-

dent drift caused by repeated pseudo-label optimization. (2) We introduce DESA-TTA, an efficient method that combines sample-wise dynamic temporal averaging with drift-dependent source anchoring to jointly regulate teacher updates and student drift. (3) Extensive experiments on benchmarks covering style shifts, autonomous-driving scenarios, illumination shifts, and common corruptions show that DESA-TTA consistently outperforms state-of-the-art TTA methods across diverse distribution shifts.

References (31)