[Paper Review] StyleGAN2 Distillation for Feed-forward Image Manipulation
This paper proposes a distillation method to transfer specific StyleGAN2 image manipulations—such as gender swap, aging, and style mixing—into a feed-forward image-to-image translation network. By generating synthetic paired training data from StyleGAN2's disentangled latent space, the approach achieves high-quality, real-time inference comparable to backpropagation-based optimization, outperforming existing unpaired methods and StyleGAN encoders in user studies for gender swapping.
StyleGAN2 is a state-of-the-art network in generating realistic images. Besides, it was explicitly trained to have disentangled directions in latent space, which allows efficient image manipulation by varying latent factors. Editing existing images requires embedding a given image into the latent space of StyleGAN2. Latent code optimization via backpropagation is commonly used for qualitative embedding of real world images, although it is prohibitively slow for many applications. We propose a way to distill a particular image manipulation of StyleGAN2 into image-to-image network trained in paired way. The resulting pipeline is an alternative to existing GANs, trained on unpaired data. We provide results of human faces' transformation: gender swap, aging/rejuvenation, style transfer and image morphing. We show that the quality of generation using our method is comparable to StyleGAN2 backpropagation and current state-of-the-art methods in these particular tasks.
Motivation & Objective
- To enable fast, feed-forward image manipulation of real-world faces without backpropagation-based latent code optimization.
- To address the impracticality of backpropagation for real-time applications in production environments.
- To generate high-quality synthetic paired datasets from StyleGAN2's disentangled latent space for training image-to-image networks.
- To demonstrate that models trained on synthetic data can generalize effectively to real-world images.
- To outperform existing unpaired image-to-image translation methods and StyleGAN encoders in both quantitative metrics and user preference for specific manipulations.
Proposed method
- Synthetic paired datasets are generated by applying controlled latent space operations (e.g., vector addition, interpolation, averaging) in StyleGAN2's W+ space.
- For each manipulation task (gender swap, aging, style mixing), multiple image triplets or pairs are created using reference images and manipulated latent codes.
- A pix2pixHD-based image-to-image translation network is trained on the synthetic paired data to learn the mapping from source to manipulated image.
- The method leverages the disentangled nature of StyleGAN2’s latent space to generate diverse, realistic, and semantically meaningful paired data.
- The distilled model enables real-time, feed-forward inference, bypassing slow backpropagation-based latent optimization.
- The approach is modular, allowing separate models to be trained for different manipulation types.
Experimental results
Research questions
- RQ1Can synthetic paired data generated from StyleGAN2’s latent space enable high-quality, feed-forward image manipulation without backpropagation?
- RQ2How does the performance of a distilled image-to-image network compare to backpropagation-based latent optimization in terms of realism and user preference?
- RQ3Can a model trained exclusively on synthetic data generalize effectively to real-world images in complex manipulation tasks?
- RQ4To what extent does the disentanglement of StyleGAN2’s latent space enable clean, task-specific manipulations in the distilled model?
- RQ5Does the distilled approach outperform existing unpaired image-to-image translation methods in specific tasks like gender swap and aging?
Key findings
- The distilled model achieves user study win rates of 86% in quality and 86% in realism for gender swap, outperforming StyleGAN Encoder (Nikitko) and other baselines.
- The method achieves FID scores comparable to StyleGAN2 backpropagation and state-of-the-art unpaired methods, with a FID of 12.4 on the gender swap task.
- User studies show that the distilled model outperforms StyleGAN2 projection (W+) and W+ with a 78% win rate in realism and 86% in quality.
- The approach generalizes well to other tasks: aging/rejuvenation and style mixing produce visually plausible and consistent results on real FFHQ images.
- Despite latent space entanglement, the method maintains high visual quality, with only minor artifacts like unintended smiles in female face generation.
- The distilled model enables real-time inference, making it suitable for production use, unlike backpropagation-based methods which are prohibitively slow.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.