Factor Decomposed Generative Adversarial Networks for Text-to-Image Synthesis

Jiguo Li, Xiaobin Liu, Li‐Rong ZhengarXiv 2023 · DOI

Abstract

Prior works about text-to-image synthesis typically concatenated the sentence embedding with the noise vector, while the sentence embedding and the noise vector are two different factors, which control the different aspects of the generation. Simply concatenating them will entangle the latent factors and encumber the generative model. In this paper, we attempt to decompose these two factors and propose Factor Decomposed Generative Adversarial Networks (FDGAN). To achieve this, we firstly generate images from the noise vector and then apply the sentence embedding in the normalization layer for both generator and discriminators. We also design an additive norm layer to align and fuse the text-image features. The experimental results show that decomposing the noise and the sentence embedding can disentangle latent factors in text-to-image synthesis, and make the generative model more efficient. Compared with the baseline, FDGAN can achieve better performance, while fewer parameters are used.

Introduction

In traditional text-to-image GANs, the model receives two primary inputs: a sentence embedding representing the text description and a noise vector representing random variations such as pose or background. Most existing architectures simply concatenate these two vectors at the start of the generation process.

However, this approach is fundamentally flawed because these inputs represent distinct latent factors. Text typically describes the identity or texture of an object, while noise dictates spatial details and pose. Concatenating them "entangles" these factors, forcing the network to learn complex interactions and requiring more parameters to compensate for the resulting confusion. The challenge lies in fusing these different modalities—text and image features—without causing error accumulation or loss of efficiency.

Methodology

The Factor Decomposed GAN (FDGAN) addresses these issues through three main innovations:

  1. Factor Decomposition: Instead of concatenation, the model first generates initial image features solely from the noise vector. Text information is injected later through normalization layers.
  2. Additive Instance Normalization (AddIN): This is a variation of Adaptive Instance Normalization (AdaIN). While AdaIN uses both learnable weights (scaling) and biases (shifting), the authors found that multiplicative weights can lead to cumulative errors when aligning text and images. AddIN uses only a learnable bias to align and fuse text features into the image feature maps.
  3. Decomposed Discriminator (FDJD): The discriminator also employs AddIN to modulate image features with the global text condition, improving its ability to judge the alignment between the text and the generated image.
Detailed architecture of the Factor Decomposed GAN (FDGAN) and its Jointly Discriminator (FDJD).

Key Insights and Results

The researchers evaluated FDGAN on the CUB 200-2011 (birds) and MS COCO datasets.

Disentanglement and Interpretability

A significant finding is the model's ability to disentangle latent factors. In FDGAN, keeping the noise vector constant while changing the text results in the bird's pose remaining the same while its color and species change. In contrast, baseline models like AttnGAN often scramble the entire image structure when the text is modified.

Comparison of FDGAN and AttnGAN architectures and qualitative results demonstrating disentanglement.

Performance and Efficiency

  • Quantitative Results: On the CUB dataset, FDGAN achieved a Fréchet Inception Distance (FID) of 19.86, outperforming AttnGAN's 23.98 (lower is better).
  • Parameter Efficiency: By separating the factors, the model becomes more interpretable to the neural network, allowing FDGAN to outperform AttnGAN while using approximately 32% fewer parameters (19.28 MB vs 28.49 MB).
  • Robustness: Qualitative tests showed FDGAN is more robust when changing single words in a prompt (e.g., changing "blue bus" to "red bus"), maintaining scene consistency better than previous models.

Conclusion

FDGAN demonstrates that treating text embeddings and noise vectors as independent factors significantly improves text-to-image synthesis. While it may not yet reach the Inception Scores of massive models like DM-GAN, its efficiency and disentanglement capabilities provide a strong backbone for future research. Integrating this decomposition approach with advanced components like dynamic memory or transformer-based encoders represents a promising path forward.

Summary updated

BibTeX
@misc{li2023factor,
  author = {Jiguo Li and Xiaobin Liu and Li‐Rong Zheng},
  title = {{Factor Decomposed Generative Adversarial Networks for Text-to-Image Synthesis}},
  year = {2023},
  eprint = {2303.13821},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.13821},
}
Figure