Abstract
Dynamically Instance-Guided Adaptation (DIGA) is a novel "backward-free" framework designed for test-time domain adaptive semantic segmentation. Unlike traditional optimization-based methods that rely on computationally expensive and potentially unstable backpropagation, DIGA utilizes non-parametric distribution and semantic modules to adapt models on the fly. By leveraging instance-specific statistics and prototypes, DIGA achieves state-of-the-art accuracy while significantly reducing latency and memory overhead, effectively addressing the "trilemma" of efficiency, effectiveness, and stability in continual adaptation scenarios.
Introduction: The Challenge of Test-Time Adaptation
Deep learning models for semantic segmentation often struggle with domain shift—the performance gap between training (source) and deployment (target) environments. For instance, a model trained on sunny synthetic data often fails when encountering rainy or snowy real-world conditions. Test-Time Domain Adaptation (TTDA) seeks to bridge this gap by adapting models during inference.
However, existing TTDA methods often fall into a "trilemma" involving efficiency, effectiveness, and stability. Optimization-based methods are slow due to the requirement of backpropagation, while simpler Batch Normalization (BN) based updates often fail to capture semantic nuances. Furthermore, in "continual" adaptation settings where environment conditions keep changing, gradient-based updates can lead to error accumulation and catastrophic forgetting of the original source knowledge.
Methodology: The DIGA Framework
DIGA introduces a backward-free adaptation paradigm that operates entirely during the forward pass. It consists of two primary plug-in modules: the Distribution Adaptation Module (DAM) and the Semantic Adaptation Module (SAM).
Distribution Adaptation Module (DAM)
Standard BN layers rely on fixed source statistics (mean and variance). DAM dynamically interpolates these source statistics with the statistics of the current input instance. This allows the model to immediately adjust to the global style (e.g., lighting, weather) of a specific image without altering the underlying network weights, preserving foundational knowledge while adapting to the immediate context.
Semantic Adaptation Module (SAM)
To handle category-specific domain shifts, SAM employs a non-parametric prototype-based approach. It identifies high-confidence pixels in the current instance to generate "instance-aware prototypes" for each class. These are combined with historical prototypes maintained via a moving average across the data stream. A dynamic classifier then performs pixel-wise classification by comparing features to these prototypes, and the final output is a weighted fusion of the original model's prediction and this dynamic, prototype-based prediction.
Experimental Setup
The framework was evaluated on challenging sim-to-real benchmarks using GTA5 and Synthia as source domains. Target domains included Cityscapes, BDD-100K, Mapillary, IDD (Indian Driving Dataset), and Cross-City. To test long-term stability, a continual adaptation scenario was established with a sequential data stream moving through BDD → CC → CS → IDD → MA.
Results and Analysis
DIGA demonstrates superior performance across all metrics, effectively solving the TTDA trilemma:
- Superior Accuracy: On the GTA5-to-Cityscapes benchmark, DIGA achieved a state-of-the-art mIoU of 45.81%, significantly outperforming the source model (35.87%) and previous backward-free methods like Momentum (38.12%).
- High Efficiency: DIGA is optimized for real-time applications, processing images in approximately 153ms on an NVIDIA RTX 3090, nearly 2.7x faster than the optimization-based TENT method (411ms).
- Low Memory Footprint: It requires only 4.0GB of GPU memory, whereas optimization-based methods like EATA can require over 15GB, making DIGA suitable for edge devices in autonomous vehicles.
- Robustness to Change: In continual scenarios, DIGA remains stable and immune to catastrophic forgetting because the model weights are never actually modified; only the interpretation of features is adjusted.
Conclusion and Future Work
DIGA offers a robust, efficient, and stable solution for test-time domain adaptation in semantic segmentation. By eliminating the need for backpropagation and leveraging instance-guided modules, it provides a reliable path for deploying segmentation models in dynamic real-world environments. Future research will explore adaptive weighting for module fusion and extending this philosophy to other tasks such as object detection.
Summary updated