Controllable Continual Test-Time Adaptation

Ziqi Shi, Fan Lyu, Ye Liu, Fanhua Shang, Fuyuan Hu, Wei Feng, Zhang Zhang, Liang Wang

TL;DR

C-CoTTA introduces a paradigm shift in Continual Test-Time Adaptation (CTTA) by moving from simply suppressing domain shifts to actively guiding and controlling them. By leveraging Concept Activation Vectors (CAVs) to represent shift directions, the method prevents categories from "bleeding" into each other, maintaining clear decision boundaries even as environments change.

What Problem Does This Paper Address?

In the real world, machine learning models often face "distribution shift"—the data they see during deployment (test-time) looks different from the data they were trained on (source domain). Continual Test-Time Adaptation (CTTA) is the challenge of adapting a model to a continuously changing stream of data without ever seeing the original training data again.

The primary enemy in CTTA is error accumulation. Because the model adapts using its own (potentially wrong) predictions as "pseudo-labels," small errors snowball over time. Existing methods try to suppress these shifts to keep the model stable. However, the authors argue that in unsupervised settings, these shifts are essentially uncontrollable. Without explicit guidance, different categories begin to drift toward a "confusion region" in the feature space, blurring the decision boundaries and leading to catastrophic failure in long-term deployments like autonomous driving or medical monitoring.

Methods

The authors propose Controllable Continual Test-Time Adaptation (C-CoTTA). The framework is built on the standard "Mean Teacher" architecture but adds two novel mechanisms to manage how the model's internal representations move:

  1. Representing Shift via CAVs: Borrowing from the field of explainable AI, the authors use Concept Activation Vectors (CAVs). In this context, a CAV is a vector in feature space representing the path from a source category prototype (the average feature of a class) to a target category prototype.
  2. Control Domain Shift (CDS) Loss: This loss reduces the model's sensitivity to the overall global domain shift. It essentially tells the model: "Don't change your output just because the global lighting or weather conditions changed."
  3. Control Class Shift (CCS) Loss: This is the core innovation. It explicitly constrains the direction of shift for each category. It ensures that if a category (e.g., "Bird") shifts, it doesn't shift toward another category (e.g., "Deer"). It uses a dot-product constraint to keep class-specific shifts away from the relative directions of other classes.
  4. Reliable Sample Selection: To prevent noisy, misclassified samples from ruining the "prototypes," the authors use an entropy-based filter, only allowing high-confidence samples to influence the adaptation process.

Datasets

The method was evaluated on three standard benchmarks for robustness and adaptation, each featuring 15 types of corruptions (like blur, noise, and weather effects) at varying severities:

  • CIFAR10-C: 10-class small image dataset.
  • CIFAR100-C: 100-class image dataset.
  • ImageNet-C: Large-scale 1000-class dataset, representing the most challenging scenario.

Key Insights and Ideas

  • Shift Guidance > Shift Suppression: The most significant "aha moment" is that trying to stop a model from changing in a dynamic environment is often futile. It is better to define "safe" directions for that change to occur.
  • Inter-class Separability is Key: The paper demonstrates that the drop in accuracy in CTTA isn't just about the model "forgetting" features, but about classes becoming indistinguishable in the latent space.
  • Interpretability Tools for Optimization: Using CAVs—traditionally a tool to understand what a model is looking at—as a tool for constraining how a model learns is a clever cross-pollination of sub-fields.

Key Results

C-CoTTA consistently outperformed state-of-the-art (SOTA) methods like CoTTA and SATA across all benchmarks:

  • CIFAR10-C: Achieved a mean error rate of 14.7%, a significant improvement over the source-only baseline (43.5%) and the previous SOTA (15.3%).
  • ImageNet-C: Reduced the mean error to 59.4%, outperforming other competitive methods by a healthy margin (e.g., SATA at 60.1%).
  • Qualitative Success: t-SNE visualizations (dimensionality reduction plots) clearly show that while other methods allow class clusters to merge and overlap over time, C-CoTTA maintains distinct, well-separated clusters.
  • Long-term Stability: In "corruption loops" (where the model sees the same corruptions repeatedly), C-CoTTA's error rate continued to decrease or stabilize, while other methods saw error rates climb due to accumulated "noise."

Limitations and Future Work

The authors identify a few key hurdles:

  • Prototype Quality: The method relies heavily on having accurate "prototypes" (mean features) for each class. If the initial model is very weak or the domain shift is too extreme, the pseudo-labels will be wrong, leading to "contaminated" prototypes and incorrect guidance.
  • Computational Overhead: Calculating prototypes and directional losses in an online, per-batch manner adds computational complexity compared to simpler entropy-minimization methods.
  • Future Direction: The authors suggest that finding better ways to obtain high-quality directional representations without any labels is a critical next step for making CTTA truly robust for years-long deployments.

Summary updated

BibTeX
@inproceedings{shi2025controllable,
  author = {Ziqi Shi and Fan Lyu and Ye Liu and Fanhua Shang and Fuyuan Hu and Wei Feng and Zhang Zhang and Liang Wang},
  title = {{Controllable Continual Test-Time Adaptation}},
  booktitle = {ICME},
  year = {2025},
  doi = {10.1109/icme59968.2025.11209779},
}
Figure