Abstract
Continual Test Time Adaptation (CTTA) is required to adapt efficiently to continuous unseen domains while retaining previously learned knowledge. However, despite the progress of CTTA, it is still challenging to deploy the model with improved forgetting-adaptation trade-offs and efficiency. In addition, current CTTA scenarios assume only the disjoint situation, even though real-world domains are seamlessly changed. To address these challenges, this paper proposes BECoTTA, an input-dependent and efficient modular framework for CTTA. We propose Mixture-of Domain Low-rank Experts (MoDE) that contains two core components: (i) Domain-Adaptive Routing, which helps to selectively capture the domain adaptive knowledge with multiple domain routers, and (ii) Domain-Expert Synergy Loss to maximize the dependency between each domain and expert. We validate that our method outperforms multiple CTTA scenarios, including disjoint and gradual domain shifts, while only requiring ~98% fewer trainable parameters. We also provide analyses of our method, including the construction of experts, the effect of domain-adaptive experts, and visualizations.
Introduction
In real-world applications like autonomous driving, models encounter continuously changing environments—from sunny city streets to foggy tunnels or rainy nights. While Test-time Adaptation (TTA) allows models to update during inference, Continual TTA (CTTA) demands the ability to handle a sequence of domains without "catastrophic forgetting." Existing CTTA methods often face a steep trade-off between adaptation speed and memory retention, or they are too computationally heavy for edge deployment. Furthermore, most research focuses on sudden "disjoint" domain shifts, failing to account for the gradual transitions typical of real-world scenarios.
Methodology: Blending Experts for Efficiency
BECoTTA (Blending of Experts for Continual Test-time Adaptation) addresses these issues through a modular architecture called Mixture-of-Domain Low-rank Experts (MoDE).
The framework consists of three primary innovations:
- Low-rank Experts: Instead of updating the entire backbone, BECoTTA integrates lightweight, low-rank modules (similar to LoRA) into the model blocks. Only these modules are updated, drastically reducing the parameter count.
- Domain-Adaptive Routing: A Domain Discriminator (DD) identifies the characteristics of the current input. Based on this, a routing mechanism dynamically selects and blends specialized experts to process the image.
- Domain-Expert Synergy Loss: To ensure experts specialize effectively (e.g., a "rain expert" focusing on rain-specific features), a novel loss function maximizes the mutual information between domains and experts.
Additionally, a Source Domain Augmentation (SDA) phase "warms up" the model using synthetic variations of source data, providing a robust initialization for the routers and experts before deployment.
Experimental Evaluation
The researchers evaluated BECoTTA across diverse benchmarks, including standard disjoint shifts (CDS-Easy), a new realistic imbalanced benchmark (CDS-Hard), and Continual Gradual Shifts (CGS).
Key Results
- Accuracy: BECoTTA consistently outperforms strong baselines like CoTTA and ECoTTA. On the CDS-Hard benchmark, it achieved superior Mean IoU, demonstrating its ability to handle complex, real-world shifts.
- Efficiency: The model requires approximately 98% fewer trainable parameters than CoTTA. In classification tasks, it achieved an 86.8% reduction in inference time, making it highly suitable for real-time edge devices.
- Qualitative Performance: Visualizations show that BECoTTA produces cleaner segmentation maps, successfully identifying fine-grained details (like small traffic signs) in challenging conditions where other models fail.
Conclusion
BECoTTA represents a significant step toward practical, real-time continual adaptation. By leveraging input-dependent modular experts, it achieves a superior balance between adaptation and forgetting while maintaining extreme parameter efficiency. Future work will focus on automating the selection of the optimal number of experts and reducing the reliance on the initial warm-up phase.
Summary updated