A U-Net Based Discriminator for Generative Adversarial Networks

Edgar Schönfeld, Bernt Schiele, Anna Khoreva · DOI

Introduction

Generative Adversarial Networks (GANs) have achieved remarkable success in synthesizing realistic images. However, a persistent challenge remains: maintaining "global-local" consistency. While a model might generate high-fidelity textures, it often fails on structural elements, resulting in artifacts like asymmetric features or missing limbs. This paper identifies the standard discriminator—a simple scalar classifier—as a primary bottleneck. By providing only "low-bandwidth" feedback, the discriminator fails to inform the generator where an image looks unrealistic.

The U-Net Discriminator Architecture

To address this, the authors propose a U-Net Discriminator ($D^U$). Unlike traditional architectures that output a single score, $D^U$ utilizes an encoder-decoder structure with skip connections to provide dense feedback.

  1. Dual Feedback: The encoder provides a global classification score, while the decoder produces a 2D map of the same resolution as the input.
  2. Per-Pixel Labeling: Each pixel in the output map represents the discriminator's confidence in that specific spatial location. This provides a rich gradient, pinpointing specific regions (e.g., a blurry eye or distorted background) for the generator to improve.
The U-Net discriminator provides dense, per-pixel feedback, allowing the generator to identify specific regions that appear 'fake' versus 'real'.

Consistency Regularization via CutMix

To further strengthen the discriminator, the authors introduce a per-pixel consistency loss based on CutMix. By stitching patches of real and fake images together, the discriminator is forced to maintain consistent predictions across mixed and un-mixed inputs. This regularization encourages the model to focus on semantic and structural integrity rather than relying on simple global statistics.

Experimental Results

The model was evaluated on FFHQ, CelebA, and a new, more diverse benchmark called COCO-Animals, which features high intra-class variability across 10 animal classes.

  • State-of-the-Art Performance: The U-Net GAN achieved a record-breaking FID of 2.95 on CelebA.
  • Significant Quality Gains: On the high-resolution FFHQ dataset, the model improved the FID from 11.48 (BigGAN baseline) to 7.48.
  • Structural Coherence: Qualitative analysis shows that the U-Net structure effectively replaces the need for memory-intensive self-attention layers while providing superior global coherence and smoother latent space interpolations.

Conclusion and Future Directions

While the U-Net Discriminator significantly boosts image quality, it introduces new challenges in training stability, often leading to earlier training collapse compared to standard baselines. Future work involves integrating this dense feedback mechanism into other architectures like StyleGAN and investigating the complex dynamics of per-pixel feedback in class-conditional generation.

Summary updated

BibTeX
@inproceedings{schonfeld2020u,
  author = {Edgar Schönfeld and Bernt Schiele and Anna Khoreva},
  title = {{A U-Net Based Discriminator for Generative Adversarial Networks}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00823},
}
Figure