Decoding Micromotion in Low-dimensional Latent Spaces from StyleGAN

Qiucheng Wu, Yifan Jiang, Junru Wu, Kai Wang, Eric Zhang, Humphrey Shi, Zhangyang Wang, Shiyu ChangCPAL (Proceedings Track) 2024

TL;DR

This paper explores how StyleGAN, trained on static images, implicitly encodes temporal motion. The authors propose a method to extract "micromotion" subspaces from StyleGAN's latent space, enabling realistic and controllable facial animations like expressions and head movements. Crucially, these discovered motion directions are surprisingly transferable across different identities and even artistic domains, offering a lightweight and robust approach to image manipulation.

What Problem Does This Paper Address?

Generative Adversarial Networks (GANs), particularly StyleGAN, have revolutionized image synthesis, offering highly controllable latent spaces for editing static images. However, a key question remains: does StyleGAN, trained solely on static data, possess any understanding of temporal motion? Existing methods for editing GAN-generated images often focus on per-image manipulation or struggle with disentangling attributes, leading to unwanted side effects. This paper aims to investigate if StyleGAN's latent space can be leveraged to represent and manipulate subtle, dynamic facial movements ("micromotions") in a disentangled and identity-agnostic manner.

Methods

The core of the proposed method lies in identifying and extracting low-rank "micromotion subspaces" within StyleGAN's latent space. The process involves:

  1. Reference Anchoring: This step uses either text prompts (e.g., "a person with a big smile") or short video clips as "anchors" to guide the discovery of latent codes corresponding to specific micromotions for a single reference identity.
  2. Robust Space Decomposition: Principal Component Analysis (PCA) is initially used to extract the principal components of these anchored latent codes. To handle noise and outliers, the authors employ Robust PCA, a technique that can recover underlying low-rank structures from corrupted data. This process yields a robust micromotion editing direction ($\Delta V$).
  3. Subspace Transformation: Once the editing direction is found, it can be applied to any arbitrary input image by first inverting it into the StyleGAN latent space and then performing linear interpolation or extrapolation along the discovered $\Delta V$ to synthesize intermediate frames, creating a video of the micromotion.

The key novelty lies in the hypothesis that these micromotion subspaces are low-rank, inherently disentangled, and, most surprisingly, transferable across different identities and even artistic domains.

Datasets

The paper primarily utilizes pre-trained StyleGAN-v2 models. For training and evaluation, they leverage:

  • FFHQ (Flickr-Faces-HQ): A high-quality dataset of human faces, used for training the StyleGAN models.
  • AFHQ-wild dataset: Used for exploring micromotions on wild animals.

The authors also mention using publicly available pre-trained models for StyleGAN-v3 and StyleGAN-XL.

Key Insights and Ideas

  • StyleGAN "Knows" Motion: Despite being trained on static images, StyleGAN's latent space implicitly encodes meaningful, low-dimensional subspaces for temporal facial motions (micromotions).
  • Low-Rank Micromotion Subspaces: These micromotions can be effectively represented by low-rank subspaces, meaning a small number of dimensions can capture significant variations.
  • Universality and Transferability: The discovered micromotion subspaces are remarkably subject-agnostic. A motion learned from one identity can be directly applied to vastly different identities, including those from artistic domains like oil paintings, sculptures, and anime characters, with minimal loss in quality.
  • Lightweight Editing: Once a micromotion subspace is discovered, applying it to new images is computationally inexpensive, involving simple latent space manipulation.
  • Robustness: The use of Robust PCA helps in obtaining clean and disentangled editing directions, leading to higher quality edits compared to standard PCA or methods without explicit subspace decomposition.

Key Results

  • Qualitative Success: The framework successfully generates fluid and semantically meaningful micromotions (smiling, aging, head turning, opening/closing eyes) across various identities and domains, as visually demonstrated in numerous figures.
  • Disentanglement: Quantitative re-scoring analysis shows that the proposed method achieves a clearer diagonal pattern in attribute changes compared to baselines like InterfaceGAN and GANspace, indicating better disentanglement from other attributes.
  • Identity Preservation: Identity-agnostic analysis shows that the proposed method preserves identity better than baselines, with smaller changes in identity scores after edits.
  • Domain Transferability: The method demonstrates impressive results when applied to non-photorealistic domains like oil paintings, sculptures, and anime characters.
  • Efficiency: The framework is described as having low computational overhead, especially for applying discovered micromotions to new identities.

Limitations and Future Work

  • Inversion Failure for Out-of-Domain Images: When input images significantly deviate from photorealistic faces (e.g., cartoon characters), the inversion model may fail to find a corresponding latent code, leading to poor editing results.
  • Dataset Limitations for Non-Human Subjects: For micromotions on wild animals, the quality was not as good as on human faces. This is hypothesized to be due to the training dataset not containing sufficient variations in the specific micromotion (e.g., different degrees of eye-closing), making interpolation less effective.
  • Text Template Sensitivity: While some micromotions are agnostic to text template choices, others (like "face aging") can be sensitive, suggesting that prompt engineering or learning could be an area for future work.
  • Future Work: The authors suggest that a larger set of reference latent codes and better-trained checkpoints could alleviate issues like noisy latent spaces and background alterations observed in some advanced GANs (StyleGAN-v3, StyleGAN-XL). They also highlight the potential for exploring more complex micromotions and improving performance on datasets with less variation.

Summary updated

BibTeX
@inproceedings{wu2024decoding,
  author = {Qiucheng Wu and Yifan Jiang and Junru Wu and Kai Wang and Eric Zhang and Humphrey Shi and Zhangyang Wang and Shiyu Chang},
  title = {{Decoding Micromotion in Low-dimensional Latent Spaces from StyleGAN}},
  booktitle = {CPAL (Proceedings Track)},
  year = {2024},
  url = {https://openreview.net/forum?id=jRVS6C3Wia},
}
Figure