[Paper Review] Feature-Style Encoder for Style-Based GAN Inversion
This paper proposes a Feature-Style encoder that decouples feature and style representations in the latent space of style-based GANs, enabling high-fidelity image inversion and robust editing without optimization at inference. It achieves state-of-the-art performance with 50% lower LPIPS and superior video inversion consistency by jointly learning feature codes for reconstruction and latent codes for editing.
We propose a novel architecture for GAN inversion, which we call Feature-Style encoder. The style encoder is key for the manipulation of the obtained latent codes, while the feature encoder is crucial for optimal image reconstruction. Our model achieves accurate inversion of real images from the latent space of a pre-trained style-based GAN model, obtaining better perceptual quality and lower reconstruction error than existing methods. Thanks to its encoder structure, the model allows fast and accurate image editing. Additionally, we demonstrate that the proposed encoder is especially well-suited for inversion and editing on videos. We conduct extensive experiments for several style-based generators pre-trained on different data domains. Our proposed method yields state-of-the-art results for style-based GAN inversion, significantly outperforming competing approaches. Source codes are available at https://github.com/InterDigitalInc/FeatureStyleEncoder .
Motivation & Objective
- To address the limitations of existing GAN inversion methods, which suffer from poor perceptual quality, high reconstruction error, and instability in video sequences.
- To develop an end-to-end encoder that separates feature and style representations in the latent space for improved inversion and editing.
- To eliminate the need for optimization at inference time, enabling fast and consistent image and video editing.
- To improve generalization on outlier data, such as non-frontal poses in talking face videos.
- To achieve a balanced trade-off between high-fidelity reconstruction and effective editing capability.
Proposed method
- The model uses a dual-branch encoder: one branch predicts a feature code for spatial details, and the other predicts a latent code for style manipulation.
- The feature code is derived from intermediate feature maps of a pretrained StyleGAN2 generator, preserving fine-grained structures.
- The latent code is predicted via a style-aware head, enabling disentangled editing of appearance attributes like makeup and eye color.
- A multi-scale perceptual loss is used to supervise the feature code, improving reconstruction fidelity.
- The model is trained end-to-end with a combined loss: perceptual loss on features, reconstruction loss on generated images, and a cycle-consistency loss for disentanglement.
- Synthetic images are used during training to improve robustness and generalization, especially for out-of-distribution inputs.
Experimental results
Research questions
- RQ1Can separating feature and style representations in the latent space improve GAN inversion quality without optimization at inference?
- RQ2How does joint learning of feature and latent codes affect reconstruction fidelity and editing capability?
- RQ3Can the proposed encoder generalize to challenging cases such as non-frontal poses in video sequences?
- RQ4What is the impact of multi-scale perceptual supervision and synthetic data on inversion performance?
- RQ5How does the method compare quantitatively and qualitatively to state-of-the-art GAN inversion models on images and videos?
Key findings
- The proposed method achieves a LPIPS score of 0.064 on FFHQ, representing a 50% improvement over the next best method (pSp: 0.143) and a 20–50% reduction compared to SOTA.
- On video inversion, the method achieves an SSIM of 0.818, PSNR of 26.64, and LPIPS of 0.122, outperforming all baselines in both reconstruction and perceptual quality.
- The ablation study confirms that the multi-scale perceptual loss improves perceptual quality (FID: 19.03 vs. 22.63 without it), and the feature branch is critical for fidelity (FID: 35.28 without it).
- The model maintains identity consistency across extreme poses in video sequences, unlike other methods that fail on non-frontal views.
- The inclusion of synthetic data during training significantly improves FID (19.03 vs. 20.45 without synthetic data), indicating better generalization.
- The method enables fast, optimization-free inference, making it suitable for real-time video editing pipelines.
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.