# Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network

Adversarial training produces sharper textures in large-factor image super-resolution

Christian Ledig, Lucas Theis, Ferenc Huszar, Jose Caballero, Andrew Cunningham, Alejandro Acosta and 5 more · arXiv · 2016-9-15

- **Problem** Networks trained on pixel error at 4× upscaling output smooth images that lack fine texture, even when PSNR is high. Many high-resolution images match one low-resolution input, so the average looks blurred.
- **Method** SRGAN adds a discriminator to a deep residual generator. The discriminator learns to tell generated images from real photos, and a VGG feature loss replaces pixel differences, unlike plain MSE training.
- **Results** On Set14 at 4× upscaling, SRGAN reached a MOS of 3.72, compared to 2.98 for SRResNet. Its scores sit closer to the original high-resolution images than to any reference method.

## Why high PSNR still gives smooth textures

At 4× upscaling, one low-resolution image is consistent with many high-resolution images, so the recovery problem is badly underdetermined. Training with a pixel-wise mean squared error loss makes the network output an average of those candidates, and an average of plausible textures looks smooth. PSNR is computed from pixel differences, and minimizing MSE also maximizes PSNR, so the optimizer is rewarded for the behavior that blurs texture.

Figure 2 makes this concrete: the MSE-trained SRResNet reaches 23.53dB PSNR, higher than the GAN-based output at 21.15dB. The authors use this example to show that a higher PSNR can coincide with a less convincing image. They frame the missing piece as photo-realism, a property that PSNR doesn't measure.

## The key idea: a perceptual loss with an adversarial term

The core idea is to keep a deep residual generator but stop training it on pixel error alone. Alongside the generator, a discriminator is trained to tell super-resolved images from real high-resolution photos, and the generator learns to fool it. The authors expect this to pull outputs onto the natural image manifold, where textures look like real photographs rather than averaged blur.

The content term changes too: instead of pixel differences, it compares feature maps of a pretrained VGG19 network. They argue that such features are more invariant to changes in pixel space, so the loss tracks perceptual similarity rather than pixel agreement.

The content term keeps the reconstruction faithful, while the adversarial term adds texture that resembles natural images.

## Generator and discriminator architectures

The generator is a feed-forward CNN that takes a low-resolution image and outputs a super-resolved image rW×rH×C for a downsampling factor r. Its core is B residual blocks with identical layout, each with two 3×3 convolutional layers of 64 feature maps, followed by batch-normalization and ParametricReLU. The reported generator uses B = 16 blocks.

Two trained sub-pixel convolution layers then raise the resolution before the output.

The discriminator has eight convolutional layers with 3×3 kernels, and its feature maps double from 64 to 512, as in the VGG network. Strided convolutions shrink the image each time the feature count doubles, and max-pooling is avoided throughout.

## How each loss term is computed

The pixel-wise MSE content loss averages the squared difference between the high-resolution image and the generator output over every pixel. It is \\\[ l^{MSE}\_{SR} = \\frac{1}{r^{2} W H} \\sum\_{x=1}^{rW} \\sum\_{y=1}^{rH} \\left( I^{HR}\_{x,y} - G\_{\\theta\_G}(I^{LR})\_{x,y} \\right)^{2} \\\] SRResNet is trained with this loss, and it serves as the MSE baseline that the adversarial variants are compared against.

The VGG loss replaces pixel differences with differences between feature maps of the pretrained 19-layer VGG network. Here \\( \\phi\_{i,j} \\) is the feature map after the j-th convolution and activation, before the i-th max-pooling layer, and the loss is \\\[ l^{VGG/i,j}\_{SR} = \\frac{1}{W\_{i,j} H\_{i,j}} \\sum\_{x=1}^{W\_{i,j}} \\sum\_{y=1}^{H\_{i,j}} \\left( \\phi\_{i,j}(I^{HR})\_{x,y} - \\phi\_{i,j}(G\_{\\theta\_G}(I^{LR}))\_{x,y} \\right)^{2} \\\] The two VGG variants tested are \\( \\phi\_{2,2} \\) and \\( \\phi\_{5,4} \\), which give SRGAN-VGG22 and SRGAN-VGG54.

The adversarial loss sums, over the training samples, the negative log of the discriminator's probability that each generated image is a natural HR image. It is \\\[ l^{Gen}\_{SR} = \\sum\_{n=1}^{N} -\\log D\_{\\theta\_D}(G\_{\\theta\_G}(I^{LR}\_n)) \\\] The authors use -log D instead of log(1-D) because it gives better gradient behavior, and the discriminator is trained to maximize the minimax objective in alternation with the generator.

## Training schedule and initialization

Training drew 350 thousand images at random from ImageNet, and these images were kept distinct from the test images. Each mini-batch cropped 16 random 96×96 HR sub-images, and each LR image came from bicubic downsampling with r = 4. The method section describes a Gaussian filter before downsampling, but the experiments used a bicubic kernel.

Training used Adam with β1 = 0.9.

Generator and discriminator are updated in alternation, which the authors describe as k = 1. At test time batch-normalization is switched off, so the output depends only on the input. Because the generator is fully convolutional, the authors apply it to images of arbitrary size.

## Which content loss works with the adversarial term

The authors trained three GAN variants that differ in their content loss: MSE, VGG22 and VGG54. They call the VGG54 variant SRGAN in the rest of the paper. They also trained the MSE-based generator without the adversarial component, which is the SRResNet baseline.

On Set5 the MSE variant scored 30.64 dB PSNR, the highest of the three GAN variants, while VGG54 scored 29.40 dB. The authors describe the MSE variant's outputs as perceptually smoother, and they attribute this to competition between the MSE content term and the adversarial term. So the variant with the best PSNR is not the one the authors favour perceptually.

On Set14 the MOS for SRGAN-VGG54 was 3.72, compared to 3.43 for SRGAN-MSE. The authors report that SRGAN-VGG54 significantly outperformed the other SRGAN and SRResNet variants on Set14 in MOS. On Set5 no loss function could be singled out as significantly best for MOS, and the authors link the better texture of VGG54 to using the higher-level feature maps φ\_{5,4}.

## Does SRGAN beat the reference methods?

PSNR and SSIM are computed on the y-channel of center-cropped images, with a 4-pixel strip removed from each border. For the MOS test, 26 raters scored images from 1 (bad quality) to 5 (excellent quality), and the reference set included nearest neighbor, bicubic, SRCNN, SelfExSR, DRCN and ESPCN.

On Set5, SRResNet scored 32.05 dB PSNR, compared to 31.52 dB for DRCN and 29.40 dB for SRGAN. So the PSNR ranking favours SRResNet, while the perceptual ranking runs the other way.

On Set14 SRGAN scored a MOS of 3.72, compared to 2.98 for SRResNet and 4.32 for the original HR images. On BSD100 SRGAN reached a MOS of 3.56, compared to 2.29 for SRResNet, with the original HR images at 4.46. The authors state that SRGAN's MOS scores sit closer to the original HR scores than to those of any reference method.

On BSD100 all MOS differences were highly significant, except SRCNN versus SelfExSR. The significance comes from paired two-sided Wilcoxon signed-rank tests with significance at p\< 0.05. The authors also note that they used a public evaluation framework, so their values can deviate slightly from those in the original papers.

## Limitations

All experiments use a 4× scale factor on Set5, Set14 and BSD100. Other upscaling factors were not tested, and the model was not optimized for real-time video super-resolution.

PSNR and SSIM don't capture perceptual quality well, so the perceptual claims rest on MOS scores. The authors suggest shallower networks could be efficient, but they present that only as a preliminary observation.

Deeper SRGAN variants become increasingly difficult to train because high-frequency artifacts appear.

The authors say the ideal loss depends on the application, and that hallucinated fine detail may suit medical or surveillance use poorly. Reconstructing text or structured scenes is challenging and is left to future work. Content losses that describe spatial content while staying more invariant to pixel changes are also future work.

## Paper info

- **Authors**: Christian Ledig, Lucas Theis, Ferenc Huszar, Jose Caballero, Andrew Cunningham, Alejandro Acosta, Andrew Aitken, Alykhan Tejani, Johannes Totz, Zehan Wang, Wenzhe Shi
- **Venue**: arXiv · Preprint
- **First published**: 2016-9-15
- **Added**: 2026-11-11
- **Updated**: 2017-5-25
- **Version**: v5
- **arXiv**: 1609.04802
- **Category**: cs.CV · stat.ML
- **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/1609.04802v5) · [PDF ↗](https://arxiv.org/pdf/1609.04802v5)

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

Christian Ledig, Lucas Theis, Ferenc Huszar, Jose Caballero, Andrew Cunningham, Alejandro Acosta, Andrew Aitken, Alykhan Tejani, Johannes Totz, Zehan Wang, Wenzhe Shi (2016). Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network. arXiv:1609.04802v5. https://arxiv.org/abs/1609.04802v5

**BibTeX**

```
@misc{ledig2016photo,
  title = {{Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network}},
  author = {Christian Ledig and Lucas Theis and Ferenc Huszar and Jose Caballero and Andrew Cunningham and Alejandro Acosta and Andrew Aitken and Alykhan Tejani and Johannes Totz and Zehan Wang and Wenzhe Shi},
  year = {2016},
  eprint = {1609.04802},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1609.04802v5}
}
```

## Other paper commentary

- [Explaining and Harnessing Adversarial Examples](https://refivu.com/en/papers/37bc09da-a299-4ed8-8384-7f87f7409fd4-explaining-and-harnessing-adversarial-examples.md)
- [Large Scale GAN Training for High Fidelity Natural Image Synthesis](https://refivu.com/en/papers/93f6ad29-8cca-4630-9a3b-d12f9ad91854-large-scale-gan-training-for-high-fidelity-natural.md)
- [DU-GAN: Generative Adversarial Networks with Dual-Domain U-Net Based Discriminators for Low-Dose CT Denoising](https://refivu.com/en/papers/46030b78-75d0-4156-80ef-e92602d09b95-du-gan-generative-adversarial-networks-with-dual-domain.md)
- [Generative Modeling by Estimating Gradients of the Data Distribution](https://refivu.com/en/papers/f3ef856d-6161-4eaa-b2c9-6a0c3f1ff432-generative-modeling-by-estimating-gradients-of-the-data.md)
- [Improved Techniques for Training GANs](https://refivu.com/en/papers/fa2b409d-90c8-47af-916c-aa43ebfdf357-improved-techniques-for-training-gans.md)
- [Variational Inference with Normalizing Flows](https://refivu.com/en/papers/681d4ceb-2dde-4627-a4ad-6ee307d4d2ec-variational-inference-with-normalizing-flows.md)
- [UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction](https://refivu.com/en/papers/44ccc549-6643-4369-889c-f60f3d61cbf4-umap-uniform-manifold-approximation-and-projection-for.md)
- [Representation Learning: A Review and New Perspectives](https://refivu.com/en/papers/b38149f8-9f53-4406-8d25-bb93c21c4bc9-representation-learning-a-review-and-new-perspectives.md)
- [Intriguing properties of neural networks](https://refivu.com/en/papers/5d9b1ffd-1b1d-4795-87df-32680ad74683-intriguing-properties-of-neural-networks.md)
- [Representation Learning with Contrastive Predictive Coding](https://refivu.com/en/papers/cd05bbc6-eff6-4b02-b9ef-45070ef6704a-representation-learning-with-contrastive-predictive-coding.md)
- [YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors](https://refivu.com/en/papers/c2cb4858-244f-407a-916b-4d41a9df7d4f-yolov7-trainable-bag-of-freebies-sets-new-state.md)
- [Communication-Efficient Learning of Deep Networks from Decentralized Data](https://refivu.com/en/papers/67777aca-9be4-4537-8568-875c944fceee-communication-efficient-learning-of-deep-networks-from.md)

## Terms in this paper

- [ImageNet](https://refivu.com/en/terms/5eadad128667-imagenet)
- [ADAM](https://refivu.com/en/terms/0e9ad0199e08-adam)
- [PSNR](https://refivu.com/en/terms/fcbb9b8276a7-psnr)
- [SSIM](https://refivu.com/en/terms/a5c530b66e8d-ssim)
- [Set5](https://refivu.com/en/terms/10c3b328190e-set5)
- [Set14](https://refivu.com/en/terms/e149cff83a15-set14)
- [SRCNN](https://refivu.com/en/terms/6a9cf6ae7c80-srcnn)
- [adversarial loss](https://refivu.com/en/terms/6ecebb64a13d-adversarial-loss)
- [bicubic interpolation](https://refivu.com/en/terms/95c584919371-bicubic-interpolation)
- [generative adversarial network](https://refivu.com/en/terms/86597eed7832-generative-adversarial-network)
- [Perceptual loss](https://refivu.com/en/terms/8ced141e2959-perceptual-loss)
- [ESPCN](https://refivu.com/en/terms/fd8976dd133e-espcn)
- [residual blocks](https://refivu.com/en/terms/310231b03c2b-residual-blocks)
- [Super-resolution](https://refivu.com/en/terms/6dc5e5f4e268-super-resolution)
- [BSD100](https://refivu.com/en/terms/3e90ac61991d-bsd100)
- [DRCN](https://refivu.com/en/terms/fccb66019ce5-drcn)
- [SRGAN](https://refivu.com/en/terms/c11ed1ea7c7e-srgan)
- [Content loss](https://refivu.com/en/terms/a9d3f062c834-content-loss)
- [discriminator network](https://refivu.com/en/terms/c2f73150cdf9-discriminator-network)
- [Nearest Neighbor](https://refivu.com/en/terms/3039c427cbd5-nearest-neighbor)
- [generator network](https://refivu.com/en/terms/54df975ab3f0-generator-network)
- [MOS](https://refivu.com/en/terms/b9485f6710f5-mos)
- [SelfExSR](https://refivu.com/en/terms/75ba09eeba6c-selfexsr)
- [SRResNet](https://refivu.com/en/terms/9f89e4f3f8e7-srresnet)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/5a2dbd66-c794-464b-9d10-02f19eeb20e7-photo-realistic-single-image-super-resolution-using-a)
