TL;DR
Time2General is a novel framework for domain-generalized video semantic segmentation that eliminates the need for brittle frame-to-frame correspondence matching. By leveraging learnable "Stability Queries" as persistent semantic anchors and a Spatio-Temporal Memory Decoder, it achieves state-of-the-art cross-domain accuracy and temporal stability under severe weather and frame-rate shifts, all while running at a real-time 18 FPS.
What Problem Does This Paper Address?
Deploying video semantic segmentation models to real-world autonomous driving systems requires them to be robust against two major challenges: domain shift (e.g., transitioning from sunny weather to heavy snow or fog) and temporal-sampling shift (variations in camera frame rates across different vehicle setups).
Existing video segmentation methods typically rely on explicit frame-to-frame propagation (like optical flow) or fixed temporal strides to maintain consistency. However, when a model encounters an unseen domain—such as a sudden blizzard—optical flow estimation degrades rapidly. This causes alignment errors to accumulate over time, leading to severe frame-to-frame flickering, drifting object boundaries, and rapid label switching. The authors address this by proposing a method that achieves temporal consistency across domains without relying on explicit, error-prone pixel matching.
Methods
Time2General introduces a correspondence-free architecture designed to capture robust spatiotemporal representations:
- Frozen Foundation Backbone: To prevent overfitting to the training domain, the framework freezes a DINOv2 backbone, preserving its generalized visual priors.
- Stability Queries: The authors introduce a compact set of learnable queries shared across all frames. These queries act as temporally persistent semantic anchors and integrate multi-modal generalization cues, combining structural features from DINOv2, geometric priors from a frozen DepthAnything model, and text-aligned semantics from CLIP.
- Spatio-Temporal Memory Decoder: Instead of tracking pixels sequentially, multi-scale tokens from a clip of $T$ frames are enriched with temporal and scale embeddings and concatenated into a joint memory space. The Stability Queries use deformable attention to decode per-frame masks directly from this global clip context.
- Masked Temporal Consistency (MTC) Loss: To suppress flicker, this novel loss penalizes abrupt prediction changes specifically in label-stable regions across multiple temporal strides. It uses a trimmed mean to filter out noisy boundary pixels that could otherwise bias optimization.
- Randomized Temporal-Stride Sampling: During training, the frame rate (stride) of input clips is randomized to expose the model to diverse temporal gaps, making it highly resilient to sampling rate changes at test time.
Datasets
The model's generalization capability was evaluated using a single-source training protocol across several prominent driving datasets:
- Source (Training) Domains: KITTI-360 (long sequences, dense annotations), ApolloScape (long sequences), and CamVid (short clips, sparser coverage).
- Target (Unseen Testing) Domains: Cityscapes-sequence and Cityscapes-sequence-Corrupted (Cityscapes-C), which applies digital corruptions simulating adverse weather conditions (Fog, Frost, Snow, Spatter).
All datasets were mapped to a unified 15-class label space for fair evaluation.
Key Insights and Ideas
- Ditching Correspondence for Generalization: Explicit pixel matching or optical flow is inherently brittle under severe domain shifts. Aggregating context globally via a joint memory space allows the network to maintain temporal consistency even when visibility is heavily degraded.
- Regularization Boosts Accuracy: Interestingly, the Masked Temporal Consistency loss doesn't just smooth out video predictions; it actively improves cross-domain generalization accuracy (mIoU). This suggests that enforcing temporal stability forces the model to learn more robust, domain-invariant features.
- Query-Based Fusion Mitigates Overfitting: By keeping heavy vision foundation models frozen and only training a lightweight query interface, the model successfully absorbs geometric and textual priors without washing away their inherent zero-shot generalization capabilities.
Key Results
Time2General significantly outperforms prior image-based Domain Generalized Semantic Segmentation (DGSS) and Video Semantic Segmentation (VSS) baselines:
- Accuracy & Stability Gains: When trained on KITTI-360 and tested on the unseen, corrupted Cityscapes-Snow dataset, Time2General improved mIoU by 3.62% and video consistency (mVC16) by 6.21% over the best prior DGSS method. Compared to specialized video baselines, the stability improvements are even more massive (up to +51.00% mVC16).
- Real-Time Efficiency: Thanks to its lightweight decoder design on top of a frozen backbone, Time2General processes videos at 18.15 FPS on an NVIDIA RTX PRO A6000. This is roughly 3x to 5x faster than competing DGSS methods (which hover around 3.85–6.25 FPS).
Limitations and Future Work
While Time2General delivers excellent performance and efficiency by processing videos clip-by-clip, the authors note that it still faces challenges when handling true streaming videos. Because it relies on clip-level batching rather than a causal, frame-by-frame online update mechanism, adapting the architecture to strict online streaming settings remains an open direction for future work.
Summary updated