Introduction
Generating realistic images from natural language descriptions is a significant challenge in computer vision. This task is inherently multimodal, as a single textual prompt can correspond to a vast variety of visual representations. While Generative Adversarial Networks (GANs) have shown promise in producing high-quality synthetic images, they are plagued by training instability and mode collapse. These issues are often rooted in the loss functions used, such as Jensen-Shannon divergence, which can provide vanishing gradients when the distributions of real and generated data do not overlap.
This research addresses these challenges by introducing a Conditional Wasserstein GAN (WGAN-CLS) and a Conditional Progressive Growing GAN (CWPGGAN). By leveraging the mathematical stability of the Wasserstein distance, these models achieve reliable convergence and high-resolution synthesis.
Methodology
Wasserstein GAN-CLS (WGAN-CLS)
The core contribution is the adaptation of the Wasserstein GAN for conditional generation. Unlike standard GANs, WGANs utilize the Earth Mover's distance, providing smooth gradients even when distributions are disjoint. The discriminator is modified to evaluate not only the realism of the image but also its alignment with the provided text embedding.
Lipschitz Penalty (LP)
To satisfy the 1-Lipschitz constraint required by the Wasserstein framework, the author employs a "Lipschitz Penalty" (LP). This approach is a softer alternative to the standard Gradient Penalty, preventing gradient explosion when handling mismatched text-image pairs during training.
Conditional Progressive Growing GAN (CWPGGAN)
To scale to 256x256 resolutions, the model integrates the Progressive Growing GAN (PGGAN) architecture. Training begins at a 4x4 resolution, with new layers gradually added to increase detail. By replacing the unstable least-squares loss typically used in PGGANs with the conditional Wasserstein loss, the CWPGGAN achieves stable training at high resolutions. The model utilizes pre-computed char-CNN-RNN text embeddings and Conditioning Augmentation to smooth the latent space.
Experimental Results
The models were evaluated on two benchmark datasets: Oxford-102 Flowers and Caltech CUB-200 Birds.
Oxford-102 Flowers
On the Flowers dataset, the CWPGGAN produced 256x256 images with an Inception Score of 3.86 ± 0.02. This outperformed the baseline StackGAN Stage II (3.71) and a version of PGGAN using Least-Squares loss (3.76).
Caltech CUB-200 Birds
The Birds dataset presented a more complex challenge. The CWPGGAN achieved an Inception Score of 4.09 ± 0.03, representing a 7.07% improvement over StackGAN-v2 (3.82), the leading sentence-level model at the time. While AttnGAN achieved a higher score (4.36), it relies on fine-grained word-level attention, whereas CWPGGAN operates solely on global sentence embeddings.
Discussion and Limitations
The study highlights that the mathematical guarantees of the Wasserstein distance are essential for stabilizing progressive growing architectures in conditional tasks. However, limitations remain. Hardware constraints (single Nvidia GTX 1080Ti) limited batch sizes and hyperparameter optimization. Furthermore, while the model generates structurally sound images, it occasionally fails to capture specific fine-grained details mentioned in the text (e.g., specific colors), suggesting that global sentence embeddings have inherent limits.
Conclusion
The introduction of WGAN-CLS and CWPGGAN demonstrates that stable loss functions are critical for high-resolution text-to-image synthesis. By combining the Wasserstein distance with progressive growing, this work sets a new benchmark for sentence-level generative models and provides a robust foundation for future research incorporating attention mechanisms.
Summary updated