ReDirTrans: Latent-to-Latent Translation for Gaze and Head Redirection

Shiwei Jin, Zhen Wang, Lei Wang, Ning Bi, Truong Q. NguyenCVPR 2023 · DOI

Abstract

ReDirTrans is a novel "latent-to-latent" translation framework designed for high-resolution (1024x1024) gaze and head redirection. By manipulating attributes as additive and subtractive residuals within StyleGAN’s latent space, the model achieves state-of-the-art redirection accuracy while preserving identity and fine details. This approach overcomes the resolution and identity loss bottlenecks of previous encoder-decoder architectures, making it a robust tool for data augmentation in gaze estimation tasks.

Introduction

Training robust gaze estimation models requires large-scale datasets with precise annotations. Synthetic data generation is a promising solution, but existing methods face two major challenges:

  1. Resolution Constraints: Models like ST-ED are often limited to low-resolution eye or face crops (e.g., 128x128), losing context like hair and background.
  2. Identity Preservation: Global encoder-decoder architectures often fail to maintain person-specific details when encoding a full face into a bottleneck.

ReDirTrans addresses these by performing interpretable redirection—using explicit pitch and yaw values—on high-resolution images without degrading quality or altering the subject's identity.

Methodology: Latent-to-Latent Translation

The core of ReDirTrans is a portable network operating within the latent space of a pretrained StyleGAN2 model (using an e4e encoder).

Comparison of redirection architectures: (b-1) VecGAN, (b-2) ST-ED, and (b-3) the proposed ReDirTrans framework.

Key Mechanisms

  • Residual Manipulation: Instead of direct pixel manipulation, ReDirTrans projects the input latent vector ($f_s$) into an attribute-specific embedding space ($\mathcal{Z}$). It calculates the difference between the "old" status and the "new" redirected status, applying these as residuals (subtraction and addition) to the original latent vector. This ensures that non-target attributes like hair and skin texture remain untouched.
  • Interpretable Rotation: Redirection in the $\mathcal{Z}$ space uses explicit rotation matrices derived from physical pitch and yaw values, providing geometric grounding to the latent changes.
  • Layer-wise Weighting: StyleGAN’s $W+$ space is hierarchical. ReDirTrans learns layer-specific weights to identify which of the 18 latent layers control gaze versus head pose, preventing attribute "bleed-over."
  • Pseudo-labeling: To account for imperfections in GAN inversion, a pretrained "HeadGazeNet" estimates the actual gaze of the inverted latent code, providing a consistent baseline for redirection.

Experimental Results

The authors evaluated ReDirTrans on benchmarks including GazeCapture, MPIIFaceGaze, and CelebA-HQ.

Qualitative comparison of redirection results. ReDirTrans preserves identity and fine details better than ST-ED across various subjects.

Performance Metrics

  • Accuracy: ReDirTrans achieved a redirection error of 2.163° on GazeCapture, outperforming ST-ED (2.385°) and VecGAN (2.282°).
  • Perceptual Quality: The model maintained an LPIPS score of 0.197, matching top methods while handling much higher resolutions and preserving complex features like beards and bangs.
  • Downstream Utility: Using redirected images for data augmentation significantly improved gaze estimation performance. When training on only 25% of labeled data, augmentation reduced error from 5.875° to 5.238°.

Conclusion and Future Work

ReDirTrans demonstrates that "doing less"—manipulating only specific latent residuals—leads to superior identity preservation and redirection accuracy. While highly effective, the method is currently limited by the quality of the initial GAN inversion and the 2D nature of latent manipulation. Future work will explore 3D-aware GANs to better handle extreme spatial transformations and further improve realism in complex poses.

Summary updated

BibTeX
@inproceedings{jin2023redirtrans,
  author = {Shiwei Jin and Zhen Wang and Lei Wang and Ning Bi and Truong Q. Nguyen},
  title = {{ReDirTrans: Latent-to-Latent Translation for Gaze and Head Redirection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.00537},
}
Figure