Skip to main content
QUICK REVIEW

[Paper Review] Robust Mean Teacher for Continual and Gradual Test-Time Adaptation

Mario Döbler, Robert A. Marsden|arXiv (Cornell University)|Nov 23, 2022
Domain Adaptation and Few-Shot LearningComputer Science6 citations
TL;DR

This paper proposes Robust Mean Teacher (RMT), a novel test-time adaptation method that uses symmetric cross-entropy loss and contrastive learning to improve continual and gradual domain shift adaptation. RMT achieves state-of-the-art performance on CIFAR10C, CIFAR100C, ImageNet-C, ImageNet-R, and a new continual DomainNet-126 benchmark, with significant error reductions in both source-free and source-accessible settings.

ABSTRACT

Since experiencing domain shifts during test-time is inevitable in practice, test-time adaption (TTA) continues to adapt the model after deployment. Recently, the area of continual and gradual test-time adaptation (TTA) emerged. In contrast to standard TTA, continual TTA considers not only a single domain shift, but a sequence of shifts. Gradual TTA further exploits the property that some shifts evolve gradually over time. Since in both settings long test sequences are present, error accumulation needs to be addressed for methods relying on self-training. In this work, we propose and show that in the setting of TTA, the symmetric cross-entropy is better suited as a consistency loss for mean teachers compared to the commonly used cross-entropy. This is justified by our analysis with respect to the (symmetric) cross-entropy's gradient properties. To pull the test feature space closer to the source domain, where the pre-trained model is well posed, contrastive learning is leveraged. Since applications differ in their requirements, we address several settings, including having source data available and the more challenging source-free setting. We demonstrate the effectiveness of our proposed method 'robust mean teacher' (RMT) on the continual and gradual corruption benchmarks CIFAR10C, CIFAR100C, and Imagenet-C. We further consider ImageNet-R and propose a new continual DomainNet-126 benchmark. State-of-the-art results are achieved on all benchmarks.

Motivation & Objective

  • To address error accumulation in continual and gradual test-time adaptation (TTA) under long test sequences.
  • To improve model robustness when adapting to sequential domain shifts, especially in settings with gradual or increasing domain difficulty.
  • To develop a framework effective in both source-accessible and source-free TTA settings.
  • To demonstrate the superiority of symmetric cross-entropy over standard cross-entropy in mean teacher-based self-training for TTA.

Proposed method

  • Proposes a mean teacher framework using symmetric cross-entropy (SCE) as the consistency loss, motivated by superior gradient properties compared to standard cross-entropy.
  • Introduces a multi-view contrastive loss to align test-time features with the source domain space, enhancing feature invariance.
  • Employs a momentum-updated teacher network to stabilize training and reduce error accumulation during sequential adaptation.
  • Uses a warm-up phase on source data with linear learning rate scaling to improve initial adaptation stability.
  • Supports both source-free and source-accessible settings, with source replay used to further improve performance.
  • Applies a sliding window mechanism for single-sample TTA to stabilize batch normalization statistics and reduce gradient noise.

Experimental results

Research questions

  • RQ1Does symmetric cross-entropy outperform standard cross-entropy as a consistency loss in mean teacher-based test-time adaptation?
  • RQ2How does the proposed method perform under continual and gradual domain shifts compared to prior SOTA approaches?
  • RQ3Can contrastive learning effectively pull test features toward the source domain space in long, non-stationary test sequences?
  • RQ4How does access to a small amount of source data affect performance in source-free TTA settings?
  • RQ5Is the method robust to increasing domain difficulty, such as from low to high severity corruption levels?

Key findings

  • RMT achieves a 12% lower error rate on ImageNet-C in the easy-to-hard continual setting compared to hard-to-easy sequences, demonstrating strong performance on increasing difficulty shifts.
  • On the new continual DomainNet-126 benchmark, RMT sets a new SOTA, outperforming prior methods in both source-accessible and source-free settings.
  • With a window size of 16, RMT achieves a mean error of 40.9% on single-sample TTA, outperforming state-of-the-art methods in the batch setting.
  • Using symmetric cross-entropy loss reduces error by over 18.3% compared to standard cross-entropy in mean teacher frameworks.
  • Source replay with just 1% of source data leads to a substantial performance gain, especially when multiple update steps are used.
  • The ablation study confirms that all components—SCE loss, contrastive learning, warm-up, and source replay—contribute significantly to final performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.