Skip to main content
QUICK REVIEW

[Paper Review] Tensor-based Emotion Editing in the StyleGAN Latent Space

René Haas, Stella Graßhof|arXiv (Cornell University)|May 12, 2022
Generative Adversarial Networks and Image SynthesisComputer Science7 citations
TL;DR

This paper proposes a tensor-based method using Higher-Order Singular Value Decomposition (HOSVD) to discover disentangled semantic directions in StyleGAN2's latent space for editing facial emotions and yaw rotation. By encoding a 3D facial expression database (BU-3DFE) into the W+ space via the e4e encoder, the method extracts global, linear directions for six prototypical emotions and yaw, enabling high-fidelity, identity-preserving edits on real face images with performance on par with SOTA methods.

ABSTRACT

In this paper, we use a tensor model based on the Higher-Order Singular Value Decomposition (HOSVD) to discover semantic directions in Generative Adversarial Networks. This is achieved by first embedding a structured facial expression database into the latent space using the e4e encoder. Specifically, we discover directions in latent space corresponding to the six prototypical emotions: anger, disgust, fear, happiness, sadness, and surprise, as well as a direction for yaw rotation. These latent space directions are employed to change the expression or yaw rotation of real face images. We compare our found directions to similar directions found by two other methods. The results show that the visual quality of the resultant edits are on par with State-of-the-Art. It can also be concluded that the tensor-based model is well suited for emotion and yaw editing, i.e., that the emotion or yaw rotation of a novel face image can be robustly changed without a significant effect on identity or other attributes in the images.

Motivation & Objective

  • To discover disentangled semantic directions in StyleGAN2's latent space corresponding to prototypical facial emotions and yaw rotation.
  • To improve upon prior HOSVD-based models by using the e4e encoder for better latent code reconstruction and editability.
  • To enable global, reusable semantic directions that can be applied directly to any latent code without re-estimation of subspace parameters.
  • To validate the semantic interpretability and visual quality of edits using quantitative metrics and a pre-trained expression classifier.

Proposed method

  • The BU-3DFE 3D facial expression database is embedded into the StyleGAN2 W+ latent space using the e4e encoder to obtain high-quality, editable latent codes.
  • A multilinear tensor model is constructed from the encoded data, and HOSVD is applied to decompose the tensor into core components and factor matrices, isolating semantic subspaces for identity, expression, and yaw.
  • The emotion and yaw subspaces are truncated to extract linear directions in latent space that correspond to specific emotional states and rotation angles.
  • The resulting directions are applied directly to any latent code in the W+ space to edit facial expressions or frontalize faces without retraining or re-estimation.
  • Full-rank parameterization is used in the tensor model to improve reconstruction fidelity compared to prior low-rank approximations.
  • Edits are evaluated using perceptual (LPIPS) and identity (ArcFace) similarity metrics, along with a pre-trained expression classifier (PyFeat) on FER2013.

Experimental results

Research questions

  • RQ1Can HOSVD-based tensor modeling discover disentangled, global semantic directions in StyleGAN2's W+ space for facial emotions and yaw rotation?
  • RQ2How does the use of the e4e encoder improve the quality and editability of latent codes compared to direct mapping?
  • RQ3To what extent do the discovered directions preserve identity and avoid entanglement with other attributes during editing?
  • RQ4How do the visual and quantitative results of the proposed method compare to SOTA approaches like GANSpace and InterFaceGAN?
  • RQ5Why do certain emotion edits (fear, disgust) show unexpected label shifts in classifier outputs, and is this due to model limitations or data distribution differences?

Key findings

  • The proposed method achieves visual edit quality on par with SOTA methods such as GANSpace and InterFaceGAN, as confirmed by qualitative comparisons.
  • Quantitative evaluation on the FEI database showed that the method achieved lower LPIPS (0.305 ± 0.004) and higher ArcFace identity similarity (0.372 ± 0.008) than InterFaceGAN (LPIPS: 0.315 ± 0.003, ArcFace: 0.402 ± 0.008), indicating better frontalization fidelity.
  • The gaze direction in the frontalized images was straight ahead with our method, unlike InterFaceGAN, which produced misaligned gaze.
  • Expression edits increased the probability mass of the intended emotion class (anger, happiness, sadness, surprise), confirming semantic interpretability.
  • Edits in the disgust direction increased both disgust and anger probabilities, and fear edits increased surprise probability—this is attributed to data distribution differences between BU-3DFE and FER2013, not model limitations.
  • The method enables global, reusable directions: once computed, they can be applied to any latent code without re-estimation, significantly improving efficiency over prior approaches.

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.