Paper commentary
ESRGAN: Enhanced Super-Resolution Generative Adversarial Networks
Enhanced SRGAN produces sharper, more natural textures for image super-resolution
- Problem SRGAN makes realistic textures but leaves unpleasant artifacts and a visible gap to the ground truth. Networks trained for PSNR give smooth outputs that lack fine detail.
- Method ESRGAN revises SRGAN's generator, discriminator and perceptual loss.
- Results ESRGAN won first place in region 3 of the PIRM-SR Challenge with the best perceptual index. Pre-activation features gave brightness closer to the ground truth than post-activation features.
Why SRGAN still leaves a gap
Single image super-resolution recovers a high-resolution image from one low-resolution input, and the study uses a scaling factor of ×4 between LR and HR images. Networks trained to maximize PSNR tend to return smooth outputs that lack high-frequency detail, because PSNR does not track how human observers judge images. SRGAN moves toward natural-looking textures by adding a perceptual loss and adversarial training, yet its results still differ visibly from the ground truth.
The study therefore asks which of SRGAN's three parts can be changed to close that gap: the generator architecture, the adversarial training, and the perceptual term. Because a stronger perceptual model can drift away from pixel fidelity, the study also asks whether the balance between the two can be adjusted after training.
Generator built from RRDB without batch normalization
ESRGAN keeps SRGAN's overall layout, in which most computation runs in the low-resolution feature space before an upsampling stage. The basic block is replaced by the Residual-in-Residual Dense Block, which applies residual learning at more than one level and places a dense block in the main path. The dense connections raise the capacity of each block, and the authors state that this is the point where RRDB differs from the multi-level residual network in reference 36.
Batch normalization is removed from the generator, so the features are no longer normalized with statistics taken from the current batch. Batch normalization uses batch statistics during training and dataset statistics at test time, so when those two differ the layer can introduce artifacts and weaken generalization. The authors observed these artifacts more often in deeper networks trained under a GAN framework, and removing the layers gives stable training, lower computation and lower memory use.
Training a very deep network without batch normalization needs two extra measures: residual scaling, which multiplies each residual by a constant between 0 and 1 before it joins the main path, and a smaller initialization. The authors found that a residual architecture trains more easily when the initial parameter variance is smaller.
Relativistic average discriminator and adversarial losses
SRGAN's standard discriminator estimates the probability that a single input is real, written as \( D(x)=\sigma(C(x)) \) with \( C(x) \) the non-transformed output. ESRGAN swaps it for the Relativistic average Discriminator, which asks how much more realistic a real image \( x_r \) is than the average of fake images \( x_f \) in the mini-batch: \( D_{Ra}(x_r,x_f)=\sigma(C(x_r)-\mathbb{E}_{x_f}[C(x_f)]) \).
The discriminator loss is \( L_{RaD}=-\mathbb{E}_{x_r}[\log(D_{Ra}(x_r,x_f))]-\mathbb{E}_{x_f}[\log(1-D_{Ra}(x_f,x_r))] \), which is Eq. (1). The generator loss is symmetric, \( L_{RaG}=-\mathbb{E}_{x_r}[\log(1-D_{Ra}(x_r,x_f))]-\mathbb{E}_{x_f}[\log(D_{Ra}(x_f,x_r))] \) with \( x_f=G(x_i) \), where \( x_i \) is the input LR image. Because this loss contains both \( x_r \) and \( x_f \), the generator receives gradients from real data as well as generated data, whereas in SRGAN only the generated part takes effect.
Perceptual loss before activation
The perceptual loss from Johnson et al. minimizes the distance between features of a pre-trained network, and SRGAN applies it to activated features. ESRGAN instead takes the features before the activation layers, for two stated reasons. Activated features are very sparse in deep layers; for the image 'baboon' the average percentage of activated neurons after the VGG19-54 layer is 11.17%, which gives weak supervision.
Post-activation features also produce a brightness that differs from the ground truth, which the authors examine in the ablation.
The generator is trained with \( L_G=L_{percep}+\lambda L_{RaG}+\eta L_1 \), where \( L_1=\mathbb{E}_{x_i}\|G(x_i)-y\|_1 \) is the content loss against the ground truth \( y \), and \( \lambda \) and \( \eta \) balance the terms.
For the PIRM-SR Challenge, the authors also tried a MINC loss based on a VGG network fine-tuned for material recognition, which targets texture rather than object classes.
Two-stage training and data
LR images come from bicubic down-sampling of HR images in MATLAB, the mini-batch size is 16, and cropped HR patches are 128 × 128. The authors use this model as the generator's initialization, because the pre-trained generator avoids poor local optima and gives the discriminator reasonable outputs to judge from the start.
Adam is used with β1 = 0.9 and β2 = 0.999, and the generator and discriminator are updated alternately until the model converges. Two generator settings are tested, one with 16 residual blocks, similar in capacity to SRGAN, and one with 23 RRDB blocks.
Training draws mainly on DIV2K, whose training set has 800 images, and adds Flickr2K with 2650 images and the OutdoorSceneTraining set to add natural textures. Models are trained on RGB channels with random horizontal flips and 90 degree rotations.
Network interpolation against image interpolation
Network interpolation trains a PSNR-oriented generator, fine-tunes it into a GAN-based generator, and then blends their parameters as \( \theta_{INTERP}=(1-\alpha)\theta_{PSNR}+\alpha\theta_{GAN} \), with \( \alpha \in [0,1] \). Because the blend happens in parameter space, the interpolated model can be run for any α in that range without retraining, which lets the operator move the trade-off continuously.
The comparison uses linear interpolation with α from 0 to 1 at an interval of 0.2, applied to both network and image interpolation. The pure GAN-based output has sharp edges and richer textures together with unpleasant artifacts, while the pure PSNR-oriented output is blurry. Network interpolation reduces the artifacts while keeping the textures, but image interpolation does not remove them effectively.
Pixel-wise image interpolation gives an output that is either too blurry or noisy, and tuning the loss weights instead is costly because it needs retraining.
Benchmark visual comparisons
ESRGAN is compared with SRCNN, EDSR and RCAN, which are PSNR-oriented, and with SRGAN and EnhanceNet, which are perceptual-driven. The evaluation sets are Set5, Set14, BSD100, Urban100 and the PIRM self-validation dataset.
PSNR, computed on the luminance channel in YCbCr, and the perceptual index are given for reference, since the authors judge perceptual quality visually. On image 43074, ESRGAN draws sharper and more natural baboon whiskers and grass textures than the PSNR-oriented outputs, which look blurry, and than the earlier GAN-based outputs, which show unnatural textures and noise.
On image 102061, ESRGAN produces more building structure than SRGAN, which adds too little detail, and than EnhanceNet, which adds undesired textures. SRGAN adds wrinkles to the face in one example, and ESRGAN does not show that artifact.
Ablation: adding one change at a time
The SRGAN baseline is changed step by step, and each column of the overall visual comparison shows one configuration, with a red mark for the main change from the previous column. The effects are judged visually across these columns rather than from a numeric ablation table in the main text.
Removing batch normalization does not lower performance and saves computation and memory, and a slight gain appears in some cases, such as image 39.
To isolate brightness, the authors blur each image with a Gaussian kernel and compare grayscale histograms; post-activation features skew the distribution to the left and produce a dimmer output. Pre-activation features give a brightness distribution closer to the ground truth, and they also yield sharper edges and richer textures, as seen in the bird feather example.
The RaGAN discriminator produces sharper images with richer textures than the standard discriminator on the baboon, image 39 and image 43074 examples. Moving to the deeper RRDB model further improves regular structures such as the roof in image 6, and it reduces noise in image 20. Training the deeper model is easy in the authors' setting, which they credit to the RRDB design without batch normalization.
PIRM-SR Challenge entry
The challenge ranks methods by a perceptual index computed from Ma's score and NIQE, where a lower value means better perceptual quality. The perception-distortion plane is split into three regions by RMSE thresholds, and the study targets region 3. ESRGAN won first place in region 3 with the best perceptual index.
For regions 1 and 2, which need higher PSNR, the entry uses image interpolation between ESRGAN and RCAN; this scheme gave a lower perceptual index, although the authors found the network-interpolated results more visually pleasing.
Limitations
The benchmark comparisons are visual and use selected images, and the authors state that no effective and standard metric exists for perceptual quality. The gain in perceptual index from the MINC loss is marginal, and the authors still consider texture-focused perceptual losses important for SR. The network interpolation was tested over α from 0 to 1 with an interval of 0.2 on one PSNR-oriented model and one GAN-based model.
Paper info
- Authors
- Xintao Wang, Ke Yu, Shixiang Wu, Jinjin Gu, Yihao Liu, Chao Dong, Chen Change Loy, Yu Qiao, Xiaoou Tang
- Venue
- arXiv · Preprint
- First published
- 2018-9-1
- Added
- 2026-11-11
- Updated
- 2018-9-17
- Version
- v2
- arXiv
- 1809.00219
- Category
- cs.CV
- 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
Xintao Wang, Ke Yu, Shixiang Wu, Jinjin Gu, Yihao Liu, Chao Dong, Chen Change Loy, Yu Qiao, Xiaoou Tang (2018). ESRGAN: Enhanced Super-Resolution Generative Adversarial Networks. arXiv:1809.00219v2. https://arxiv.org/abs/1809.00219v2
BibTeX
@misc{wang2018esrgan,
title = {{ESRGAN: Enhanced Super-Resolution Generative Adversarial Networks}},
author = {Xintao Wang and Ke Yu and Shixiang Wu and Jinjin Gu and Yihao Liu and Chao Dong and Chen Change Loy and Yu Qiao and Xiaoou Tang},
year = {2018},
eprint = {1809.00219},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1809.00219v2}
}