Multi-Modal Face Stylization with a Generative Prior

Mengtian Li, Yi Dong, Minxuan Lin, Haibin Huang, Pengfei Wan, Chongyang Ma

Introduction

Face stylization—the process of automatically transforming a photograph into an artistic medium such as a cartoon, painting, or sketch—is a cornerstone of modern digital art and entertainment. Despite its popularity, the task remains challenging due to the extreme sensitivity of human perception to facial features. Existing methodologies often suffer from a rigid trade-off: they either produce high-quality artistic effects at the cost of the subject's identity and structural integrity, or they preserve the identity but fail to achieve diverse or compelling artistic styles.

Furthermore, most current models are limited to a single mode of guidance, such as random generation, image-to-image translation (one-shot), or text-to-image synthesis (zero-shot). This paper introduces Multi-Modal Face Stylization (MMFS), a unified encoder-decoder framework designed to handle all these guidance types while maintaining high artistic fidelity and accurate facial reconstruction.

Methodology

The MMFS framework leverages the powerful generative capabilities of a pre-trained StyleGAN2 model as a generative prior. Unlike traditional approaches that rely on GAN inversion—which often loses fine spatial details by compressing images into low-dimensional latent vectors—MMFS employs a convolution-based encoder to directly predict the 32×32 low-resolution feature maps of StyleGAN2.

Two-Stage Training Strategy

To ensure both structural accuracy and artistic flexibility, the authors implement a two-stage training process:

  1. Pre-training for Reconstruction: The encoder is first trained to reconstruct real faces from the FFHQ dataset by aligning its outputs with the frozen StyleGAN2 prior. This stage ensures the network learns to faithfully preserve the underlying facial structure.
  2. Fine-tuning for Stylization: The entire network is then fine-tuned on the Artistic Faces HQ (AAHQ) dataset. During this stage, an adversarial loss is used to capture artistic styles, while a DINO-ViT self-similarity loss is employed to ensure the stylized output remains structurally consistent with the original input photograph.

Multi-Modal Guidance via CLIP

To enable user-controlled stylization, the framework incorporates a 4-layer Transformer mapping network. This component maps features from a pre-trained CLIP model into the latent space of the fine-tuned StyleGAN decoder. For image-guided (one-shot) stylization, the authors introduce a novel projection loss using Singular Value Decomposition (SVD) on CLIP ViT tokens. This allows the model to capture specific patch-level color and texture details that global CLIP losses often overlook.

Multi-modal stylization results. The top row shows a single source face transformed into various artistic styles. The bottom rows demonstrate image-guided stylization using specific references like Elsa or a pencil sketch style applied across multiple subjects.

Key Insights

  • Spatial Alignment vs. Latent Projection: A critical architectural choice in MMFS is aligning the encoder with the mid-layer spatial feature maps of StyleGAN2 rather than its $w/w+$ latent space. This explicitly decouples content (handled by the spatial encoder) from style (handled by the decoder's latent inputs), allowing for dramatic stylistic shifts without warping the subject's facial structure.
  • The Importance of Generative Priors: Ablation studies indicate that training the encoder-decoder architecture from scratch on artistic data leads to blurry results and slow convergence. Anchoring the model in a real-face reconstruction task first is essential for high-fidelity outputs.
  • Layer-Specific CLIP Features: The authors found that different CLIP layers capture distinct stylistic aspects. Shallow layers are more effective for color and texture, while deeper layers capture broad semantics. The novel projection loss leverages these insights to balance style transfer effectively.

Experimental Results

MMFS demonstrates significant improvements over existing state-of-the-art methods both quantitatively and qualitatively.

  • Quantitative Performance: In random stylization tasks, MMFS achieved a Frechet Inception Distance (FID) of 10.39, significantly outperforming the next best baseline, DRIT++ (16.18). It also secured the highest identity preservation score with an Arcface-Dist of 0.507.
  • Qualitative Quality: Compared to models like JoJoGAN, BlendGAN, and StyleGAN-NADA, MMFS avoids common artifacts such as "twisty" facial features, unwanted background patterns, or unnatural eye renderings.
  • Efficiency: The framework is highly optimized for real-time applications. At inference time, the entire process—including encoding and stylization—takes between 6.5 and 15.8 milliseconds on a single NVIDIA V100 GPU.

Limitations and Future Work

While MMFS excels at texture and color transfer, it faces challenges with styles requiring extreme geometric exaggeration, such as caricatures, due to its rigid preservation of facial structure. Additionally, the model is sensitive to input alignment; it performs best on tightly cropped faces and struggles with extreme poses or heavy occlusions. Future research may involve integrating learnable deformation modules to support shape exaggeration or combining MMFS with frameworks like VToonify for uncropped, full-size image stylization.

Summary updated

BibTeX
@article{li2023multi,
  author = {Mengtian Li and Yi Dong and Minxuan Lin and Haibin Huang and Pengfei Wan and Chongyang Ma},
  title = {{Multi-Modal Face Stylization with a Generative Prior}},
  journal = {Computer Graphics Forum},
  year = {2023},
  doi = {10.1111/cgf.14952},
}
Figure