# Deep Retinex Decomposition for Low-Light Enhancement

Learned Retinex decomposition brightens low-light images without hand-crafted constraints

Chen Wei, Wenjing Wang, Wenhan Yang, Jiaying Liu · arXiv · 2018-8-14

- **Problem** Retinex-based low-light enhancement relies on hand-crafted constraints and parameters for a highly ill-posed decomposition. These constraints are hard to fit across varied scenes.
- **Method** Retinex-Net learns the decomposition from paired low and normal-light images instead of hand-crafted rules. Decom-Net splits each image into reflectance and illumination, Enhance-Net brightens the illumination, and reflectance is denoised before recombining.
- **Results** The authors compare Retinex-Net visually with DeHz, NPE, SRIE and LIME on LIME, MEF and DICM images. The paper reports no quantitative metric for these comparisons.

## Why hand-crafted Retinex decomposition is hard to scale

Retinex theory treats an observed color image as a reflectance component combined with an illumination component, and several low-light enhancement methods are built on that split. Such methods usually depend on hand-crafted constraints and parameters for a decomposition that is highly ill-posed, so the result depends on how well those constraints fit each scene.

The authors argue that these constraints are difficult to design for varied scenes, and that the hand-adjusted manipulation of the illumination map makes the methods depend on careful parameter tuning. Learned approaches exist in low-level restoration, but the LLNet work of Lore et al. uses a stacked sparse denoising auto-encoder without taking the nature of low-light pictures into account.

The study asks whether the decomposition can instead be learned from data, using paired low/normal-light images, and whether it can be trained jointly with the lightness adjustment.

## Decomposition model and training losses

The model starts from \\(S = R \\circ I\\), where \\(R\\) is reflectance, \\(I\\) is illumination and \\(\\circ\\) is element-wise multiplication. Reflectance is the part of a scene that should stay consistent under any lighting, while illumination carries the lightness variation that is poor on low-light images. Everything in the decomposition rests on this assumption.

Decom-Net first extracts features with a 3×3 convolutional layer, then several 3×3 convolutional layers with ReLU map the RGB image into the two components. A final 3×3 convolutional layer projects R and I, and a sigmoid keeps both in the range from 0 to 1. Each training pair is decomposed separately: the low-light image yields \\(R\_{low}\\) and \\(I\_{low}\\), and the normal-light image yields \\(R\_{normal}\\) and \\(I\_{normal}\\).

At test time only a low-light image is given.

The total loss is \\(\\mathcal{L} = \\mathcal{L}\_{recon} + \\lambda\_{ir}\\mathcal{L}\_{ir} + \\lambda\_{is}\\mathcal{L}\_{is}\\), where the two coefficients balance reflectance consistency against illumination smoothness. The reconstruction term \\(\\mathcal{L}\_{recon} = \\sum\_{i}\\sum\_{j}\\lambda\_{ij}\\\|R\_i \\circ I\_j - S\_j\\\|\_1\\) sums over the low and normal indices, so the reflectance of one image combined with the illumination of either image should rebuild the image it is paired with.

In the experiments, \\(\\lambda\_{ij}\\) is 0.001 when \\(i \\neq j\\) and 1 when \\(i = j\\). The invariable reflectance term \\(\\mathcal{L}\_{ir} = \\\|R\_{low} - R\_{normal}\\\|\_1\\) pushes the reflectance of a dark image toward that of its bright counterpart. No ground-truth reflectance or illumination is supplied; the network receives only the reflectance consistency and the illumination smoothness, written as loss functions.

## Structure-aware smoothness of the illumination

Total variation minimization penalizes the gradient of the whole image and is a common smoothness prior in restoration. Used directly as a loss, it lowers gradients everywhere, so strong structures and sharp lightness changes are smoothed as well, which blurs the illumination and leaves dark edges on the reflectance.

The smoothness term is \\(\\mathcal{L}\_{is} = \\sum\_{i} \\\|\\nabla I\_i \\circ \\exp(-\\lambda\_g \\nabla R\_i)\\\|\\), where \\(\\nabla\\) includes horizontal and vertical gradients and \\(\\lambda\_g\\) sets how strongly structure is respected. The weight is designed to loosen smoothing where the reflectance gradient is steep, which is where image structures lie and where the illumination should be discontinuous.

LIME also uses a weighted total variation constraint, but it weights by an initial illumination map, the per-pixel maximum over the R, G and B channels. Here the weight is the reflectance itself. Because Decom-Net is trained on a large dataset, the illumination and the reflectance weight are updated together during training.

## Enhance-Net and multi-scale illumination adjustment

Enhance-Net is an encoder-decoder. Down-sampling blocks use a stride-2 convolution and ReLU, so the input shrinks to a scale where large-area illumination is visible. Up-sampling blocks use a resize-convolutional layer, made of nearest-neighbor interpolation, a stride-1 convolution and ReLU, which the authors chose to avoid checkerboard artifacts.

Multi-scale concatenation takes the C-channel feature maps of M progressively up-sampling blocks, resizes them to the final scale by nearest-neighbor interpolation and concatenates them into a C×M channel map. A 1×1 convolution reduces that map to C channels, and a 3×3 convolution reconstructs the illumination map. The authors describe the purpose as keeping global illumination consistent while tuning local illumination distributions.

The Enhance-Net reconstruction loss is \\(\\mathcal{L}\_{recon} = \\\|R\_{low} \\circ \\hat{I} - S\_{normal}\\\|\_1\\), so the adjusted illumination \\(\\hat{I}\\) multiplied by the low-light reflectance should reproduce the normal-light image. Its smoothness term is the same as Eq. (5), except that \\(\\hat{I}\\) is weighted by the gradient of \\(R\_{low}\\).

## Denoising the reflectance and recombining the layers

A smooth illumination map leaves the detail on the reflectance, and noise is kept there with it. Since noise in dark regions is amplified according to lightness during decomposition, the authors use an illumination-related denoising method on the reflectance before reconstruction. The adjusted illumination and the reflectance are combined by element-wise multiplication to give the enhanced output, and amplified noise is removed from the reflectance when needed.

BM3D is the denoiser used in Retinex-Net, chosen for its overall performance. Because noise is unevenly amplified on the reflectance, the authors apply an illumination-relative strategy, which is described in the supplementary material.

## LOL dataset and synthetic pairs

The authors state that public datasets contained no paired low/normal-light images from real scenes, and that HDR sets such as MEF are small and cannot train a deep network.

LOL contains 500 low/normal-light pairs captured by changing exposure time and ISO while other camera settings stay fixed, across scenes such as houses, campuses, clubs and streets. Camera shake, object movement and lightness changes can misalign the pairs, so a three-step alignment method inspired by \[1\] is applied, with details in the supplementary file.

The synthetic pairs use 270 low-light images from MEF, NPE, LIME, DICM, VV and Fusion, whose Y-channel histograms in YCbCr were computed, together with 1000 RAISE raw images used as normal-light sources. Adobe Lightroom renders the raw images into low-light versions, and its parameters were varied until the Y-channel histogram of the synthetic images matched that of the collected low-light images.

The fitted histogram curves show the synthetic distribution matching the low-light one, and the authors take this as evidence that the synthetic images reproduce real low-light illumination. The real pairs capture real degradation, while the synthetic pairs mainly add variety of scenes and objects for data augmentation.

## Training schedule and network sizes

Decom-Net has five convolutional layers, and Enhance-Net has three down-sampling blocks and three up-sampling blocks, which the authors describe as a light-weight network.

Decom-Net and Enhance-Net are trained first, and the whole network is then fine-tuned end to end with stochastic gradient descent and back-propagation, using a batch size of 16 and 96×96 patches. The coefficients \\(\\lambda\_{ir}\\), \\(\\lambda\_{is}\\) and \\(\\lambda\_g\\) are set to 0.001, 0.1 and 10.

## Decomposition on a LOL evaluation pair

On a Bookshelf pair from the LOL evaluation set, the reflectance of the low-light image visually matches that of the normal-light image, apart from noise amplified in dark regions.

Compared with the LIME decomposition, the authors judge that more illumination information stays in LIME's reflectance, for example the shadow on the shelf.

The illumination maps portray lightness and shadow, and the authors read the result as showing consistent reflectance in both textured and smooth regions.

## Visual comparison on natural images

Evaluation uses real-scene images from LIME, with 10 testing images, MEF, with 17 image sequences at multiple exposure levels, and DICM, with 69 images from commercial digital cameras. Retinex-Net is compared with DeHz, NPE, SRIE and LIME, and these comparisons are visual.

On three natural images, Street, Still lives and Room, the authors report that buried objects are brightened without overexposure, which they attribute to the learned decomposition and the multi-scale illumination map. Against DeHz, the houses in Street show no dark edges, which the authors attribute to the weighted total variation loss term.

Further results are in the supplementary file.

## Joint denoising on the Wardrobe example

This comparison uses the Wardrobe example from the LOL dataset and sets Retinex-Net, with BM3D on the reflectance, against LIME with denoising post-processing and against JED, a joint low-light enhancement and denoising method.

This is a single visual example, and no metric is given for it.

## Limits of the evidence

The reported comparisons are visual, and the provided text gives no quantitative score for the decomposition, enhancement or denoising results. The joint denoising comparison is one Wardrobe example, and the natural-image comparison shows three images in the main text, with more in the supplementary file.

Noise in dark regions is amplified during decomposition and remains on the reflectance of real low-light images, which is why a denoising step is used, and its effect is reported only visually.

## Paper info

- **Authors**: Chen Wei, Wenjing Wang, Wenhan Yang, Jiaying Liu
- **Venue**: arXiv · Preprint
- **First published**: 2018-8-14
- **Added**: 2026-11-12
- **Updated**: 2018-8-14
- **Version**: v1
- **arXiv**: 1808.04560
- **Category**: cs.CV
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1808.04560v1) · [PDF ↗](https://arxiv.org/pdf/1808.04560v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Chen Wei, Wenjing Wang, Wenhan Yang, Jiaying Liu (2018). Deep Retinex Decomposition for Low-Light Enhancement. arXiv:1808.04560v1. https://arxiv.org/abs/1808.04560v1

**BibTeX**

```
@misc{wei2018deep,
  title = {{Deep Retinex Decomposition for Low-Light Enhancement}},
  author = {Chen Wei and Wenjing Wang and Wenhan Yang and Jiaying Liu},
  year = {2018},
  eprint = {1808.04560},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1808.04560v1}
}
```

## Related papers

- [Kindling the Darkness: A Practical Low-light Image Enhancer](https://refivu.com/en/papers/e0950d09-0e10-4409-aac5-8ad757e499cc-kindling-the-darkness-a-practical-low-light-image.md)
- [Zero-Reference Deep Curve Estimation for Low-Light Image Enhancement](https://refivu.com/en/papers/674a173b-b03f-4f14-89ec-10bec15a7629-zero-reference-deep-curve-estimation-for-low-light.md)
- [LLNet: A Deep Autoencoder Approach to Natural Low-light Image Enhancement](https://refivu.com/en/papers/1b58b4f0-48b5-40db-be28-ecd8cf270c6f-llnet-a-deep-autoencoder-approach-to-natural-low.md)
- [Explainable Artificial Intelligence (XAI): Concepts, Taxonomies, Opportunities and Challenges toward Responsible AI](https://refivu.com/en/papers/3f686a20-03db-4642-80bb-f85fafc1d04f-explainable-artificial-intelligence-xai-concepts-taxonomies.md)
- [1D Convolutional Neural Networks and Applications: A Survey](https://refivu.com/en/papers/03cdd780-b48e-4098-95e8-ba82fd387ae9-1d-convolutional-neural-networks-and-applications-a-survey.md)
- [A Review on Deep Learning Techniques Applied to Semantic Segmentation](https://refivu.com/en/papers/8ae0e955-3ed5-48a2-b638-f9e5d7aa334e-a-review-on-deep-learning-techniques-applied-to.md)

## Other paper commentary

- [VisualBERT: A Simple and Performant Baseline for Vision and Language](https://refivu.com/en/papers/146a7bb6-3ad9-4579-98f2-9a180a30f10a-visualbert-a-simple-and-performant-baseline-for-vision.md)
- [Towards Robust Monocular Depth Estimation: Mixing Datasets for Zero-shot Cross-dataset Transfer](https://refivu.com/en/papers/8f3933a0-30e6-41a0-8d25-597109ee5170-towards-robust-monocular-depth-estimation-mixing-datasets.md)
- [Simple Baselines for Human Pose Estimation and Tracking](https://refivu.com/en/papers/1bfa3990-5650-4254-9d74-6addde0897ee-simple-baselines-for-human-pose-estimation-and-tracking.md)
- [ResUNet-a: a deep learning framework for semantic segmentation of remotely sensed data](https://refivu.com/en/papers/e379f4f3-b44b-4709-bcbb-3cde82b7fd42-resunet-a-a-deep-learning-framework-for-semantic.md)
- [Center-based 3D Object Detection and Tracking](https://refivu.com/en/papers/b992611c-4688-4646-b792-a65eff7bf099-center-based-3d-object-detection-and-tracking.md)
- [An overview of deep learning in medical imaging focusing on MRI](https://refivu.com/en/papers/32ea4d5e-6c76-4049-bb47-28e2173246b5-an-overview-of-deep-learning-in-medical-imaging.md)
- [Mip-NeRF 360: Unbounded Anti-Aliased Neural Radiance Fields](https://refivu.com/en/papers/fc238283-69fa-4599-9425-b610ae8df74c-mip-nerf-360-unbounded-anti-aliased-neural-radiance.md)
- [Diffusion Models: A Comprehensive Survey of Methods and Applications](https://refivu.com/en/papers/88553d75-09f1-48d0-a32d-bbb93fe0b6e8-diffusion-models-a-comprehensive-survey-of-methods-and.md)
- [UNITER: UNiversal Image-TExt Representation Learning](https://refivu.com/en/papers/c2b71a61-22ad-48f9-af71-922539fd9eab-uniter-universal-image-text-representation-learning.md)
- [CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation](https://refivu.com/en/papers/eb07d47d-3eb5-4fba-ba4e-7d3bd33335aa-codet5-identifier-aware-unified-pre-trained-encoder-decoder.md)
- [DreamFusion: Text-to-3D using 2D Diffusion](https://refivu.com/en/papers/8748788c-c1b0-47b9-a624-78c1f27630e6-dreamfusion-text-to-3d-using-2d-diffusion.md)
- [Two-Stream Adaptive Graph Convolutional Networks for Skeleton-Based Action Recognition](https://refivu.com/en/papers/34b4bb2a-43de-4874-9031-6b02160d4003-two-stream-adaptive-graph-convolutional-networks-for.md)

## Terms in this paper

- [Stochastic Gradient Descent](https://refivu.com/en/terms/a49650824022-stochastic-gradient-descent)
- [CNN](https://refivu.com/en/terms/06880f5198e6-cnn)
- [skip connections](https://refivu.com/en/terms/8c8a0a5eff69-skip-connections)
- [LIME](https://refivu.com/en/terms/b95eeaba5517-lime)
- [low-light image enhancement](https://refivu.com/en/terms/649c6c8fdbec-low-light-image-enhancement)
- [BM3D](https://refivu.com/en/terms/62462101292d-bm3d)
- [illumination](https://refivu.com/en/terms/fdc66ac84547-illumination)
- [reflectance](https://refivu.com/en/terms/4ca1735c6e1b-reflectance)
- [Retinex theory](https://refivu.com/en/terms/417dceac9150-retinex-theory)
- [SRIE](https://refivu.com/en/terms/14256d2d7214-srie)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/f4201ae3-b544-42f6-81cc-c789d2e0e575-deep-retinex-decomposition-for-low-light-enhancement)
