FA-GAN: Feature-Aware GAN for Text to Image Synthesis

Eunyeong Jeon, Kunhee Kim, Daijin Kim

Abstract

Generative Adversarial Networks (GANs) often struggle to maintain the structural integrity of objects in text-to-image synthesis, frequently producing distorted shapes or "blobs." FA-GAN (Feature-Aware GAN) addresses this by transforming the discriminator into a self-supervised teacher. By incorporating a reconstruction task, the discriminator learns richer feature representations. These features are then used via a "Feature-Aware Loss" to provide the generator with more precise, structural supervision. Experimental results on the MS-COCO dataset demonstrate that FA-GAN significantly improves image realism and object intactness, achieving a state-of-the-art FID score of 24.58.

Introduction

While text-to-image synthesis has seen rapid progress, generating "intact" objects remains a challenge. Models often capture global color distributions but fail on fine-grained structural details—for instance, a "person on skis" might appear as a blurry silhouette rather than a distinct human form. Previous solutions often relied on heavy, pre-trained external networks like VGG for perceptual loss, which can be computationally expensive and may not align perfectly with the target dataset's specific features. FA-GAN proposes a more efficient, internal mechanism to provide high-quality feedback to the generator.

Methods

FA-GAN builds upon the single-stage DF-GAN architecture with two key components: the Self-Supervised Discriminator (SSD) and the Feature-Aware (FA) Loss.

Architecture of FA-GAN: (a) Self-supervised discriminator with reconstruction task and (b) Feature-aware loss mechanism.

Self-Supervised Discriminator (SSD)

In a standard GAN, the discriminator only learns a binary classification (real vs. fake). FA-GAN adds an auxiliary decoder to the discriminator's intermediate layers. This forces the discriminator to reconstruct real images from its internal feature maps. To succeed at this "side quest," the discriminator must extract and preserve deep, structural information about the data, making its internal representations far more informative.

Feature-Aware Loss (FA Loss)

The rich features learned by the SSD are then leveraged to train the generator. The FA Loss calculates the $L1$ distance between the feature maps of a real image and a generated image when conditioned on the same text prompt. This provides the generator with a detailed "critique" of its internal object representations compared to real-world examples, acting as a powerful regularizer that anchors the generator's output to realistic distributions.

Key Results

The effectiveness of FA-GAN was evaluated on the MS-COCO dataset, a standard benchmark for complex scene synthesis.

Quantitative Performance

FA-GAN achieved a significant improvement in the Fréchet Inception Distance (FID) score, reducing it from the previous state-of-the-art (DF-GAN) of 28.92 down to 24.58. Ablation studies confirmed that the combination of SSD and FA Loss is crucial; using FA Loss without the self-supervised reconstruction task actually led to performance degradation, highlighting the importance of the learned feature quality.

Qualitative Comparison

Visual comparisons clearly demonstrate FA-GAN's superior ability to maintain object shapes and textures.

Qualitative comparison of FA-GAN against AttnGAN and DF-GAN. FA-GAN produces more distinct object boundaries and realistic textures for complex prompts.

As shown in the figure above, for prompts like "giraffes stand next to the tree," FA-GAN generates recognizable animal forms and clear tree structures, whereas earlier models produce more abstract or warped shapes.

Conclusion

FA-GAN demonstrates that the discriminator can be more than just a critic; it can be an effective teacher. By introducing self-supervised reconstruction, the model unlocks latent structural knowledge within the discriminator to guide the generator. While currently dependent on paired text-image data for the FA loss, future work could explore adapting this feature-aware framework to diffusion models or more complex self-supervised auxiliary tasks.

Summary updated

BibTeX
@inproceedings{jeon2021fa,
  author = {Eunyeong Jeon and Kunhee Kim and Daijin Kim},
  title = {{FA-GAN: Feature-Aware GAN for Text to Image Synthesis}},
  booktitle = {ICIP},
  year = {2021},
  url = {https://openreview.net/forum?id=7s0h1gT_UP},
}
Figure