Skip to main content
QUICK REVIEW

[Paper Review] SemanticStyleGAN: Learning Compositional Generative Priors for Controllable Image Synthesis and Editing

Yichun Shi, Xiao Yang|arXiv (Cornell University)|Dec 3, 2021
Generative Adversarial Networks and Image SynthesisComputer Science8 citations
TL;DR

SemanticStyleGAN introduces a compositional GAN architecture that disentangles the latent space by modeling local semantic parts (e.g., eyes, hair, mouth) with dedicated latent codes, enabling fine-grained control over both structure and texture. By jointly training on images and segmentation masks, it achieves superior disentanglement and enables more precise editing when combined with existing StyleGAN-based methods.

ABSTRACT

Recent studies have shown that StyleGANs provide promising prior models for downstream tasks on image synthesis and editing. However, since the latent codes of StyleGANs are designed to control global styles, it is hard to achieve a fine-grained control over synthesized images. We present SemanticStyleGAN, where a generator is trained to model local semantic parts separately and synthesizes images in a compositional way. The structure and texture of different local parts are controlled by corresponding latent codes. Experimental results demonstrate that our model provides a strong disentanglement between different spatial areas. When combined with editing methods designed for StyleGANs, it can achieve a more fine-grained control to edit synthesized or real images. The model can also be extended to other domains via transfer learning. Thus, as a generic prior model with built-in disentanglement, it could facilitate the development of GAN-based applications and enable more potential downstream tasks.

Motivation & Objective

  • To address the lack of fine-grained control in StyleGANs, where global latent codes influence the entire image.
  • To develop a generative prior that enables disentangled manipulation of local semantic regions (e.g., eyes, hair) without global interference.
  • To enable transfer learning to new domains (e.g., fashion, toons) using only image data after initial pretraining with segmentation masks.
  • To combine with existing StyleGAN editing methods for enhanced, localized image editing capabilities.

Proposed method

  • The generator uses a set of local generators, each responsible for a semantic part defined by a segmentation mask.
  • Each local generator is conditioned on a dedicated latent code that controls both shape and texture of its corresponding part.
  • Features from local generators are aggregated using masked fusion to synthesize the final image.
  • The model is trained end-to-end using a joint objective that models both image reconstruction and semantic segmentation mask consistency.
  • The architecture enforces spatial disentanglement by separating feature modulation per semantic region, reducing cross-region interference.
  • The model supports transfer learning by fine-tuning on image-only datasets while preserving local disentanglement.
(a)
(a)

Experimental results

Research questions

  • RQ1Can a GAN be trained to disentangle local semantic parts in the latent space while maintaining high image quality?
  • RQ2Can local latent codes enable more precise editing of specific image regions compared to global StyleGAN controls?
  • RQ3Can the model be effectively fine-tuned on image-only datasets from new domains while retaining spatial disentanglement?
  • RQ4How well does the model integrate with existing StyleGAN editing methods for improved controllability?
  • RQ5To what extent does the model generalize to non-face domains such as fashion or cartoon images?

Key findings

  • SemanticStyleGAN achieves strong disentanglement between spatial regions, enabling independent control over structure and texture of local parts.
  • When combined with optimization-based editing (e.g., StyleCLIP), the model enables faithful, localized edits that respect user-specified regions.
  • The model maintains local disentanglement after fine-tuning on image-only datasets such as Toonify, MetFaces, and BitMoji, despite no segmentation masks during fine-tuning.
  • The model successfully generalizes to non-face domains, such as DeepFashion, where it enables controllable generation of diverse clothing styles per semantic part.
  • The method enables high-quality image synthesis with improved editability, as demonstrated by qualitative results showing accurate, localized changes without global artifacts.
  • The model outperforms standard StyleGAN in localized editing tasks, particularly when editing attributes like hair style or facial features with minimal unintended changes.
(b)
(b)

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.