Learning a Facial Expression Embedding Disentangled From Identity

Wei Zhang, Xianpeng Ji, Keyu Chen, Yu Ding, Changjie Fan

Introduction

In computer vision, "identity entanglement" remains a significant challenge for facial expression analysis. Standard neural networks often struggle to separate a person's unique bone structure (identity) from their current emotion (expression). This entanglement makes it difficult for models to recognize that two different individuals are performing the same subtle facial movement, such as a smirk or a frown.

Existing methods typically rely on discrete categories (e.g., "Happy" or "Sad"), which fail to capture the continuous, nuanced spectrum of human emotion. While some embedding methods attempt to map expressions into a continuous space, they often fail to completely strip away the influence of individual face shapes, resulting in embeddings biased by identity rather than pure expression.

The Deviation Learning Network (DLN)

Researchers from Netease Fuxi AI Lab and USTC proposed the Deviation Learning Network (DLN) to address these issues. The framework isolates facial expressions by explicitly subtracting identity features from the overall face representation, creating a compact, identity-invariant "expression embedding."

Overview of the Deviation Learning Network (DLN) architecture, featuring the Deviation Module, High-order Module, and Crowd Layer.

The DLN consists of three primary components:

  1. Deviation Module: This module models an expression as a mathematical deviation from a neutral identity. Using a "pseudo-siamese" structure, one fixed branch (FaceNet) extracts the identity feature ($V_{id}$), while a trainable branch extracts the full face feature ($V_{face}$). The expression is explicitly disentangled by calculating $V_{exp} = V_{face} - V_{id}$.
  2. High-order Module: To map high-dimensional features into a compact 16-dimensional manifold, the authors utilize high-order polynomials. This approach avoids the optimization hurdles of deep fully connected layers, such as gradient shattering, with a 3rd-order polynomial providing the best non-linear fit.
  3. Crowd Layer: To manage subjectivity and noise in human-labeled datasets, this layer learns to weight annotators based on their individual reliability and bias.

Additionally, a Hierarchical Annotation strategy was employed. Using tournament-style comparisons, the researchers generated fine-grained triplets to help the model learn subtle differences between very similar expressions.

Experimental Results

The model was evaluated on several large-scale datasets, including the Facial Expression Comparison (FEC) dataset, AffectNet, and RAF-DB. On the FEC validation set, the DLN achieved a state-of-the-art 85.4% triplet prediction accuracy, significantly outperforming Google’s FECNet (81.8%).

t-SNE visualization comparing DLN with other state-of-the-art methods, demonstrating superior expression clustering and identity disentanglement.

Qualitative t-SNE visualizations demonstrate that DLN creates tighter, more distinct clusters for different emotions compared to existing methods like FECNet, AFF, and 3DMM. This indicates superior disentanglement, as expressions from different people map to the same point in the embedding space regardless of their identity. These embeddings proved highly effective for downstream tasks such as similar-expression image retrieval and identity-preserving face manipulation via GANs.

Conclusion

The DLN framework demonstrates that explicit subtraction is a powerful tool for feature disentanglement. By defining expression as the "leftover" signal after identity is removed, the model achieves a highly pure representation of emotion. Future work will focus on incorporating head pose disentanglement and increasing robustness across diverse lighting and environmental conditions.

Summary updated

BibTeX
@inproceedings{zhang2021learning,
  author = {Wei Zhang and Xianpeng Ji and Keyu Chen and Yu Ding and Changjie Fan},
  title = {{Learning a Facial Expression Embedding Disentangled From Identity}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00669},
}
Figure