NightAdapter: Learning a Frequency Adapter for Generalizable Night-time Scene Segmentation

Qi Bi, Jingjun Yi, Huimin Huang, Hao Zheng, Haolan Zhan, Yawen Huang, Yuexiang Li, Xian Wu, Yefeng ZhengCVPR 2025

TL;DR

NightAdapter is a novel, parameter-efficient fine-tuning scheme that enables Vision Foundation Models (VFMs) to "see" better in the dark. By decomposing image features into different frequency bands, it preserves essential scene structure while neutralizing the chaotic lighting variations typical of night-time environments, leading to state-of-the-art generalization across unseen night-time domains.

The Challenge of Night-time Vision

Semantic segmentation—the task of labeling every pixel in an image (e.g., "road," "pedestrian," "car")—is a cornerstone of autonomous driving. While researchers have largely "solved" this for sunny day-time scenes, night-time remains a frontier of frustration due to the extreme variability of artificial lighting.

The core challenge is the domain gap. Night-time lighting is inconsistent: one street might be bathed in yellow sodium lamps, another in white LEDs, and a third in pitch blackness punctuated by blinding headlights. Models trained on one type of night scene (or on day-time data) often fail when deployed in a new city at night. Existing solutions either require massive amounts of rare, hand-labeled night data or try to "translate" night images into day images, which is computationally expensive and often introduces artifacts.

Overview of the NightAdapter framework for generalizable night-time segmentation.

Methods: Frequency-Domain Adaptation

The authors introduce NightAdapter, which moves the battle from the spatial domain (pixels) to the frequency domain. Using a Discrete Sine Transform (DST), the researchers found that features from a Vision Foundation Model (like DINOv2) could be split into two distinct categories based on their sensitivity to illumination.

The NightAdapter Architecture

Instead of retraining a massive VFM, NightAdapter employs a "side adapter" that processes frequency bands separately, keeping the backbone frozen and training only about 11.5 million parameters.

  • Illumination-Insensitive Band Adaptation (IBA): This component focuses on low-frequency bands that contain the "bones" of the scene—the general shapes and semantic content that remain stable regardless of lighting conditions.
  • Band Randomization (SBR): To prevent the model from over-fitting to a specific "type" of night, the authors intentionally randomize the sensitive frequency bands during training. This forces the model to ignore domain-specific lighting noise.
  • Illumination-Sensitive Band Adaptation (SBA): After randomization, these bands are fine-tuned to ensure the model still captures necessary details, such as object edges, without being distracted by the light source itself.
Detailed architecture of the NightAdapter, highlighting the frequency band decomposition and randomization process.

Experimental Setup and Datasets

The authors evaluated NightAdapter across a rigorous suite of benchmarks to test its ability to generalize to unseen environments:

  • Source Domains: Cityscapes (Day-time) and NightCity (Night-time).
  • Unseen Target Domains: ACDC-Night (AN) for adverse conditions, Dark Zurich (DZ) for high-quality night annotations, Nighttime Driving (ND) for real-world footage, and BDD100K-Night (BN).

Key Results

NightAdapter set new records for generalizable night-time segmentation, demonstrating that Foundation Models contain nearly all the information needed for night vision if properly adapted:

  • Day-to-Night Generalization: When trained on day-time data (Cityscapes) and tested on unseen night scenes (AN), NightAdapter improved the mean Intersection over Union (mIoU) by 13.4% over the previous state-of-the-art (REIN).
  • Night-to-Night Generalization: When moving between different night datasets, it outperformed existing methods by up to 5.7% mIoU.
  • Efficiency: Despite its high performance, it uses significantly fewer trainable parameters (~11.5M) compared to traditional CNN or ViT-based models that often exceed 50M-100M parameters.
  • Qualitative Superiority: Visual results show much cleaner segmentation of sidewalks and roads in low-light areas where previous models saw only "black" or "noise."

Limitations and Future Work

While NightAdapter is a major step forward, its performance is currently tied to the underlying VFM (DINOv2). As foundation models evolve, the adapter will need to be re-validated. Furthermore, while it handles standard night scenes well, future work is needed to explore "extreme" adverse conditions like night-time heavy rain or thick fog, where frequency decomposition might be even more complex. The authors suggest that this frequency-based adapter paradigm could be extended to other tasks beyond segmentation, such as object detection or depth estimation in low-visibility environments.

Summary updated

BibTeX
@inproceedings{bi2025nightadapter,
  author = {Qi Bi and Jingjun Yi and Huimin Huang and Hao Zheng and Haolan Zhan and Yawen Huang and Yuexiang Li and Xian Wu and Yefeng Zheng},
  title = {{NightAdapter: Learning a Frequency Adapter for Generalizable Night-time Scene Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02220},
}
Figure