DR-GAN: Distribution Regularization for Text-to-Image Generation

Hongchen Tan, Xiuping Liu, Baocai Yin, Xin Li

Abstract: This paper presents a new Text-to-Image generation model, named Distribution Regularization Generative Adversarial Network (DR-GAN), to generate images from text descriptions from improved distribution learning. In DR-GAN, we introduce two novel modules: a Semantic Disentangling Module (SDM) and a Distribution Normalization Module (DNM). SDM combines the spatial self-attention mechanism and a new Semantic Disentangling Loss (SDL) to help the generator distill key semantic information for the image generation. DNM uses a Variational Auto-Encoder (VAE) to normalize and denoise the image latent distribution, which can help the discriminator better distinguish synthesized images from real images. DNM also adopts a Distribution Adversarial Loss (DAL) to guide the generator to align with normalized real image distributions in the latent space. Extensive experiments on two public datasets demonstrated that our DR-GAN achieved a competitive performance in the Text-to-Image task.

Introduction

Generating a high-fidelity image from a simple sentence is a complex task due to the inherent gap between abstract text and concrete, spatially complex images. Current Generative Adversarial Networks (GANs) for text-to-image (T2I) tasks struggle with two main issues: semantic ambiguity and complex image distributions. Text descriptions are often vague, leading generators to focus on non-essential noise, while real-world images contain messy backgrounds that make it difficult for discriminators to learn clear boundaries. DR-GAN addresses these challenges by regularizing both text and image distributions to make the learning process more efficient.

Methods

DR-GAN builds on multi-stage architectures like AttnGAN by introducing two critical components designed to filter noise and normalize the latent space.

The overall architecture of DR-GAN, featuring the Semantic Disentangling Module (SDM) and Distribution Normalization Module (DNM).

1. Semantic Disentangling Module (SDM)

The SDM uses a spatial self-attention mechanism to separate "key" semantic information from "non-key" noise. It introduces a Semantic Disentangling Loss (SDL) that uses mean and variance constraints to push key features toward the statistics of real image features in the latent space, while pushing non-key features away. This forces the generator to prioritize the most descriptive parts of the text.

2. Distribution Normalization Module (DNM)

To handle image complexity, the DNM integrates a Variational Auto-Encoder (VAE) into the discriminator's pipeline. The VAE denoises and normalizes the image latent distribution into a standard Gaussian-like distribution. This simplification helps the discriminator provide better gradients to the generator. Additionally, a Distribution Adversarial Loss (DAL) guides the generator to align its output with these normalized real-image distributions, preventing mode collapse.

Results and Discussion

The model was evaluated on the CUB-Bird and MS-COCO datasets, demonstrating significant improvements over baselines like AttnGAN and DM-GAN. On MS-COCO, DR-GAN achieved an Inception Score (IS) of 34.59, and on CUB-Bird, it reached a Fréchet Inception Distance (FID) of 14.96, indicating superior image quality and variety.

Qualitative comparison between the baseline and DR-GAN (Baseline+DDM), showing improved semantic alignment and clearer anatomical structures.

Qualitative visualizations show that DR-GAN produces much clearer anatomical structures, such as bird beaks and feet, and more logical object layouts in complex scenes compared to baseline models. Human evaluations further confirmed these findings, with volunteers ranking DR-GAN images as the most realistic significantly more often than competing models.

Conclusion

DR-GAN effectively addresses the "messiness" of natural language and image distributions through explicit regularization. By modeling what is not important (non-key semantics) and using a VAE as a "latent janitor," the model achieves state-of-the-art results in realism and semantic consistency. Future work will explore the integration of Knowledge Graphs to improve spatial reasoning and apply these techniques to other generative tasks like virtual try-on systems.

Summary updated

BibTeX
@article{tan2022dr,
  author = {Hongchen Tan and Xiuping Liu and Baocai Yin and Xin Li},
  title = {{DR-GAN: Distribution Regularization for Text-to-Image Generation}},
  journal = {IEEE Transactions on Neural Networks and Learning Systems},
  year = {2022},
  doi = {10.1109/tnnls.2022.3165573},
}
Figure