Abstract
Object detection models trained on daytime data often fail in low-light environments due to significant domain shift. This paper proposes CL EWC, a framework that aligns daytime and synthetic nighttime features using Continual Contrastive Learning. By integrating a Fourier-based image synthesis technique with Elastic Weight Consolidation (EWC), the model learns lighting-invariant features without requiring labeled nighttime datasets or suffering from catastrophic forgetting. Experimental results on the BDD100K dataset demonstrate that CL EWC significantly improves nighttime detection performance over standard baselines and GAN-based methods.
Introduction
State-of-the-art object detectors are highly sensitive to environmental changes. A model optimized for sunny daytime conditions typically experiences a sharp drop in accuracy when deployed at night. While collecting large-scale labeled nighttime datasets is a potential solution, the high cost of manual annotation makes it impractical for many applications.
Existing approaches often rely on image enhancement or Generative Adversarial Networks (GANs) for domain translation. However, these methods frequently introduce noise or "hallucinate" artifacts that can lead to false detections or the disappearance of critical objects. This paper addresses the challenge of extracting lighting-invariant features—core object characteristics that remain consistent across illumination levels—while maintaining the model's fundamental detection capabilities.
Methodology: CL EWC Framework
The proposed CL EWC method operates through a three-stage pipeline designed to bridge the domain gap between day and night.
1. Supervised Burn-in
The process begins with a standard supervised training phase. A YOLOF detector is trained on labeled daytime images to establish a robust baseline for object detection.
2. Unsupervised Continual Contrastive Learning
This stage introduces the core innovations:
- Fourier-based Synthesis: To avoid the risks associated with GANs, the authors use a training-free Fourier Transform method. By swapping the amplitude (style) of a daytime image with that of a nighttime "seed" image while preserving the phase (structure), they create synthetic nighttime images that maintain precise object contours.
- Contrastive Alignment: A Siamese network architecture is employed to force the encoder to produce similar latent representations for both original daytime images and their synthetic nighttime counterparts.
- Elastic Weight Consolidation (EWC): To prevent "catastrophic forgetting," an EWC penalty is applied. This ensures the model retains the detection features learned during the burn-in stage while adapting to the new lighting-invariant feature space.
3. Decoder Update
Finally, the detection heads (decoders) are fine-tuned to ensure compatibility with the updated, domain-robust encoder.
Experimental Results
The framework was evaluated using the BDD100K dataset, utilizing 36,728 labeled daytime images for training and 27,971 unlabeled nighttime images as style seeds.
As shown in the results table, the baseline model trained only on daytime data achieves a mean Average Precision (mAP) of 17.59 when tested on nighttime data (Day2Night). The proposed CL EWC method improves this performance significantly, reaching an mAP of 19.57. This performance approaches that of a model trained directly on labeled nighttime data (19.75 mAP), demonstrating the effectiveness of the unsupervised alignment strategy.
Key Insights and Conclusion
A primary finding of this work is that heavy generative models like GANs are often unnecessary and potentially harmful for domain adaptation in object detection. The simpler Fourier-based synthesis preserves semantic integrity much better. Furthermore, the inclusion of EWC is critical; without it, the model's focus on domain alignment can degrade its ability to distinguish between different object classes.
While CL EWC shows a marked improvement, future work will focus on automating the selection of "seed" images to cover a broader range of adverse conditions, such as rain or fog, and exploring more advanced continual learning strategies to further close the performance gap with fully supervised nighttime models.
Summary updated