AU-Supervised Convolutional Vision Transformers for Synthetic Facial Expression Recognition

Shuyi Mao, Xinpeng Li, Junyao Chen, Xiaojiang PengarXiv 2022

Abstract

This paper presents a methodology for the six basic expression classification track of the Affective Behavior Analysis in-the-wild (ABAW) Competition 2022. In the Learning from Synthetic Data (LSD) task, facial expression recognition (FER) methods aim to learn representations from artificially generated data and generalize them to real-world scenarios. Due to the inherent ambiguity of synthetic data, we leverage the objectivity of facial Action Units (AUs) to boost performance. We propose a novel framework, AU-Supervised Convolutional Vision Transformers (AU-CVT), which jointly trains auxiliary datasets with AU or pseudo-AU labels. Our AU-CVT achieved an F1 score of 0.6863 and an accuracy of 0.7433 on the validation set.

Introduction

Facial Expression Recognition (FER) is a cornerstone of affective computing, but training effective models is hindered by the scarcity and subjective labeling of real-world datasets. While synthetic data offers a solution, it often suffers from a "domain gap" where artificial faces lack the subtle nuances of human muscle movements.

To address this, we utilize Facial Action Units (AUs)—objective descriptions of specific muscle movements (e.g., "lip corner puller"). Because AUs are physical and universal, they provide a stable, domain-invariant anchor that remains consistent across both synthetic and real-world images, helping the model bridge the gap between artificial training data and real-world application.

Methodology

The proposed AU-Supervised Convolutional Vision Transformer (AU-CVT) architecture consists of three main components designed to balance local precision with global context:

  1. CNN Embedding Backbone: The model uses the first three stages of a ResNet50, pre-trained on large-scale face recognition data, to extract low-level facial features.
  2. Emotion Branch (Exp-branch): This branch treats facial features as "tokens" in a Multi-stage Transformer. To ensure the model retains local texture information, we introduced a Conv-FFN module—a depth-wise convolution inside the Transformer's feed-forward network—to enhance local connectivity.
  3. AU Branch: This supervisory component maps Transformer features back into a 2D grid, which is split into seven specific patches (eyes, cheeks, nose, mouth, etc.). This forces the model to associate specific AUs with their corresponding facial regions.
  4. Symmetric Maxout: Recognizing that human faces are largely symmetrical, the AU branch employs a maxout layer to combine information from left and right patches, selecting the strongest signal to improve robustness.
Overview of the AU-CVT architecture, featuring the Emotion and AU branches.

Datasets and Experimental Setup

Training was conducted primarily on the LSD (Learning from Synthetic Data) dataset, containing 277,251 synthetic images. To provide extra supervision, we used the OpenFace tool to generate pseudo-AU labels for these images. Additionally, the RAF-AU dataset (4,601 real-world images with 26 AU labels) was used as auxiliary data. Validation and testing were performed on Aff-Wild2, representing the real-world target domain.

Key Results

The AU-CVT model demonstrated significant performance gains over standard baselines. By forcing the model to recognize AUs, it learns features that are more robust to the differences between synthetic and real faces.

Performance comparison of AU-CVT against baseline models on the LSD validation set.

As shown in the table above, the full AU-CVT model achieved an F1 score of 0.6863 and 74.33% accuracy. This represents a substantial improvement over the ResNet50 baseline (50% F1) and standard Vision Transformers (59.83% F1). Notably, adding AU supervision improved the F1 score by over 3% compared to the base CVT model, confirming that AUs are effective guides for cross-domain learning.

Conclusion

The AU-CVT framework successfully utilizes objective Action Units to bridge the domain gap in synthetic facial expression recognition. By combining the local feature extraction of CNNs with the global modeling of Transformers, the model achieves state-of-the-art performance in the ABAW 2022 competition. Future work will focus on improving pseudo-label quality and extending this architecture to capture the temporal dynamics of expressions in video sequences.

Summary updated

BibTeX
@misc{mao2022au,
  author = {Shuyi Mao and Xinpeng Li and Junyao Chen and Xiaojiang Peng},
  title = {{AU-Supervised Convolutional Vision Transformers for Synthetic Facial Expression Recognition}},
  year = {2022},
  eprint = {2207.09777},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.09777},
}
Figure