Discrete Facial Encoding: A Framework for Data-driven Facial Display Discovery

Minh Tran, Maksim Siniukov, Zhangyu Jin, Mohammad Soleymani

TL;DR

This paper introduces Discrete Facial Encoding (DFE), a novel unsupervised method for learning interpretable facial expression representations from 3D mesh data. DFE uses a Residual Vector-Quantized Variational Autoencoder (RVQ-VAE) to decompose facial expressions into discrete "tokens," offering a more comprehensive and scalable alternative to traditional methods like FACS for psychological and affective computing tasks.

What Problem Does This Paper Address?

Accurately representing and understanding human facial expressions is crucial for fields like psychology and affective computing. Existing systems, most notably the Facial Action Coding System (FACS), rely on manually defined "Action Units" (AUs) corresponding to specific muscle movements. While interpretable, FACS coding is labor-intensive and costly, and automated AU detection systems struggle with accuracy and robustness in real-world conditions. Furthermore, these predefined AUs may not fully capture the nuanced and diverse spectrum of human facial expressions. This paper aims to address these limitations by developing a data-driven, unsupervised approach that learns a compact, interpretable, and comprehensive representation of facial expressions directly from data.

Methods

The core of the proposed method, Discrete Facial Encoding (DFE), involves two main stages:

  1. Feature Extraction with EMOCA: The authors first leverage EMOCA, a 3D face reconstruction model, to extract identity-invariant expression features from facial images. EMOCA utilizes a 3D Morphable Model (3DMM) to disentangle factors like head pose and facial geometry from expression, providing expression parameters as input. This step is crucial for focusing solely on expression-related dynamics.
  2. Discrete Expression Encoding with RVQ-VAE: These 3DMM expression vectors are then fed into a Residual Vector-Quantized Variational Autoencoder (RVQ-VAE). The RVQ-VAE consists of:
  3. Encoder: A transformer-based encoder maps the input expression vector into a latent representation.
  4. Residual Quantization: This is the key novel component. It uses a multi-stage process with a shared codebook to quantize the latent representation into a sequence of discrete "tokens." Each token represents a specific facial deformation pattern, and subsequent tokens refine the representation by encoding residuals. This additive property makes the representation interpretable.
  5. Decoder: A simple linear decoder reconstructs the original expression vector from the discrete tokens.

The model is trained with a reconstruction loss and a commitment loss, along with regularization terms for sparsity and orthogonality to encourage diverse and specialized tokens.

Datasets

  • Pre-training: AffectNet [26] (approx. 350K face images with emotion labels) was used for pre-training the RVQ-VAE model to learn robust expression representations.
  • Evaluation:
    • Expression Preservation and Diversity: Aff-Wild2 [15] (in-the-wild video with AU labels) and SmileStimuli [24] (videos of smiles categorized by type).
  • Downstream Psychological Tasks: StressID [6] (stress identification), AVEC 2019 challenge dataset [32] (depression detection), and ChaLearn First Impressions [3] (personality prediction).

Key Insights and Ideas

  • Data-driven discovery of expression components: Instead of relying on predefined AUs, DFE learns a set of expressive facial "templates" directly from data, potentially capturing a richer and more nuanced set of facial behaviors.
  • Interpretability through discrete tokens: The RVQ-VAE's output is a sequence of discrete tokens. These tokens can be visualized by decoding them back into facial deformations, allowing researchers to understand which specific facial regions or movements a token corresponds to.
  • Disentanglement is key: Using 3DMM features to separate expression from identity and pose is critical for learning representations that are truly about expression.
  • Scalability through unsupervised learning: The unsupervised nature of the RVQ-VAE significantly reduces the need for manual annotation, making the approach more scalable for large datasets and diverse applications.

Key Results

  • Superior Expression Preservation: DFE significantly outperformed AU-based encoding in retrieval tasks, demonstrating more accurate expression matching and more consistent fine-grained expression features.
  • Enhanced Expression Diversity: DFE achieved higher normalized entropy and lower normalized mutual information compared to AU-based systems, indicating a broader usage of distinct tokens with minimal redundancy.
  • Strong Performance on Downstream Tasks: Using a simple Bag-of-Words model on DFE tokens, the system consistently outperformed traditional FACS-based pipelines and even powerful deep learning models (like MAE-Face) on psychological tasks such as stress detection, personality prediction, and depression detection.
  • Qualitative Visualizations: Figures 2, 3, and 4 showcase the interpretability of DFE, demonstrating how individual tokens contribute to specific facial deformations and how complex expressions can be decomposed into additive components.

Limitations and Future Work

  • 3DMM Dependency: The quality of learned tokens is dependent on the richness and potential biases of the 3DMM features used for training. Residual identity information in 3DMMs can also limit the model's ability to achieve fully identity-independent representations.
  • Static Image Focus: The current framework is evaluated on static images. Extending it to incorporate temporal dynamics for video analysis is a natural next step.
  • Dataset Bias: Facial display templates are influenced by the training dataset, potentially limiting cross-cultural or individual variations.
  • Ignoring Other Cues: The model currently focuses solely on facial expression and does not account for other behavioral cues like skin color, gaze, head pose, or body movement, which are important in psychological understanding.

Future work will explore integrating temporal dynamics, multimodal signals, and addressing the identified limitations to enhance behavioral modeling.

Summary updated

BibTeX
@inproceedings{tran2026discrete,
  author = {Minh Tran and Maksim Siniukov and Zhangyu Jin and Mohammad Soleymani},
  title = {{Discrete Facial Encoding: A Framework for Data-driven Facial Display Discovery}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2026},
}
Figure