Abstract
StyleGAN has demonstrated the ability of GANs to synthesize highly-realistic faces of imaginary people from random noise. One limitation of GAN-based image generation is the difficulty of controlling the features of the generated image, due to the strong entanglement of the low-dimensional latent space. Previous work that aimed to control StyleGAN with image or text prompts modulated sampling in W latent space, which is more expressive than Z latent space. However, W space still has restricted expressivity since it does not control the feature synthesis directly; also the feature embedding in W space requires a pre-training process to reconstruct the style signal, limiting its application. This paper introduces the concept of "generative fields" to explain the hierarchical feature synthesis in StyleGAN, inspired by the receptive fields of convolution neural networks (CNNs). Additionally, we propose a new image editing pipeline for StyleGAN using generative field theory and the channel-wise style latent space S, utilizing the intrinsic structural feature of CNNs to achieve disentangled control of feature synthesis at synthesis time.
Introduction
While StyleGAN can generate hyper-realistic faces, controlling specific attributes remains a significant challenge. The internal latent spaces of these models are often "entangled," meaning that attempts to modify one feature (e.g., a smile) frequently result in unintended changes to others (e.g., identity or gender). Previous research has largely focused on the $W$ latent space, but this approach often lacks the granularity needed for precise feature control. This paper addresses these limitations by introducing Generative Fields, a structural framework derived from the architecture of the neural network itself, to achieve fine-grained, disentangled image editing.
Methodology: Generative Fields and the Style Space
The core innovation of this work is the concept of Generative Fields (GFs), which are the mathematical inverse of the "receptive fields" used in standard convolutional neural networks (CNNs). While a receptive field identifies which input pixels influence a specific output neuron, a Generative Field identifies which area of the final synthesized image is influenced by a specific internal neuron.
Hierarchical Control
The authors demonstrate that the size of a generative field correlates with the scale of the feature it controls. Early layers in the generator have large GFs, making them suitable for global attributes like head pose. Conversely, later layers have small GFs, allowing for the manipulation of fine-grained details like facial expressions or textures.
The $S$ Space and Regularization
Rather than using the standard $W$ space, the proposed pipeline operates in the channel-wise style space ($S$). This space provides independent control over every convolution channel, offering significantly higher expressivity. To ensure that edits remain within the manifold of realistic images, the authors model the style space distribution as a Gaussian, providing a regularization mechanism that prevents the generation of artifacts.
Experimental Setup
The model was trained and evaluated using the FFHQ256 dataset. The training set included 36,000 synthetic identity images generated by StyleGAN2 and 12,000 real-world images from FFHQ to serve as references for various poses and expressions. The pipeline utilizes auxiliary encoders for identity and attributes to calculate a style delta ($\Delta S$), which is then injected into the generator.
Results
The proposed method demonstrates superior performance in both quantitative and qualitative evaluations compared to state-of-the-art models like LORD and IDDISEN.
- Identity Preservation: The model achieved an identity accuracy score of 0.82, a substantial improvement over IDDISEN's 0.60.
- Pose Accuracy: Pose error was reduced to 1.67, compared to 9.74 for IDDISEN.
- Sparsity: Analysis revealed that the style space is highly sparse; only about 50 "active" dimensions out of nearly 5,000 drive most specific feature changes.
Conclusion and Future Work
Generative Fields provide a principled way to understand and control the hierarchical synthesis process in StyleGAN. By leveraging the $S$ space and the structural properties of GFs, the proposed pipeline achieves high-fidelity, disentangled editing. Future work will explore the integration of 3D Morphable Models (3DMM) to improve geometric consistency in extreme poses and scaling the approach to higher-resolution images.
Summary updated