Paper commentary
EnlightenGAN: Deep Light Enhancement without Paired Supervision
EnlightenGAN brightens dark photos without needing paired training images
- Problem Low-light enhancement models usually need matched dark and normal-light photos of the same scene. Those pairs are very hard to capture, and synthetic pairs often look unlike real night photos.
- Method EnlightenGAN is a single-path GAN trained on unpaired images. Instead of a cycle loss, it uses a global-local discriminator and a self feature preserving loss that compares the input with its enhanced output.
- Results On the whole test set it reaches a NIQE score of 3.385, below NPE at 3.525 and LIME at 3.629. As pre-processing, it raises ResNet-50 top-1 accuracy on ExDark from 22.02% to 23.94%.
Why paired training is hard for low-light images
Most deep enhancement methods learn from pairs of corrupted and clean images, and that assumption is fragile for low-light photos. Capturing a low-light frame and a normal-light frame of the same scene at the same moment is very hard, and a synthetic low-light image made from a clean one often looks unlike a real night photo. There is also no single well-defined bright target for a given dark photo, since many exposures of the same scene could count as a correct result.
The paper therefore targets scenes with spatially varying light and over- or under-exposed regions, and asks whether a GAN can learn the mapping between low-light and normal-light image sets without matched pairs. The existing paired datasets are small: the LOL dataset contains only 500 pairs and was recorded under a fixed camera with changing exposure, which may not match the true mapping between natural low-light and normal-light images.
A one-path GAN instead of a cycle
EnlightenGAN builds on unpaired image-to-image translation, but it uses a single generator and discriminator path rather than the two-way cycle that earlier unpaired methods depend on. Dropping the cycle-consistency term keeps the training shorter and removes one set of networks, which the authors present as the reason for the lightweight design.
The generator is an attention-guided U-Net, and the discriminator branch judges both the whole image and random local patches. A self feature preserving loss ties the generator output to its own input, so that the content is kept during training without any ground-truth image.
Global and local discriminators
An image-level discriminator can miss the case where one part of the frame, such as a small bright region in a dark scene, needs different enhancement from the rest, so it cannot adapt locally. To handle this, a local discriminator is added that takes randomly cropped patches from the enhanced output and from real normal-light images and learns to tell them apart, which is intended to keep every local region realistic.
The global discriminator uses a relativistic formulation in which the score of a real image is compared against the average score of fake images, written as \( D_{Ra}(x_r,x_f)=\sigma(C(x_r)-E_{x_f\sim P_{fake}}[C(x_f)]) \), where \( C \) is the discriminator network. The sigmoid is replaced by the least-squares loss, giving the global losses in Eq.
3 and Eq. 4, with the generator pushing the enhanced output towards the real side. The local discriminator instead uses the plain LSGAN loss on five randomly cropped patches per iteration, with real patches labelled 1 and enhanced patches labelled 0 in the discriminator loss.
Self feature preserving loss
A perceptual loss normally compares the features of an output with those of its ground truth, but here no ground truth exists, so the comparison is made between the low-light input and its enhanced version. The features come from a VGG-16 model pre-trained on ImageNet, and the default layer is the first convolutional layer after the fifth max pooling layer.
The loss averages the squared difference between the feature map of the input and the feature map of the generator output over all positions of the map, which is written as \( L_{SFP}(I_L) \) in Eq. 7, with \( G(I_L) \) the enhanced output. Before the loss is computed, an instance normalization layer is applied to the VGG feature maps to stabilize training, and the same kind of loss is applied to the local patches.
The authors rely on the observation that VGG classification results change little when the input intensity range is changed, a premise they take from another study.
Attention map from the illumination channel
The illumination channel of the input RGB image is normalized to the range 0 to 1, and the attention map is 1 minus that normalized value, so dark pixels get larger weights. The map is computed from the input alone, not learned from supervision, and it is resized to match each feature map.
Each resized map multiplies every intermediate feature map and also the output image, so the generator is steered towards brightening dark regions more than bright ones. The generator has 8 convolutional blocks, each with two 3 by 3 convolutional layers followed by LeakyReLU and batch normalization, and bilinear upsampling plus a convolution replaces the transposed convolution to reduce checkerboard artifacts.
Training data and schedule
The unpaired training set combines 914 low-light images and 1016 normal-light images drawn from several datasets and HDR sources, with no pairing between the two sets. Images of medium brightness were removed by manual inspection, and all photos were converted to PNG and resized to 600 by 400 pixels. The LOL images were held out as a validation set of 50 pairs and were not used as pairs for training.
Training runs for 100 epochs at a learning rate of 1e-4 and then for another 100 epochs with the rate linearly decayed to 0, using the Adam optimizer and a batch size of 32. The full training took 3 hours on 3 Nvidia 1080Ti GPUs, and the authors state that this is shorter than cycle-based training, without a measured comparison.
NIQE on five public test sets
The visual comparison includes CycleGAN, RetinexNet, SRIE, LIME, NPE and LLNet, all shown on the same low-light inputs. LIME tends to over-expose and make the results glaring, SRIE and NPE stay darker than the others, and CycleGAN and RetinexNet are judged unsatisfactory in brightness and naturalness, while EnlightenGAN enhances dark areas and keeps textures.
NIQE is computed on the whole testing set and on five subsets (MEF, LIME, NPE, VV and DICM), where a smaller value means better perceived quality. EnlightenGAN scores 3.385 on the whole set, below NPE at 3.525 and LIME at 3.629, and it has the best NIQE on three of the five subsets.
Pairwise human judgements
Nine subjects compared pairs drawn from five outputs per image, namely LIME, RetinexNet, NPE, SRIE and EnlightenGAN, on 23 randomly selected test images. Subjects were asked to weigh visible noise, over- or under-exposure, and unrealistic color or texture.
The pairwise votes were fitted with a Bradley-Terry model to obtain scores that give each method a rank from 1 to 5 on each image. EnlightenGAN was ranked first on 10 of the 23 images, with an average rank of 1.78, and the authors attribute the weaker standing of RetinexNet and LIME to over-exposure and amplified noise.
What the two ablations change
Two variants are compared with the full model: one that keeps only the global discriminator, and one that removes the self-regularized attention and uses a plain U-Net generator. Both variants show local color distortion or under-exposure in several of the five example images, such as the sky over a building and the T-shirt, which are highlighted by boxes.
The full model gives more consistent colors on the same examples, but this comparison is a visual judgement and no quantitative score is reported for it.
Adapting to night-time driving images
For BBD-100k, 950 night-time photos with mean pixel intensity below 45 form the low-light training images, and 50 further low-light images are held out for testing. Two EnlightenGAN models are compared: the original model, and EnlightenGAN-N, which is trained on the BBD-100k low-light images while still using the normal-light images from the unpaired set.
AHE, a pre-trained LIME and CycleGAN are included as further references. The original EnlightenGAN shows noticeable artifacts on this unseen domain, while EnlightenGAN-N gives the most visually pleasing results with brightness and noise balanced, and LIME shows noise amplification and over-exposure.
Enhancement as pre-processing for classification
The ExDark dataset has 7,363 low-light images, and its 2563 testing images are used here with a pretrained ResNet-50 classifier. Each test image is enhanced first, then classified, with no domain adaptation and no joint training.
Pre-processing with EnlightenGAN raised top-1 accuracy from 22.02% to 23.94% and top-5 from 39.46% to 40.92%. Under the same protocol LIME reached 23.32% top-1 and 40.60% top-5, and AHE reached 23.04% top-1 and 40.37% top-5. The authors read the gain as a sign that EnlightenGAN keeps semantic detail, since classification is used as an indirect measure of that.
Limitations
The human study uses only 23 images and 9 subjects, so its ranking rests on a small sample. The BBD-100k comparison is visual only, and no quantitative score is reported for it.
The self feature preserving loss depends on the premise that VGG features are not very sensitive to changes in input intensity range, which the authors take from another study. The faster training than cycle-based methods is stated by the authors without a measured comparison.
Paper info
- Authors
- Yifan Jiang, Xinyu Gong, Ding Liu, Yu Cheng, Chen Fang, Xiaohui Shen, Jianchao Yang, Pan Zhou, Zhangyang Wang
- Venue
- arXiv · Preprint
- First published
- 2019-6-17
- Added
- 2026-11-12
- Updated
- 2021-1-24
- Version
- v2
- arXiv
- 1906.06972
- Category
- cs.CV · eess.IV
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
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
Yifan Jiang, Xinyu Gong, Ding Liu, Yu Cheng, Chen Fang, Xiaohui Shen, Jianchao Yang, Pan Zhou, Zhangyang Wang (2019). EnlightenGAN: Deep Light Enhancement without Paired Supervision. arXiv:1906.06972v2. https://arxiv.org/abs/1906.06972v2
BibTeX
@misc{jiang2019enlightengan,
title = {{EnlightenGAN: Deep Light Enhancement without Paired Supervision}},
author = {Yifan Jiang and Xinyu Gong and Ding Liu and Yu Cheng and Chen Fang and Xiaohui Shen and Jianchao Yang and Pan Zhou and Zhangyang Wang},
year = {2019},
eprint = {1906.06972},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1906.06972v2}
}