PerceptionGAN: Real-world Image Construction from Provided Text through Perceptual Understanding

Kanish Garg, Ajeet Kumar Singh, Dorien Herremans, Brejesh LallarXiv 2020

Abstract

Generating photo-realistic images from text descriptions remains a challenging task in computer vision. Current multi-stage models often suffer from poor initializations that subsequent refinement stages cannot correct. This paper introduces PerceptionGAN, which improves text-to-image synthesis by focusing on the foundational "initial sketch" phase. By incorporating a Captioner Loss via a pre-trained image captioning encoder in the first stage of a multi-stage GAN, the model ensures that basic shapes, colors, and object interactions are perceptually accurate. Evaluations on MS COCO and CUB datasets show that PerceptionGAN significantly outperforms baseline models in both quantitative metrics and qualitative realism.

Introduction

The generation of high-fidelity images from natural language descriptions typically follows a "coarse-to-fine" strategy. Models like StackGAN first generate a low-resolution (64x64) "primitive" image, which is then refined into a high-resolution (256x256) output. However, a critical bottleneck exists: the "Garbage In, Garbage Out" problem. If the initial low-resolution image fails to capture basic geometry or semantic relationships—such as a "boy" standing "in front of a tree"—subsequent refinement stages are unable to rectify these foundational errors. PerceptionGAN addresses this by ensuring the Stage-I image is perceptually sound before high-resolution processing begins.

Methodology

PerceptionGAN builds upon the StackGAN architecture by modifying the Stage-I discriminator to include perceptual grounding.

Image Captioner Encoder ($E_0$)

The core innovation is the integration of a pre-trained image captioning encoder (based on ResNet-152) into the discriminator module. This encoder maps images into a 256-dimensional latent space representing high-level perceptual information.

Captioner Loss

In addition to standard adversarial loss, a Captioner Loss is introduced. This is a Mean Squared Error (MSE) loss between the latent representations of real and generated images. This loss forces the generator to produce initial images containing correct semantic features (shapes, positions, and colors) required to describe the scene.

Detailed architecture of the Stage-1 Generator and the integration of the Image Captioner Encoder (E0).

To maintain training stability, the authors wait until the 5th epoch to introduce the encoder, ensuring the GAN has established a basic starting point before applying complex perceptual constraints.

Experimental Setup

The model was evaluated on two standard benchmarks for text-to-image synthesis:

  • MS COCO: A large-scale dataset containing 80,000 images with five captions each, representing complex scenes.
  • CUB (Caltech-UCSD Birds-200-2011): A dataset of 200 bird species, used to test fine-grained detail generation.

Results and Discussion

Quantitative results demonstrate a clear leap over the baseline StackGAN. On MS COCO, the Inception Score (IS) improved from 9.43 to 10.84 when using PerceptionGAN initialization. On the CUB dataset, the score rose from 3.70 to 4.08.

Key Insights

  • Initialization vs. Depth: Adding a third refinement stage (Stage-III) to standard StackGAN only marginally improved the IS (9.43 to 9.82) without significant perceptual gains. This confirms that initialization quality, not network depth, is the primary bottleneck.
  • Latent Space Alignment: Using a captioner's latent space allows the model to learn structural representations of concepts (e.g., a "baseball player"), shifting the objective from pixel distribution matching to semantic concept representation.

Qualitative Analysis

Visual comparisons reveal that while standard StackGAN often produces unrecognizable blobs in Stage-I, PerceptionGAN generates recognizable shapes that correspond accurately to text descriptions, providing a superior foundation for refinement.

Qualitative comparison of generated images between baseline StackGAN and the proposed PerceptionGAN architecture.

Conclusion

PerceptionGAN demonstrates that focusing on the perceptual accuracy of initial image generation stages leads to significantly better final results. While some complex objects still pose challenges for refinement, the perceptually-strong initialization provides a superior foundation. Future work will explore combining this initialization with advanced attention mechanisms to further enhance photo-realism.

Summary updated

BibTeX
@misc{garg2020perceptiongan,
  author = {Kanish Garg and Ajeet Kumar Singh and Dorien Herremans and Brejesh Lall},
  title = {{PerceptionGAN: Real-world Image Construction from Provided Text through Perceptual Understanding}},
  year = {2020},
  eprint = {2007.00977},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.00977},
}
Figure