Expression Conditional Gan for Facial Expression-to-Expression Translation

Hao Tang, Wei Wang, Songsong Wu, Xinya Chen, Dan Xu, Nicu Sebe, Yan Yan

Abstract

Facial expression translation—the task of altering a person's facial expression while maintaining their identity and background—is a complex non-linear problem. Traditional supervised methods require scarce paired datasets, while unsupervised methods often lack precise control and suffer from background artifacts. We present Expression Conditional GAN (ECGAN), a framework designed for controllable expression synthesis using unpaired data. By integrating conditional attribute vectors into a CycleGAN-based bottleneck and introducing a novel face mask loss, ECGAN generates high-fidelity expressions that preserve identity and background stability.

Introduction

Translating a facial expression, such as changing a "neutral" face to "happy" or "angry," presents significant challenges in computer vision. Existing approaches typically fall into two categories: supervised learning (e.g., Pix2pix) and unsupervised learning (e.g., CycleGAN). Supervised methods require paired data—images of the same person in the same pose with different expressions—which are difficult and expensive to acquire. Conversely, unsupervised methods work with unpaired data but lack explicit control over the target expression and often introduce "background leaking," where the environment shifts or blurs during translation.

ECGAN addresses these issues by providing a controllable synthesis framework that operates on unpaired data while maintaining high image fidelity and structural consistency.

Methodology

Architecture and Bottleneck Injection

The ECGAN architecture is built upon the CycleGAN framework, enhanced by several key innovations to enable conditional control. The primary mechanism for control is the use of Conditional Attribute Vectors. These are one-hot vectors where a single bit represents the target emotion (e.g., Anger, Disgust, Fear).

The ECGAN architecture utilizes a dual-generator system where expression vectors are injected at the bottleneck to separate identity from expression.

Unlike standard conditional GANs that might concatenate labels at the input, ECGAN injects the expression vector at the bottleneck of the generator. This allows the network to first encode the high-level identity and structure of the face before "adding" the specific conditional expression modification. This separation is crucial for maintaining the subject's identity.

Face Mask Loss and Stability

To combat background artifacts, the authors introduced a Face Mask Loss. Using the OpenFace tool to detect facial landmarks, the system generates a binary mask of the face. A specific loss function is then applied to penalize changes in the non-masked (background) areas more heavily than the facial region. This ensures that the synthesis process is spatially constrained to the face.

Training is further stabilized using a multi-part loss function:

  • Adversarial Loss (LSGAN): Ensures overall image realism.
  • Cycle Consistency Loss: Guarantees that the image can be translated back to its original state, preventing information loss.
  • Identity Preserving Loss: Maintains the specific features of the individual.
  • Context Loss (VGG-based): Preserves perceptual and textural similarity between input and output.

Evaluation and Results

The model was evaluated across five diverse public datasets: AR, Yale, JAFFE, FERG, and 3DFE. These datasets provided a wide range of races, lighting conditions, and stylized expressions to test the model's robustness.

Qualitative Performance

Qualitative results demonstrate that ECGAN handles diverse skin tones, occlusions (such as glasses), and varied lighting conditions more effectively than previous unsupervised methods. While standard CycleGAN often produces blurry results or background shifts, ECGAN maintains sharp details and environmental stability.

Qualitative comparison showing ECGAN's ability to produce realistic expressions across different emotions compared to Pix2pix and CycleGAN.

Quantitative Metrics

  • Realism (AMT Score): In "Real vs. Fake" perceptual studies, ECGAN achieved a score of 35.32, significantly outperforming standard CycleGAN (11.68) and nearing the performance of supervised Pix2pix (40.37), despite the lack of paired training data.
  • Expression Accuracy (VGG Score): The authors adapted the Inception Score for expressions, achieving an 80.32% recognition rate on generated images. This confirms that the synthesized expressions are semantically accurate and recognizable by automated systems.

Conclusion and Future Work

ECGAN demonstrates that high-quality, controllable facial expression translation is possible without paired datasets. The combination of bottleneck injection and face mask loss effectively decouples identity from expression while protecting the background from GAN-induced artifacts.

However, the model's reliance on external landmark detectors like OpenFace remains a limitation; failures in landmark detection under extreme poses can degrade mask quality. Future research may explore "facial expression profiling" or using ECGAN for advanced data augmentation to train more robust facial recognition systems in unconstrained environments.

Summary updated

BibTeX
@inproceedings{tang2019expression,
  author = {Hao Tang and Wei Wang and Songsong Wu and Xinya Chen and Dan Xu and Nicu Sebe and Yan Yan},
  title = {{Expression Conditional Gan for Facial Expression-to-Expression Translation}},
  booktitle = {ICIP},
  year = {2019},
  doi = {10.1109/icip.2019.8803654},
}
Figure