Perceptual Pyramid Adversarial Networks for Text-to-Image Synthesis

Lianli Gao, Daiyuan Chen, Jingkuan Song, Xing Xu, Dongxiang Zhang, Heng Tao Shen

Abstract

The Perceptual Pyramid Adversarial Network (PPAN) simplifies text-to-image synthesis by using a single, unified pyramid generator to produce multi-scale images in a single feed-forward pass. By combining a hierarchical architecture with perceptual loss and multi-purpose discriminators, PPAN achieves state-of-the-art photo-realism and semantic consistency on bird and flower datasets.

Introduction

Generating a realistic image from a text description (e.g., "a small bird with a yellow throat and gray wings") is a difficult cross-modal task. The model must not only create a high-resolution, "natural-looking" image but also ensure that every visual detail aligns perfectly with the provided text.

Previous state-of-the-art methods, like StackGAN and AttnGAN, tackled this by using multiple stages—generating a low-resolution "sketch" first and then refining it through subsequent, separate GANs. However, these multi-stage architectures are notoriously difficult to train, computationally expensive, and often fail to produce end-to-end global consistency. The authors of PPAN sought to create a more integrated, "one-shot" approach that leverages the hierarchical nature of convolutional features to generate multiple resolutions simultaneously.

Methodology

PPAN introduces a streamlined architecture consisting of three main components:

The PPAN framework featuring the Pyramid Generator and Multi-purpose Discriminators.
  1. Conditioning Augmentation (CA): To handle the high dimensionality of text embeddings, CA samples the text condition from a Gaussian distribution. This smooths the latent space, making the generator more robust to small perturbations in text descriptions.
  2. Pyramid Generator: Instead of separate GANs, PPAN uses one generator with two types of blocks:
  3. RG-Blocks (Residual Generative): These capture textual features and up-sample them.
  4. C-Blocks (Cumulative): These take the features from the RG-Blocks to synthesize images at three specific resolutions: 64×64, 128×128, and 256×256.
  5. Multi-purpose Discriminators: The model employs three independent discriminators ($D_1, D_2, D_3$) that evaluate the images at different scales. They use a combination of losses:
  6. Matching-aware Pair Loss ($L_1$): Ensures the image matches the text.
  7. Local Image Loss ($L_2$): Focuses on fine-grained local textures and patches.
  8. Class Information Loss ($L_3$): Uses object labels (e.g., bird species) to ensure the generated image belongs to the correct category.
  9. Perceptual Loss ($L_4$): To go beyond simple pixel-to-pixel comparison, the authors use a pre-trained VGG16 network to compare the high-level features of the generated image against the ground truth. This encourages the model to prioritize "semantic" similarity (shapes and textures) over exact pixel values.

Experiments and Results

The authors evaluated PPAN on two standard fine-grained benchmarks: the CUB (Caltech-UCSD Birds-200-2011) dataset and the Oxford-102 flower dataset.

Key Insights

  • End-to-End Efficiency: By using a single generator to produce multi-scale outputs, PPAN avoids the instability and complexity of training multiple stacked GANs.
  • Deep Supervision via Pyramids: The "pyramid" structure allows the network to learn coarse-to-fine features naturally. Lower levels handle global structure, while higher levels focus on fine details like feathers or petals.
  • The Power of Perceptual Loss: Perceptual loss ($L_4$) was found to be critical for image quality, preventing the "blurriness" common in standard GANs by forcing the generator to produce features that a pre-trained vision model recognizes as realistic.

Quantitative and Qualitative Performance

PPAN set new records for performance at the time of publication. On the CUB dataset, PPAN achieved an Inception Score (IS) of 4.38, outperforming AttnGAN (4.36) and HDGAN (4.15). Visual-semantic Similarity (VS) scores also showed that PPAN's outputs were closer to the ground truth than previous methods.

Qualitative comparison of bird synthesis across different GAN architectures.

Qualitatively, visual comparisons show that PPAN produces much clearer details—such as vivid eyes, sharp beaks, and complex flower structures—compared to the often-blurry results of StackGAN++.

Conclusion and Limitations

While PPAN significantly improved fine-grained synthesis, some limitations remain. The authors noted that adding perceptual and class losses to every resolution output didn't provide extra benefits; the gradient from the highest resolution (256x256) was sufficient to update the lower levels. Additionally, the model focuses heavily on the foreground object, leaving backgrounds relatively simple. Future work may explore more complex scenes with multiple interacting objects.

Summary updated

BibTeX
@inproceedings{gao2019perceptual,
  author = {Lianli Gao and Daiyuan Chen and Jingkuan Song and Xing Xu and Dongxiang Zhang and Heng Tao Shen},
  title = {{Perceptual Pyramid Adversarial Networks for Text-to-Image Synthesis}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33018312},
}
Figure