Skip to main content
QUICK REVIEW

[Paper Review] Improving Inversion and Generation Diversity in StyleGAN using a Gaussianized Latent Space

Jonas Wulff, Antonio Torralba|arXiv (Cornell University)|Sep 14, 2020
Generative Adversarial Networks and Image SynthesisComputer Science17 references26 citations
TL;DR

This paper proposes a Gaussianized latent space for StyleGAN by applying a nonlinear transformation (leaky ReLU) to the intermediate latent space (W+), enabling a tractable Gaussian prior that improves inversion stability and generation diversity. The method reduces artifacts without sacrificing diversity, outperforming truncation in preserving facial identity while maintaining comparable FID scores.

ABSTRACT

Modern Generative Adversarial Networks are capable of creating artificial, photorealistic images from latent vectors living in a low-dimensional learned latent space. It has been shown that a wide range of images can be projected into this space, including images outside of the domain that the generator was trained on. However, while in this case the generator reproduces the pixels and textures of the images, the reconstructed latent vectors are unstable and small perturbations result in significant image distortions. In this work, we propose to explicitly model the data distribution in latent space. We show that, under a simple nonlinear operation, the data distribution can be modeled as Gaussian and therefore expressed using sufficient statistics. This yields a simple Gaussian prior, which we use to regularize the projection of images into the latent space. The resulting projections lie in smoother and better behaved regions of the latent space, as shown using interpolation performance for both real and generated images. Furthermore, the Gaussian model of the distribution in latent space allows us to investigate the origins of artifacts in the generator output, and provides a method for reducing these artifacts while maintaining diversity of the generated images.

Motivation & Objective

  • To address the instability and poor interpolation performance in StyleGAN's latent space when inverting out-of-domain images.
  • To model the data distribution in the intermediate latent space (W+) as a Gaussian for better regularization during inversion.
  • To identify and mitigate artifacts in generated images without reducing diversity, unlike the standard truncation method.
  • To provide a principled, data-driven prior for latent space inversion that enhances semantic consistency and image quality.

Proposed method

  • Apply a nonlinear transformation—specifically, an element-wise leaky ReLU—to the intermediate latent vectors in W+ to Gaussianize the data distribution.
  • Estimate the mean μ and covariance Σ of the transformed latent vectors to define a closed-form Gaussian prior.
  • Use the Gaussian prior as a regularization term in the inversion optimization to guide latent code search toward smoother, more stable regions of the latent space.
  • Perform Principal Component Analysis (PCA) on the Gaussianized latent space to identify high-magnitude components responsible for artifacts.
  • Apply logarithmic compression to components exceeding a threshold τσ to reduce artifact impact while preserving diversity.
  • Reconstruct images from the compressed, reprojected latent codes to generate artifact-reduced, diverse samples.

Experimental results

Research questions

  • RQ1Can the data distribution in StyleGAN's W+ space be effectively modeled as a Gaussian after a simple nonlinear transformation?
  • RQ2Does imposing a Gaussian prior on the latent space improve the stability and quality of image inversion for out-of-domain images?
  • RQ3Can the Gaussian model be used to identify and remove artifacts in generated images without reducing visual diversity?
  • RQ4How does logarithmic compression of high-magnitude principal components compare to truncation in preserving facial identity and image quality?

Key findings

  • The latent space of StyleGAN, after applying an element-wise leaky ReLU to the W+ vectors, exhibits a Gaussian distribution that can be modeled using mean and covariance.
  • Incorporating the Gaussian prior into inversion significantly improves interpolation performance between real and generated images, indicating smoother and more stable latent representations.
  • Logarithmic compression of principal components with large magnitudes effectively reduces artifacts in generated images, particularly in faces.
  • At the same Fréchet Inception Distance (FID) as truncation, the proposed method preserves facial identity significantly better, as measured by cosine similarity in a face embedding space.
  • The method maintains higher visual diversity compared to truncation, even when correcting for artifacts, and produces images that are subjectively closer to the original input.
  • The FID curves for truncation and compression are similar in shape, but the proposed method achieves better perceptual quality and identity preservation at equivalent FID values.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.