Taming Latent Diffusion Models to See in the Dark

Qiang Wen, Yazhou Xing, Qifeng Chen · DOI

Introduction

Modern digital imaging faces a significant hurdle in extreme low-light conditions where the Signal-to-Noise Ratio (SNR) drops toward zero. Traditional Image Signal Processing (ISP) pipelines and even contemporary CNN-based "Neural ISPs" often struggle in these environments, producing images characterized by muddy details, severe color shifts, or unnatural "plastic" smoothing. The fundamental issue is an information deficit: a single low-light RAW frame often lacks sufficient data for perfect scene reconstruction.

Methodology: The LDM-ISP Framework

To address this, the authors introduce LDM-ISP, a novel approach that adapts pre-trained Latent Diffusion Models (LDMs), such as Stable Diffusion, for the neural ISP task. Rather than training a model from scratch, LDM-ISP "tames" the generative power of these models to restore realistic details while maintaining structural fidelity.

The architecture is built upon three core components:

  1. Taming Modules (SFT): To prevent the diffusion model from "forgetting" its general generative knowledge, the researchers keep the base model frozen. They insert lightweight modules using Spatial Feature Transformation (SFT) layers to modulate internal features based on the input RAW data.
  2. Frequency Decomposition (DWT): Recognizing that the UNet and Decoder in LDMs handle different image aspects, the framework uses a 2D Discrete Wavelet Transform (DWT). This splits the RAW input into low-frequency (LL) and high-frequency (LH, HL, HH) sub-bands.
  3. Two-Phase Guidance: The UNet receives the low-frequency sub-band to guide denoising in latent space, ensuring global structure. The Decoder receives both low and high-frequency components to control illumination and inject fine-grained details during the final sRGB upscaling.
Visualizing the taming process: The latent representation is guided to produce a high-fidelity sRGB output, with the difference map highlighting the model's restorative precision.

Key Insights

A pivotal finding of this research is the functional division of labor within diffusion models. The UNet acts as an "architect," defining the layout and global structure, while the Decoder serves as an "interior designer," adding fine textures. By aligning specific frequency components of the RAW data with these natural strengths, LDM-ISP achieves superior restoration. Furthermore, using DWT instead of simple resizing preserves critical high-frequency information that would otherwise be lost before entering the latent space.

Experimental Results

LDM-ISP was evaluated on three major real-world datasets: SID-Sony, ELD-Sony, and LRD. It demonstrated a significant leap in perceptual quality over existing state-of-the-art methods like DNF and MCR.

  • Quantitative Performance: On the SID-Sony benchmark, LDM-ISP achieved an LPIPS score of 0.2749, a substantial improvement over the previous best of 0.3876. It also secured top scores in NIMA (no-reference image quality).
  • Qualitative Superiority: Visual comparisons reveal that LDM-ISP reconstructs sharper text and more natural textures in dark regions, avoiding the blurry artifacts common in competing methods.
  • Downstream Utility: The enhanced images were tested with YOLOv8 for object detection. LDM-ISP's outputs led to significantly higher detection accuracy, proving that the "hallucinated" details are both realistic and semantically meaningful.
Comparison of LDM-ISP (Ours) against competing methods. LDM-ISP provides superior visual clarity and significantly improves downstream object detection performance in extreme low-light.

Discussion and Future Work

While LDM-ISP sets a new standard for low-light restoration, it faces challenges common to diffusion-based approaches. The iterative sampling process (200 steps) results in slow inference speeds, making it unsuitable for real-time applications. Additionally, there is an inherent risk of "hallucination," where the model might generate plausible but inaccurate details in scientific or forensic contexts. Future research will focus on accelerating inference and improving generalization across more diverse environmental conditions.

Summary updated

BibTeX
@inproceedings{wen2025taming,
  author = {Qiang Wen and Yazhou Xing and Qifeng Chen},
  title = {{Taming Latent Diffusion Models to See in the Dark}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2025},
  doi = {10.1109/icra55743.2025.11127546},
}
Figure