FaceCook: Face Generation Based on Linear Scaling Factors

Tianren Wang, Can Peng, Teng Zhang, Brian C. LovellarXiv 2021

TL;DR

This paper introduces "FaceCook," a novel method for generating realistic face images with controlled attributes like age and gender. Instead of editing existing images, FaceCook directly generates new images from semantic labels by mapping latent vectors to a learned "hyper coordinate system," leading to improved attribute accuracy and image diversity with greater efficiency.

What Problem Does This Paper Address?

Controlling specific attributes (like age or gender) in generated face images is a key goal in computer vision. Current methods often rely on editing existing synthesized images. However, this approach frequently leads to undesirable artifacts, incorrect feature rendering, and global changes to the image identity, especially when the desired attributes are significantly different from the original. This is because existing generative models, even advanced ones like StyleGAN, are not perfectly "disentangled," meaning changes to one attribute can unintentionally affect others. The paper aims to overcome these limitations by generating images directly from semantic labels, bypassing the problematic editing process.

Methods

The core of FaceCook lies in establishing a "hyper coordinate system" derived from the pre-trained StyleGAN model. This system is built upon the eigenvectors of the weight parameters of StyleGAN. The authors propose a method to map latent vectors from StyleGAN to "scaling factors" within this hyper coordinate system by solving a set of multivariate linear equations.

Key steps include:

  • Feature Disentanglement: Leveraging the existing disentanglement properties of StyleGAN's intermediate latent space (W).
  • Unsupervised Semantic Factorization: Computing principal components of the semantic feature space by solving an optimization problem that identifies directions of significant variation in the model's weights. This effectively creates the axes of the hyper coordinate system.
  • Scaling Factors Resampling: Projecting random latent vectors into this scaling factor space. The crucial innovation here is uniformly sampling new scaling factor combinations from defined value ranges corresponding to semantic labels (e.g., "young," "middle-aged," "old," "male," "female"). This uniform sampling, visualized as transforming "irregular curved bodies" into "cubes" in the latent space, ensures a more even distribution of generated features and avoids the biases of the original latent distribution. These resampled factors are then used to compute new latent vectors and generate images.

Datasets

The paper primarily uses the CelebA dataset for training and evaluation, as it's a common benchmark for face attribute tasks. They also mention using a pre-trained StyleGAN model, implying it was trained on a large, unstated dataset of faces.

Key Insights and Ideas

  • Direct Generation is Superior to Editing: The paper strongly advocates for generating images directly from semantic labels rather than editing existing ones, especially when large attribute discrepancies are involved. This bypasses the artifact-prone editing pipeline.
  • Eigenvectors as a Hyper Coordinate System: Utilizing the eigenvectors of StyleGAN's weight parameters as the basis for a hyper coordinate system is a novel way to interpret and manipulate the model's learned feature space.
  • Uniform Sampling for Diversity: The insight that uniformly sampling scaling factors within defined semantic ranges leads to greater image diversity and better attribute accuracy is critical. This contrasts with the often uneven distribution of features in the original latent space.
  • Time Efficiency: Generating images directly from latent vectors is significantly faster than iterative editing processes, making the method more practical.

Key Results

  • Improved Image Diversity: Quantitative evaluation using the LPIPS metric shows that FaceCook outperforms the baseline StyleGAN in terms of image diversity. The uniformly sampled points scatter more evenly, leading to a larger average distance between sample points.
  • Enhanced Attribute Accuracy: Qualitative results and a user study (Table III) indicate good performance in age and gender transformation. The "young female" class achieved the highest accuracy (97.0%), attributed to the CelebA dataset's imbalance favoring this demographic.
  • Time Efficiency: The method is described as "much more time-efficient" as it avoids the multi-step process of editing randomly generated images.

Limitations and Future Work

  • Limited Semantic Labels: The current study focuses on only two crucial semantic labels: age and gender. The authors acknowledge that this is insufficient for fully describing faces and plan to extend their work to control a larger range of features.
  • Global Feature Variation: While image diversity is improved, the method may lose some global feature variations, such as face angles.
  • Subspace Assumption: The assumption that a semantic label's subspace exists only in one place might be too restrictive. The authors suggest that for a given semantic label, the subspace might not be confined to a single location, implying potential for further exploration.

Summary updated

BibTeX
@misc{wang2021facecook,
  author = {Tianren Wang and Can Peng and Teng Zhang and Brian C. Lovell},
  title = {{FaceCook: Face Generation Based on Linear Scaling Factors}},
  year = {2021},
  eprint = {2109.03492},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.03492},
}
Figure