LDM-ISP: Enhancing Neural ISP for Low Light with Latent Diffusion Models

Qiang Wen, Zhefan Rao, Yazhou Xing, Qifeng Chen

TL;DR

This paper introduces LDM-ISP, a novel method for enhancing low-light RAW images by leveraging the powerful generative priors of pre-trained latent diffusion models (like Stable Diffusion). By introducing lightweight "taming" modules, LDM-ISP effectively adapts these models for the specific task of neural image signal processing (ISP) in low-light conditions, achieving state-of-the-art results without requiring extensive new training data.

What Problem Does This Paper Address?

Modern digital cameras struggle to capture clear, well-exposed sRGB images in low-light environments. Standard techniques like increasing ISO or exposure time lead to significant noise and loss of detail. While deep learning has shown promise in image signal processing (ISP), existing methods often rely on limited paired low-light RAW and sRGB data, leading to issues with detail deficiency and color inaccuracies, especially in extremely dark scenes. Furthermore, learning an entire ISP pipeline from scratch is computationally intensive and requires vast datasets. This paper aims to bridge this gap by utilizing the rich generative capabilities of pre-trained diffusion models for low-light ISP.

Methods

The core of LDM-ISP is the adaptation of a pre-trained latent diffusion model (LDM), specifically Stable Diffusion, for the RAW image domain. Instead of fine-tuning the entire LDM, which can lead to catastrophic forgetting of its learned priors, LDM-ISP introduces a set of lightweight "taming modules." These modules are strategically inserted into the UNet and decoder of the LDM.

Key methodological innovations include:

  • Spatial Feature Transformation (SFT) Layers: These are used within the taming modules to modulate the intermediate features of the UNet and decoder. This allows the RAW image information to guide the diffusion process.
  • Decomposition into Low- and High-Frequency Components: The authors observe that the UNet in LDMs primarily handles structural (low-frequency) content, while the decoder excels at detail (high-frequency) generation. To exploit this, they employ 2D discrete wavelet transforms (DWT) to separate the input RAW image into low-frequency (LL) and high-frequency (LH, HL, HH) sub-bands.
  • Targeted Taming:
    • The LL sub-band is used to guide the UNet's denoising and structural generation process.
  • Both LL and high-frequency sub-bands are used to guide the decoder's upsampling and detail enhancement, ensuring accurate illumination and precise details.
  • Frozen Pre-trained Model: The pre-trained Stable Diffusion model's parameters are kept frozen, and only the newly introduced taming modules are trained. This preserves the model's powerful generative priors.

Datasets

The paper evaluates LDM-ISP on three widely-used real-world datasets for low-light image enhancement:

  • SID-Sony [1]: A well-known dataset for low-light enhancement.
  • ELD-Sony [4]: Another dataset focusing on low-light RAW images.
  • LRD [3]: A dataset for low-light RAW image enhancement.

The training and testing splits follow conventions established by previous works. No new datasets were introduced.

Key Insights and Ideas

  • Generative Priors for ISP: The paper demonstrates that pre-trained diffusion models, designed for general image generation, possess powerful "generative priors" that can be effectively repurposed for specific image processing tasks like low-light ISP. This is a significant departure from traditional ISP methods that learn from scratch.
  • UNet for Structure, Decoder for Detail: The observation that different components of the LDM have distinct strengths (UNet for structure, decoder for detail) is crucial. This insight directly motivates the DWT-based decomposition and targeted taming strategy.
  • Lightweight Adaptation is Sufficient: The success of LDM-ISP highlights that fine-tuning the entire diffusion model is not necessary. Injecting small, trainable modules can effectively steer the model for a new task, preserving its original capabilities while adapting it.
  • DWT for Feature Alignment and Separation: Using DWT not only extracts relevant frequency information but also helps align the input to the latent space of the UNet, offering a more effective preprocessing step than simple resizing.

Key Results

  • State-of-the-Art Performance: LDM-ISP achieves state-of-the-art results on challenging low-light datasets, outperforming existing RAW-to-sRGB and RAW-to-RAW methods in quantitative metrics like LPIPS and NIMA.
  • Quantitative Improvements: The paper reports significant improvements in LPIPS (e.g., 0.1127 and 0.0023 improvements on SID-Sony and ELD-Sony respectively) and NIMA, indicating superior perceptual quality.
  • Qualitative Superiority: Visual comparisons show LDM-ISP produces significantly clearer, more detailed, and color-accurate images, especially in extremely dark and noisy regions, compared to baselines. For instance, it excels at reconstructing text that is obscured by noise in other methods.
  • Ablation Study Success: An ablation study confirms the effectiveness of the DWT strategy and the importance of taming both the UNet and the decoder for optimal results.

Limitations and Future Work

  • Computational Cost: While the taming modules are lightweight, the inference still relies on a diffusion model, which can be computationally intensive. The paper mentions using 200 timesteps for DDIM sampling during inference.
  • RAW Domain Adaptation: While effective, the adaptation to the RAW domain is achieved through taming modules. Further research could explore more direct ways to integrate RAW sensor characteristics into diffusion models.
  • Generalization to Diverse RAW Formats: The current work focuses on specific datasets. Future work could investigate the generalization of LDM-ISP to a wider variety of RAW sensor characteristics and noise profiles.
  • Real-time Performance: Achieving real-time performance for LDM-ISP might require further optimization or exploration of faster diffusion sampling techniques.

Summary updated

BibTeX
@inproceedings{wen2025ldm,
  author = {Qiang Wen and Zhefan Rao and Yazhou Xing and Qifeng Chen},
  title = {{LDM-ISP: Enhancing Neural ISP for Low Light with Latent Diffusion Models}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2025},
  doi = {10.1109/icra55743.2025.11127546},
}
Figure