MTCAE-DFER: Multi-Task Cascaded Autoencoder for Dynamic Facial Expression Recognition

Peihao Xiang, Kaida Wu, Chaohao Lin, Ou Bai · OpenReview

Abstract

This paper expands the cascaded network branch of the autoencoder-based multi-task learning (MTL) framework for dynamic facial expression recognition, namely Multi-Task Cascaded Autoencoder for Dynamic Facial Expression Recognition (MTCAE-DFER). MTCAE-DFER builds a plug-and-play cascaded decoder module, which is based on the Vision Transformer (ViT) architecture and employs the decoder concept of Transformer to reconstruct the multi-head attention module. The decoder output from the previous task serves as the query (Q), representing local dynamic features, while the Video Masked Autoencoder (VideoMAE) shared encoder output acts as both the key (K) and value (V), representing global dynamic features. This setup facilitates interaction between global and local dynamic features across related tasks. Additionally, this proposal aims to alleviate overfitting of complex large model. We utilize autoencoder-based multi-task cascaded learning approach to explore the impact of dynamic face detection and dynamic face landmark on dynamic facial expression recognition, which enhances the model's generalization ability. After we conduct extensive ablation experiments and comparison with state-of-the-art (SOTA) methods on various public datasets for dynamic facial expression recognition, the robustness of the MTCAE-DFER model and the effectiveness of global-local dynamic feature interaction among related tasks have been proven.

Introduction

Dynamic Facial Expression Recognition (DFER) is a critical task in computer vision that involves interpreting emotional states from video sequences. This requires models to effectively capture both spatial facial features and temporal dynamics. While recent advancements like Video Masked Autoencoders (VideoMAE) have shown great promise in capturing global spatiotemporal context, they face two significant hurdles: neglecting fine-grained local details and a tendency to overfit on relatively small DFER datasets.

Traditional approaches often treat face detection, landmark localization, and expression recognition as isolated sequential steps. However, these tasks are inherently related. The authors of MTCAE-DFER propose a unified framework where these tasks interact during the learning process, allowing the model to leverage local task-specific knowledge to enhance the final recognition performance.

Methodology

Multi-Task Learning Frameworks

The authors explore various multi-task learning (MTL) architectures to find the most effective way to integrate auxiliary tasks. These include single-task, non-fully shared, fully shared, and the proposed cascaded framework. The cascaded approach is designed to allow information to flow sequentially between tasks, improving the final classification.

Comparison of different autoencoder-based multi-task learning frameworks, highlighting the evolution from single-task to the proposed cascaded approach.

MTCAE-DFER Architecture

The core of the proposed MTCAE-DFER is a "plug-and-play" cascaded decoder module built upon a shared VideoMAE encoder.

  1. Shared Encoder: A pre-trained VideoMAE encoder extracts robust global dynamic features from input video clips. Because it is pre-trained via self-supervised learning, it provides a strong foundation for understanding complex motion.
  2. Cascaded ViT Decoders: Instead of simple linear heads, the framework employs a sequence of Vision Transformer (ViT) decoders for three interdependent tasks: Dynamic Face Detection, Dynamic Face Landmark Detection, and finally, Facial Expression Recognition.

The innovation lies in the "cascaded" interaction. In each ViT decoder, the Key ($K$) and Value ($V$) are derived from the global features of the shared encoder. Crucially, the Query ($Q$) for a given task is the output from the preceding task's decoder. This mechanism forces the model to use local features (e.g., face boundaries or landmark positions) to selectively attend to relevant global spatiotemporal information.

The detailed architecture of the proposed MTCAE-DFER framework, showing the flow from video input through the VideoMAE encoder to the cascaded ViT decoders.

Experimental Evaluation

The model was evaluated on three benchmark datasets: RAVDESS, CREMA-D, and MEAD. Since these datasets primarily provide expression labels, the authors generated pseudo-labels for face detection and landmarks using MTCNN to facilitate multi-task training.

Results and Comparison

MTCAE-DFER demonstrated superior performance across all datasets, measured by Weighted Average Recall (WAR):

  • RAVDESS: Achieved 83.69% WAR, outperforming previous SOTA methods like MAE-DFER (75.56%) and MTFormer (79.68%).
  • CREMA-D: Reached 85.03% WAR, a significant improvement over supervised 3D ResNeXt-50 models.
  • MEAD: Achieved 88.44% WAR, proving robustness in multi-view scenarios.

Ablation studies confirmed that the cascaded structure is more effective than fully shared or non-fully shared MTL frameworks, providing a 2-4% performance boost by effectively bridging tasks through the ViT decoder.

Discussion and Conclusion

The MTCAE-DFER framework successfully demonstrates that integrating face detection and landmarking as auxiliary tasks acts as a powerful regularizer, mitigating overfitting and improving generalization. The query-based interaction between tasks allows for a sophisticated filtering of global features based on local context.

While the model achieves state-of-the-art results, the authors note the computational cost of the ViT self-attention mechanism as a potential limitation for real-time applications. Future work will explore multimodal integration (e.g., audio) and more complex outputs like emotion-based text generation, where the model could provide a descriptive summary of a subject's emotional state.

Summary updated

BibTeX
@misc{xiang2024mtcae,
  author = {Peihao Xiang and Kaida Wu and Chaohao Lin and Ou Bai},
  title = {{MTCAE-DFER: Multi-Task Cascaded Autoencoder for Dynamic Facial Expression Recognition}},
  year = {2024},
  eprint = {2412.18988},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.18988},
}
Figure