We never go out of Style: Motion Disentanglement by Subspace Decomposition of Latent Space

Rishubh Parihar, Raghav Magazine, Piyush Tiwari, R. Venkatesh BabuarXiv 2023 · DOI

Abstract

This work presents a few-shot approach for disentangling complex motions in video sequences by identifying low-dimensional subspaces within a pretrained StyleGAN latent space. By analyzing transition vectors between latent codes, we isolate independent motion components such as facial expressions and head poses. Our method requires minimal training data and achieves superior precision in motion editing and transfer compared to existing state-of-the-art techniques.

Introduction

Real-world motion is inherently "entangled." For instance, a person speaking typically combines lip movements with head tilts and shifts in torso position. For generative AI models, this complexity poses a significant challenge: attempting to edit or transfer a specific motion (like a smile) often inadvertently affects other attributes (like camera jitter or head orientation).

While StyleGAN has enabled precise static image editing through its structured latent space, extending this control to temporal motion in video is difficult. Existing methods frequently struggle to separate identity from action or fail to distinguish between different types of concurrent movements. This paper addresses these issues by decomposing complex, intertwined motions into interpretable, independent channels using a few-shot learning paradigm.

Methodology

The proposed pipeline leverages the rich semantic knowledge embedded in pretrained StyleGAN models through three primary stages:

  1. Latent Encoding: Every frame of a source video is mapped into a sequence of latent codes ($w_t$) in the $W+$ latent space using a pretrained encoder (e.g., e4e).
  2. Transition Analysis: Rather than analyzing absolute positions, the method focuses on the "transition vectors" $d_t = w_{t+1} - w_t$, which represent the directional steps taken in latent space to produce motion.
  3. Subspace Decomposition: By collecting a small set of videos featuring isolated motions (e.g., only head rotation), the researchers apply Principal Component Analysis (PCA) to the corresponding transition vectors. This identifies a "motion subspace"—a set of basis vectors that define specific types of movement.
Overview of the model architecture and the geometric intuition behind latent decomposition into pose and expression subspaces.

To process a new video, its transition vectors are projected onto these discovered subspaces. Projecting a "talking head" video onto the expression subspace, for example, yields a sequence where the head remains stationary while the facial features move.

Datasets and Training

The method is remarkably efficient, requiring only about 15 minutes of video to define a motion subspace. The researchers utilized a combination of synthetic and real-world data:

  • Faces: Synthetic videos with pure pose changes were generated using EG3D, while the GRID dataset provided pure facial expressions. Testing was conducted on the high-quality CelebV-HQ dataset.
  • Cars: The CarsInCity dataset, created in Blender, provided clean examples of translation versus rotation.

Results and Discussion

The approach treats motion as a trajectory through high-dimensional space. A key finding is that complex motions can be effectively approximated as linear subspaces, allowing for the use of efficient tools like PCA rather than heavy neural networks.

Qualitative results showing the disentanglement of pose and expression for human faces, and translation and rotation for vehicles.

Quantitative comparisons against Independent Component Analysis (ICA) and Latent Image Animator (LIA) highlight the method's efficacy:

  • Disentanglement: Using the Aggregated Pose Motion (APM) metric, the method demonstrated significantly better isolation. In the expression subspace, it showed an APM of 5.59, compared to 9.13 for LIA, indicating far less unintended head movement.
  • Reconstruction: The method achieved a lower LPIPS score (0.18 vs. 0.23 for LIA), signifying higher visual fidelity to the source material.
  • Downstream Applications: The model enables "selective motion transfer," such as applying a specific expression from a source video to a target image without altering the target's original head pose.

Conclusion

This research demonstrates that motion disentanglement can be achieved efficiently by identifying linear subspaces in GAN latent spaces. While the method is highly effective, it remains dependent on the quality of the initial latent encoder. Future work may explore unsupervised methods for subspace discovery to further reduce the need for curated "clean" motion data.

Summary updated

BibTeX
@misc{parihar2023we,
  author = {Rishubh Parihar and Raghav Magazine and Piyush Tiwari and R. Venkatesh Babu},
  title = {{We never go out of Style: Motion Disentanglement by Subspace Decomposition of Latent Space}},
  year = {2023},
  eprint = {2306.00559},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.00559},
}
Figure