CLE Diffusion: Controllable Light Enhancement Diffusion Model

Yuyang Yin, Dejia Xu, Chuangchuang Tan, Ping Liu, Yao Zhao, Yunchao Wei · DOI

TL;DR

This paper introduces CLE Diffusion, a novel diffusion model for low-light image enhancement that offers unprecedented user control over both global brightness levels and specific regions of interest. By leveraging an illumination embedding and integrating with the Segment-Anything Model (SAM), CLE Diffusion allows users to intuitively adjust image brightness and selectively enhance areas, overcoming the limitations of existing methods that offer only homogeneous, pre-defined enhancements.

What Problem Does This Paper Address?

Low-light photography is a common challenge, resulting in images that are often visually unappealing and difficult for downstream tasks. While numerous methods exist to enhance these images, they typically apply a uniform brightness adjustment to the entire image, often to a fixed, pre-determined level. This approach lacks flexibility and fails to account for the subjective nature of "good" lighting or the need for localized adjustments. Users often desire to control not only the overall brightness but also to selectively enhance specific objects or regions within an image, a capability largely missing from current solutions. Furthermore, existing methods often struggle with the ill-posed nature of low-light enhancement, leading to artifacts, color distortion, and inconsistent results, especially when dealing with diverse lighting conditions or imprecise user inputs.

Methods

The core of CLE Diffusion is a conditional diffusion model adapted for image enhancement. Instead of generating images from scratch, it learns to denoise a noisy version of a low-light image to produce a well-lit output.

  • Conditional Diffusion: The model is conditioned on the input low-light image (x) and a learned illumination embedding (λ) that dictates the desired global brightness level. This allows for fine-grained control over the enhancement.
  • Illumination Embedding: A novel "Brightness Control Module" is introduced. It takes a continuous brightness level (derived from the average pixel intensity of normal-light images) and encodes it into a d-dimensional embedding. This embedding is then used to modulate the U-Net architecture of the diffusion model via FiLM layers, enabling controllable enhancement.
  • Domain-Specific Priors: To improve training stability and performance, the model incorporates two additional inputs:
  • Color Map (C(x)): Normalizes the color channels of the input image to mitigate color distortion.
  • Signal-to-Noise Ratio (SNR) Map (S(x)): Highlights regions with low signal-to-noise, guiding the model to focus on areas that need enhancement.
  • Region Controllability (Mask-CLE Diffusion): For localized enhancement, the framework integrates with the Segment-Anything Model (SAM). Users can provide simple prompts (points or boxes) to SAM, which generates masks for desired regions of interest. These masks are then fed into the diffusion model, allowing for targeted brightness adjustments within those specific areas.
  • Auxiliary Loss Functions: Beyond the standard diffusion loss (L_simple), the model employs several auxiliary losses to improve output quality:
  • Brightness Loss (L_br): Ensures the enhanced image matches the target brightness level.
  • Angular Color Loss (L_col): Preserves color consistency and reduces distortion.
  • SSIM Loss (L_ssim): Improves structural similarity to the ground truth.
  • Perceptual Loss (L_lpips): Leverages deep features to capture perceptual quality.

Datasets

  • LOL dataset [6]: Used for training and evaluation. It contains paired low-light and normal-light images.
  • MIT-Adobe FiveK dataset [3]: A larger dataset used for training and evaluation, consisting of images processed by multiple experts.
  • VE-LOL dataset [30]: Mentioned in the context of visual comparisons for real-world images.

The paper does not introduce a new benchmark dataset.

Key Insights and Ideas

  • Diffusion Models for Controllable Enhancement: The paper demonstrates that diffusion models, known for their generative capabilities, can be effectively adapted for controllable image enhancement tasks, offering a powerful new paradigm beyond traditional GANs or CNNs.
  • Continuous Brightness Control: By using an illumination embedding derived from average pixel intensity, the model achieves seamless and consistent control over global brightness, allowing users to dial in their desired level without being restricted to discrete steps.
  • Intuitive Region Control with SAM: The integration of SAM significantly simplifies the process of specifying regions for enhancement. Users can now achieve precise localized adjustments with simple clicks, making the tool much more accessible and user-friendly.
  • Importance of Domain-Specific Priors: The inclusion of color maps and SNR maps as conditioning inputs proves crucial for stabilizing training and improving the quality of enhanced images, addressing common issues like color distortion and noise.
  • Subjectivity of "Good" Lighting: The work implicitly acknowledges that "well-lit" is subjective. By allowing users to specify brightness levels, the model caters to individual preferences rather than relying on a single, dataset-defined ideal.

Key Results

  • Quantitative Performance: CLE Diffusion achieves state-of-the-art or highly competitive results on both the LOL and MIT-Adobe FiveK datasets across various metrics, including PSNR, SSIM, LPIPS, and a novel metric called LI-LPIPS. For instance, on MIT-Adobe FiveK, it achieves the highest PSNR (29.81 dB) and a strong SSIM (0.97).
  • Qualitative Improvements: Visual comparisons show that CLE Diffusion produces images with fewer artifacts, better detail preservation, and more natural color compared to existing methods. It effectively handles challenging low-light scenarios.
  • Versatile Controllability: The model demonstrates impressive global brightness control, allowing users to sample images with varying degrees of brightness, even exceeding the ground truth. The region-controllable enhancement is also highly effective, blending seamlessly with the surrounding environment.
  • Ablation Studies: Experiments confirm the effectiveness of each component, including the auxiliary loss functions (brightness, color, SSIM, LPIPS) and the conditioning inputs (color map, SNR map), all of which contribute to improved performance.

Limitations and Future Work

  • Slow Inference Speed: Like most diffusion models, CLE Diffusion suffers from slow inference due to the iterative sampling process.
  • Challenging Scenarios: The paper notes that complex lighting conditions and blurry scenes are areas that require further exploration.
  • Future Directions: The authors suggest extending the framework to more general scenarios and exploring ways to improve inference speed. They also mention that for very fine details (e.g., human hair), SAM masks might be coarse, and further refinement might be needed for downstream tasks.

Summary updated

BibTeX
@inproceedings{yin2023cle,
  author = {Yuyang Yin and Dejia Xu and Chuangchuang Tan and Ping Liu and Yao Zhao and Yunchao Wei},
  title = {{CLE Diffusion: Controllable Light Enhancement Diffusion Model}},
  booktitle = {ACM Multimedia},
  year = {2023},
  doi = {10.1145/3581783.3612145},
}
Figure