Photographic Text-to-Image Synthesis with a Hierarchically-nested Adversarial Network

Zizhao Zhang, Yuanpu Xie, Lin Yang

Introduction

Generating high-resolution, photographic images from natural language descriptions is a significant challenge in computer vision. This task requires mapping low-dimensional text embeddings to a high-dimensional pixel space while maintaining semantic alignment and visual realism. Traditional Generative Adversarial Networks (GANs) often struggle with training instability and semantic consistency at high resolutions.

Previous state-of-the-art methods, such as StackGAN, addressed these issues by employing a multi-stage "stacked" approach, where separate GANs are trained to generate low-resolution sketches and subsequently refine them. However, this disjointed training often leads to visual inconsistencies and increased architectural complexity.

The HDGAN Framework

To overcome the limitations of stacked architectures, we introduce the Hierarchically-nested Adversarial Network (HDGAN). Unlike previous models, HDGAN utilizes a single-stream generator that produces images across multiple scales within a unified end-to-end framework.

Comparison of text-to-image GAN architectures. HDGAN (D) uses a single-stream generator with nested discriminators, contrasting with multi-stage (A, B) or symmetric (C) designs.

Hierarchically-nested Adversarial Objectives

The core innovation of HDGAN lies in its nested discriminators. Rather than applying a single discriminator at the final output, HDGAN integrates discriminators at various intermediate layers (e.g., 64x64, 128x128, 256x256, and 512x512 resolutions). These discriminators serve as intermediate checkpoints that regularize mid-level representations and facilitate gradient flow to earlier layers of the generator.

The hierarchically-nested discriminator mechanism. Multiple discriminators (D1, D2, D3) evaluate generator outputs at different resolutions using both image loss and pair loss.

Each discriminator is tasked with a dual objective:

  1. Pair Loss: Ensures global semantic consistency between the generated image and the input text description.
  2. Local Image Loss: Utilizes a probability map to evaluate the realism of local image patches, preventing the model from sacrificing fine-grained texture for global structure.

Experimental Evaluation

HDGAN was evaluated on three benchmark datasets: CUB Birds, Oxford-102 Flowers, and MSCOCO. In addition to the standard Inception Score (IS), the researchers introduced Visual-Semantic (VS) Similarity, a metric that employs pre-trained embeddings to quantify the alignment between generated images and their textual prompts.

Key Results

HDGAN demonstrates superior performance across all metrics:

  • CUB Birds: Achieved an Inception Score of 4.15, outperforming StackGAN (3.70) and StackGAN++ (3.84).
  • MSCOCO: Reached an Inception Score of 11.86, a significant improvement over StackGAN's 8.45.
  • Visual Fidelity: Qualitative analysis confirms that HDGAN preserves fine-grained semantic details—such as specific plumage patterns or petal textures—more effectively than multi-stage models, even at resolutions up to 512x512.

Discussion and Conclusion

By adopting a single-stream architecture with hierarchically-nested objectives, HDGAN simplifies the training pipeline while enhancing both image quality and semantic consistency. While the model shows remarkable success on specialized datasets like CUB and Oxford-102, complex scenes in MSCOCO remain a challenge due to cluttered backgrounds and multiple interacting objects. Future research will focus on improving spatial reasoning for multi-object synthesis and further refining local discriminator feedback.

Summary updated

BibTeX
@inproceedings{zhang2018photographic,
  author = {Zizhao Zhang and Yuanpu Xie and Lin Yang},
  title = {{Photographic Text-to-Image Synthesis with a Hierarchically-nested Adversarial Network}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00649},
}
Figure