Semantic Text-to-Face GAN -ST^2FG

Manan Oza, Sukalpa Chanda, David Doermann · DOI

TL;DR

This paper introduces a novel Semantic Text-to-Face GAN (ST²FG) that generates realistic facial images from detailed text descriptions. It addresses the challenge of creating precise facial likenesses by using an Affine Combination Module with self-attention to effectively fuse text and image information, outperforming existing methods in image quality and accuracy.

What Problem Does This Paper Address?

Generating realistic facial images from text descriptions is a challenging task. While significant progress has been made in general text-to-image synthesis and image manipulation using GANs, creating highly specific facial likenesses from natural language descriptions remains largely unaddressed. This capability is crucial for applications like security and criminal identification, where a system that can act like a sketch artist, translating detailed descriptions into visual representations, would be invaluable. Existing methods often struggle with fine-grained details, can be prone to distortions during manipulation, or require reference images, which is not ideal when starting solely from a textual description.

Methods

The proposed ST²FG model employs a two-stage architecture. The first stage focuses on generating a low-resolution image by learning a joint latent space. This is achieved using a cyclic adversarial network that acts as an autoencoder, mapping images to text and vice versa. Crucially, it uses an Affine Combination Module (ACM) with a self-attention mechanism to combine text embeddings (from a BERT model) and the GAN's latent space. This attention mechanism is key to ensuring that the model focuses on text-relevant features, preventing information loss that can occur with simple concatenation. The second stage refines this low-resolution image, increasing its resolution and improving its attributes and features. This refinement process leverages a VGG-16 network for feature extraction and incorporates spatial and channel-wise attention, along with a perceptual loss to reduce randomness and preserve text-irrelevant content.

Datasets

The primary dataset used for training and evaluation is the Multi-Modal CelebA-HQ dataset. This dataset comprises 30,000 high-resolution (1024x1024) images, each accompanied by ten descriptive sentences, sketches, and masks. The authors note that while CelebA and CelebA-HQ datasets are available, they lack text descriptions, making them unsuitable for this task. For fair comparison, they utilized the pre-defined train-test split from a previous work [38], which includes 6,000 images for testing.

Key Insights and Ideas

  • Attention is crucial for effective text-image fusion: Simply concatenating text embeddings with image latent vectors leads to information loss. The proposed Attention Affine Combination Module (ACM) with self-attention effectively fuses these modalities, allowing the model to focus on text-relevant features and achieve more precise attribute generation.
  • Cyclic consistency aids in learning a robust latent space: The use of a cyclic adversarial network (inspired by cycle-GANs) helps in learning a mapping between image and text domains. This process, even if not perfectly accurate for direct generation, creates a latent space that effectively replicates the noise vector, providing a strong foundation for the generator.
  • BERT's contextual understanding is vital for semantic accuracy: The paper highlights BERT's ability to understand word meanings within their context, which is essential for accurately translating detailed textual descriptions into specific facial features.
  • Two-stage generation for quality and refinement: The separation into a low-resolution generation stage followed by a refinement stage allows for both initial feature generation and subsequent fine-tuning of details and resolution, leading to higher-quality outputs.

Key Results

The proposed ST²FG model demonstrates superior performance compared to state-of-the-art methods on the Multi-Modal CelebA-HQ dataset across four metrics: FID score, LPIPS score, BRISQUE score, and Manipulative Precision score. Specifically, the model achieved an FID score of 104.81, outperforming TediGAN (106.37) and ManiGAN (114.65). Qualitative results, as shown in Table 1 and Figure 4, illustrate the model's ability to generate images that are accurately aligned with detailed textual descriptions, including subtle features and modifications. The paper also shows that the cyclic network plays a crucial role, with its removal leading to a significant drop in performance.

Limitations and Future Work

The authors acknowledge that while their model generates high-resolution, realistic images aligned with text descriptions, a direct comparison with a human sketch artist's rendition of the same descriptions was not performed. They suggest that involving a professional sketch artist and incorporating their working procedures into the methodology would be a valuable future direction. Additionally, they propose exploring the extendability of their model for multi-modal inputs beyond just text and images.

Summary updated

Abstract

Faces generated using generative adversarial networks (GANs) have reached unprecedented realism. These faces, also known as "Deep Fakes", appear as realistic photographs with very little pixel-level distortions. While some work has enabled the training of models that lead to the generation of specific properties of the subject, generating a facial image based on a natural language description has not been fully explored. For security and criminal identification, the ability to provide a GAN-based system that works like a sketch artist would be incredibly useful. In this paper, we present a novel approach to generate facial images from semantic text descriptions. The learned model is provided with a text description and an outline of the type of face, which the model uses to sketch the features. Our models are trained using an Affine Combination Module (ACM) mechanism to combine the text embedding from BERT and the GAN latent space using a self-attention matrix. This avoids the loss of features due to inadequate "attention", which may happen if text embedding and latent vector are simply concatenated. Our approach is capable of generating images that are very accurately aligned to the exhaustive textual descriptions of faces with many fine detail features of the face and helps in generating better images. The proposed method is also capable of making incremental changes to a previously generated image if it is provided with additional textual descriptions or sentences.
BibTeX
@misc{oza2021semantic,
  author = {Manan Oza and Sukalpa Chanda and David Doermann},
  title = {{Semantic Text-to-Face GAN -ST^2FG}},
  year = {2021},
  eprint = {2107.10756},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.10756},
}
Figure