Self-Learning Transformations for Improving Gaze and Head Redirection

Yufeng Zheng, Seonwook Park, Xucong Zhang, Shalini De Mello, Otmar Hilliges

TL;DR

Researchers have developed a novel generative model called ST-ED (Self-Transforming Encoder-Decoder) that can precisely redirect a person's eye gaze and head orientation in "in-the-wild" photos. By automatically discovering and disentangling task-irrelevant factors like lighting and skin tone, the model produces high-fidelity images that can be used to train more accurate gaze estimation systems with significantly less labeled data.

The Challenge of In-the-Wild Gaze Redirection

Training a computer to know exactly where a person is looking (gaze estimation) requires massive amounts of labeled data. While we can synthesize "perfect" data using 3D graphics, these images often look "fake" to a neural network, leading to poor performance on real-world photos.

An alternative is gaze redirection: taking a real photo and "warping" the eyes or head to a new position. However, doing this with real-world, "in-the-wild" images is incredibly difficult. Gaze and head angles are often "entangled" with other factors—like a shadow falling across the face or a specific camera hue. If a model doesn't understand that a shadow is separate from the eye position, redirecting the gaze might accidentally move the shadow or distort the face, making the resulting image useless for training.

The Self-Transforming Encoder-Decoder (ST-ED)

The authors propose the Self-Transforming Encoder-Decoder (ST-ED) to tackle these entanglement issues. Its architecture is built on a few clever pillars:

Comparison of cGAN, T-ED, and the proposed ST-ED architectures.
  1. Disentangled Bottleneck: Instead of one big "style" code, the encoder breaks the image into several independent latent factors. Some are "explicit" (gaze and head angles), while others are "extraneous" (lighting, blur, etc.).
  2. Self-Predicted Pseudo-Labels: Rather than relying solely on potentially noisy ground-truth labels, the model predicts its own "pseudo-labels" for every factor. This allows it to discover and account for variations (like a specific lighting direction) that weren't originally labeled in the dataset.
  3. Rotational Equivariance: The model performs redirection by mathematically rotating the latent representations in a canonical 3D space. It "un-rotates" the input to a neutral state and then applies the target rotation before decoding the image back to pixels.
  4. Multi-Faceted Loss Functions:
    • Functional Loss: Uses a pre-trained gaze estimator to ensure the features of the generated image (like iris position) match the target.
  5. Disentanglement Loss: A "mix-and-match" strategy where factors from different images are combined to ensure that changing the gaze doesn't accidentally change the lighting or identity.

Datasets

The model was trained on GazeCapture, the largest public gaze dataset, which contains over two million frames of people using mobile devices in unconstrained environments.

For evaluation and cross-dataset testing, the authors used:

  • MPIIFaceGaze: Images captured during everyday laptop use.
  • Columbia Gaze: High-quality images with controlled head/gaze poses.
  • EYEDIAP: A dataset containing both discrete and continuous targets.

Key Insights

  • Extraneous Factors Matter: The "aha moment" here is that to control gaze accurately, you must model the things you don't care about (like lighting). By giving the model "slots" to store extraneous information, the gaze-specific slots remain "pure," leading to much sharper redirection.
  • Pseudo-labels as a Buffer: By predicting labels rather than just consuming them, the model becomes robust to the "noise" inherent in large-scale, crowdsourced datasets like GazeCapture.
  • Data Augmentation Power: The authors showed that their redirection is so high-quality that it can be used for "semi-supervised" learning. They could take a tiny amount of labeled data, use ST-ED to generate new versions of those faces looking in different directions, and achieve the same performance as a model trained on twice as much real labeled data.

Key Results

ST-ED significantly outperformed previous state-of-the-art methods (like StarGAN and He et al.) across multiple metrics.

Qualitative results of gaze and head redirection on in-the-wild images.
  • Redirection Accuracy: On the GazeCapture test set, ST-ED reduced gaze redirection error from 4.6° to 2.2°.
  • Disentanglement: The model showed much lower "task disentanglement error," meaning that when you change the head angle, the perceived gaze direction stays consistent (and vice versa).
  • Downstream Impact: In a cross-dataset gaze estimation task, using ST-ED for data augmentation allowed a system trained on only 2,500 labeled samples to match the performance of a baseline trained on 5,000 samples.

Limitations and Future Work

While impressive, the authors note a few hurdles:

  • Extreme Angles: The model struggles with very sharp gaze angles that fall outside the distribution of the training data.
  • Identity Preservation: While better than previous methods, the model doesn't yet "perfectly" preserve every fine-grained person-specific detail during radical transformations.
  • Ethical Considerations: As with any high-fidelity face manipulation technology, the authors acknowledge the potential for misuse in creating "deep-fakes" and emphasize the need for ethical oversight.

Future work involves exploring how this "self-transforming" architecture can be applied to other domains, such as neural rendering or general image reconstruction.

Summary updated

BibTeX
@inproceedings{zheng2020self,
  author = {Yufeng Zheng and Seonwook Park and Xucong Zhang and Shalini De Mello and Otmar Hilliges},
  title = {{Self-Learning Transformations for Improving Gaze and Head Redirection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=lieie6F_EC-q},
}
Figure