A-ESRGAN: Training Real-World Blind Super-Resolution with Attention U-Net Discriminators

Zihao Wei, Yidong Huang, Yuang Chen, Chenhao Zheng, Jinnan Gao

TL;DR

A-ESRGAN improves blind super-resolution by replacing standard GAN discriminators with a multi-scale Attention U-Net. By focusing on structural features like edges and textures rather than treating all pixels equally, the model significantly reduces common artifacts like "twisted lines" and unnatural blurring, achieving state-of-the-art perceptual quality.

What Problem Does This Paper Address?

Super-resolution (SR) is the task of reconstructing a high-resolution (HR) image from a low-resolution (LR) one. "Blind" SR is particularly challenging because the specific distortions (blur, noise, compression) are unknown and complex.

While Generative Adversarial Networks (GANs) have pushed the boundaries of perceptual realism, they suffer from a "structural ignorance" problem. Most discriminators treat every pixel with equal importance. This lack of spatial awareness often leads to frustrating visual artifacts: straight architectural lines might appear "twisted" or wavy, and backgrounds can become over-sharpened or muddy. The authors argue that the bottleneck isn't just the generator—it’s the discriminator's inability to provide precise, structurally-aware feedback.

Methods

The core innovation of A-ESRGAN lies in its discriminator architecture. While it uses the industry-standard RRDB (Residual-in-Residual Dense Block) generator, it introduces a novel Multi-scale Attention U-Net Discriminator:

  1. Attention U-Net Structure: Unlike standard discriminators that output a single scalar (real vs. fake), the U-Net structure provides per-pixel feedback. The authors integrated Attention Gates (originally designed for 3D medical imaging) modified for 2D images. These gates allow the discriminator to prioritize edges and structural outlines.
  2. Multi-scale Strategy: The model employs two identical Attention U-Net discriminators. One operates on the original image scale ($D_1$), while the other operates on a $2\times$ downsampled version ($D_2$). This allows the system to capture both fine-grained details (lines, dots) and global textures (large patches).
  3. High-Order Degradation: To simulate real-world messiness, they utilize the high-order degradation model from Real-ESRGAN, which applies multiple rounds of blurring and noise to training data.
  4. Loss Functions: The training uses a combination of $L_1$ loss, perceptual loss, and relativistic GAN loss to balance pixel accuracy with visual "feel."

Datasets

  • Training: The model was trained on the DIV2K dataset, a standard high-quality dataset for SR tasks.
  • Evaluation: To test "real-world" performance, the authors used five benchmark datasets: Set5, Set14, BSD100, Sun-Hays80, and Urban100. These cover a wide range of subjects, including portraits, nature, and complex architecture.

Key Insights and Ideas

  • Attention as a Structural Guide: By visualizing the attention maps, the authors show that the model naturally learns to "look" at edges where color changes abruptly. Initially, the attention is uniform, but as training progresses, it tightly hugs the outlines of objects.
  • Granularity across Layers: The authors discovered that different layers of the Attention U-Net specialize in different features. Lower layers focus on coarse-grained color patches, while upper layers focus on fine-grained details like lines and dots.
  • Scale Specialization: The multi-scale approach creates a "division of labor." The normal-scale discriminator excels at identifying sharp lines, while the downsampled discriminator forces the generator to produce better textures in larger areas (like tree branches or skin).
  • Discriminator as a Loss Function: This paper reinforces the idea that the discriminator is essentially a learnable loss function. By making the discriminator "smarter" about structure, the generator is forced to be more precise.

Key Results

A-ESRGAN was evaluated using the NIQE (Natural Image Quality Evaluator) metric, where a lower score indicates better perceptual quality.

  • Quantitative: A-ESRGAN-Multi achieved the best (lowest) NIQE scores on BSD100 (3.2474), Sun-Hays80 (2.5908), and Urban100 (3.3993), outperforming SOTA models like Real-ESRGAN and BSRGAN.
  • Qualitative: Visual comparisons show that A-ESRGAN successfully avoids the "twisting" artifacts seen in Real-ESRGAN. For example, in images of buildings or sea creatures, the lines remain straight and the textures (like scales or branches) are significantly clearer and more realistic.

Limitations and Future Work

While the paper demonstrates clear improvements in structural integrity, a few areas remain open for exploration:

  • Computational Cost: The use of two U-Net-based discriminators with attention layers likely increases training time and memory requirements compared to simpler architectures, though this isn't detailed in the paper.
  • Generalization: The model relies on the synthetic high-order degradation process. If a real-world image suffers from a type of noise not covered in that process, the model might still struggle.
  • Portability: The authors suggest this discriminator is "modular" and can be ported to other GAN tasks beyond super-resolution, which could be a promising direction for future research in image synthesis.

Summary updated

BibTeX
@misc{wei2021esrgan,
  author = {Zihao Wei and Yidong Huang and Yuang Chen and Chenhao Zheng and Jinnan Gao},
  title = {{A-ESRGAN: Training Real-World Blind Super-Resolution with Attention U-Net Discriminators}},
  year = {2021},
  eprint = {2112.10046},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.10046},
}
Figure