Abstract
Continual Test-Time Adaptation (CTTA) aims to adapt a pre-trained model to a continuously shifting stream of unlabeled target data without access to the source dataset. A major hurdle in CTTA is error accumulation, where incorrect pseudo-labels lead to "topology collapse"—the degradation of distinct class boundaries in the feature space. This paper introduces Topological Consistency Adaptation (TCA), a framework designed to anchor the model's internal representations by preserving the relative relationships (topology) between classes learned during source training. TCA employs inter-class uniformity and intra-class compactness losses, alongside a batch imbalance weighting mechanism, to maintain stable and discriminative feature clusters. Experimental results across multiple benchmarks, including CIFAR-C and ImageNet-C, demonstrate that TCA significantly outperforms existing state-of-the-art methods in both accuracy and long-term stability.
Introduction
In real-world scenarios, such as autonomous driving, models often encounter a non-stationary stream of data where environmental conditions (e.g., weather, lighting) change over time. Continual Test-Time Adaptation (CTTA) addresses this by allowing models to adapt on-the-fly using only unlabeled test samples. However, relying on self-generated pseudo-labels often triggers a "vicious cycle": a single misclassification leads to a weight update that reinforces the error, eventually causing the model's feature space to collapse. When this happens, the structural "topology"—the spatial arrangement and separation of different categories—is lost, rendering the model ineffective.
Methodology
The proposed Topological Consistency Adaptation (TCA) framework prevents this collapse by enforcing topological constraints. The core idea is that while the absolute positions of features may shift under new domains, the relative distances between class centroids should remain consistent with the source domain's structure.
TCA consists of three primary components:
- Inter-class Uniformity Loss: This ensures that class centroids (the "average" feature for a category) stay spread out, preventing different classes from merging into a single indistinguishable blob.
- Intra-class Compactness Loss: This pulls features of the same class together, maintaining tight clusters and sharp decision boundaries even as input data becomes noisy.
- Batch Imbalance Topology Weighting (BTW): Real-world data streams are rarely balanced. BTW dynamically adjusts the importance of class relationships based on their frequency in the current batch, preventing bias toward common classes.
To handle cases with small batch sizes, the system uses an Exponential Moving Average (EMA) to track class centroids over time, integrating historical knowledge with new observations.
Experimental Evaluation
The authors evaluated TCA on four major benchmarks for robustness and adaptation: CIFAR-10-C, CIFAR-100-C, ImageNet-C, and the CCC-benchmark (a specialized long-sequence task simulating smooth transitions between domains).
Results and Discussion
TCA consistently outperformed existing state-of-the-art methods (like CoTTA and RMT) across all benchmarks. On CIFAR-10-C, it achieved a mean error rate of 14.7%, surpassing the previous best of 16.0%. On the large-scale ImageNet-C, TCA achieved a mean error of 59.3%, becoming the first method in this study to break below the 60% threshold.
Visual analysis via t-SNE plots confirms that TCA effectively preserves the global class structure. While competing methods show significant cluster overlap and distortion under domain shift, TCA's feature clusters remain distinct and organized, mirroring the original source domain's topology. This stability is particularly evident in long-sequence tasks, where TCA avoids the "drift" that typically degrades model performance over time.
Conclusion and Future Work
TCA offers a robust solution to the problem of error accumulation in CTTA by treating the source-learned topology as a structural anchor. While highly effective, the method's reliance on weighting hyperparameters and its dependency on a high-quality initial source topology remain areas for future exploration. Nonetheless, by explicitly optimizing for both inter-class separation and intra-class cohesion, TCA provides a scalable path toward stable, long-term model adaptation in changing environments.
Summary updated