Abstract
Autonomous driving systems rely heavily on semantic segmentation to navigate safely, yet performance degrades significantly under nighttime conditions due to low visibility and the lack of annotated data. We present LoopDA, an unsupervised domain adaptation (UDA) framework that bridges the daytime-nighttime gap through a novel "self-loop" mechanism. By reconstructing input images from predicted semantic maps, LoopDA forces the segmentation head to learn texture-aware and spatially consistent features. Furthermore, we introduce a Day-Night Agreement (DNA) co-teaching strategy to handle pose shifts in reference image pairs without requiring complex geometric warping. LoopDA achieves state-of-the-art results on the Dark Zurich benchmark, reaching 50.6 mIoU with knowledge distillation.
The Challenge of Nighttime Vision
Semantic segmentation—the task of assigning a class label to every pixel in an image—is a cornerstone of autonomous perception. While models perform well in clear daytime conditions, they struggle at night due to several factors:
- Label Scarcity: Annotating nighttime images is labor-intensive and error-prone due to poor visibility.
- Domain Gap: Drastic changes in illumination, glare, and shadows create a distribution shift that daytime-trained models cannot easily bridge.
- Pose Shifts: Existing datasets often provide daytime "reference" images of the same location. However, because the vehicle's position is rarely identical between captures, standard alignment techniques like warping often fail due to inaccurate depth or pose estimation.
Existing reconstruction-based methods typically align features at the encoder level, leaving the segmentation head—the most critical part of the network—without direct benefit from the reconstruction process.
Methodology: The LoopDA Framework
LoopDA addresses these challenges by establishing a bidirectional connection between images and their semantic labels. The core philosophy is that if a model correctly identifies a region as "vegetation," it should be able to use that information to reconstruct the corresponding visual texture.
1. The Self-Loop Mechanism
The framework utilizes two distinct loops during its initial training phase to align features across domains:
- Inner-loop (Intra-domain): This loop focuses on consistency within a single domain. The model encodes an image, predicts a semantic map, and then "renders" that map back into latent features to reconstruct the original input. This forces the segmentation head to produce maps that are rich enough to represent the scene's underlying texture.
- Outer-loop (Inter-domain): This loop facilitates translation between daytime and nighttime domains. By translating a daytime image into a nighttime version (and vice versa) while maintaining semantic consistency, the model learns domain-agnostic features that are robust to lighting changes.
2. Day-Night Agreement (DNA) Co-teaching
To leverage unlabeled nighttime data effectively, LoopDA employs a self-training strategy using pseudo-labels. To mitigate the issue of pose shifts in reference daytime images, the authors introduced the Day-Night Agreement (DNA) strategy.
Instead of attempting to warp images geometrically, DNA uses a co-teaching approach. The model compares its nighttime prediction with the prediction from the daytime reference image. It only generates high-confidence pseudo-labels for static classes (e.g., roads, buildings, sidewalks) where both predictions agree. This simple yet effective strategy bypasses the need for complex depth estimation while providing a clean supervisory signal.
Experimental Results
LoopDA was evaluated using the Cityscapes dataset as the source domain and Dark Zurich as the target domain. The model demonstrated significant improvements over previous state-of-the-art methods:
- Dark Zurich Benchmark: LoopDA achieved 46.8 mIoU, outperforming the previous leader, DANNet, by 1.6 points.
- Knowledge Distillation: When augmented with a distillation stage (LoopDA‡), the performance reached 50.6 mIoU, setting a new standard for the field.
- Robustness: Qualitative analysis shows that LoopDA is particularly effective at preserving the boundaries of challenging categories like "vegetation" and "sky," which are frequently lost in the dark by competing models.
Conclusion and Future Directions
LoopDA demonstrates that treating segmentation as a component of an image reconstruction loop significantly enhances feature learning for unsupervised domain adaptation. By bypassing complex geometric alignment in favor of the DNA co-teaching strategy, the model provides a robust and efficient solution for nighttime perception.
Future work may explore integrating more advanced pseudo-labeling techniques or extending the DNA concept to other multi-modal tasks, such as day-to-night image retrieval and 3D scene reconstruction.
Summary updated