Skip to main content
QUICK REVIEW

[Paper Review] MViT: Mask Vision Transformer for Facial Expression Recognition in the wild.

Hanting Li, Mingzhe Sui|arXiv (Cornell University)|Jun 8, 2021
Emotion and Mood RecognitionPsychology43 references23 citations
TL;DR

This paper proposes MViT, a pure transformer-based model for facial expression recognition (FER) in the wild, featuring a mask generation network (MGN) to suppress background and occlusion noise and a dynamic relabeling module to correct erroneous annotations. MViT achieves state-of-the-art performance on RAF-DB (88.62%), FERPlus (89.22%), and AffectNet-7 (64.57%), with strong results on AffectNet-8 (61.40%).

ABSTRACT

Facial Expression Recognition (FER) in the wild is an extremely challenging task in computer vision due to variant backgrounds, low-quality facial images, and the subjectiveness of annotators. These uncertainties make it difficult for neural networks to learn robust features on limited-scale datasets. Moreover, the networks can be easily distributed by the above factors and perform incorrect decisions. Recently, vision transformer (ViT) and data-efficient image transformers (DeiT) present their significant performance in traditional classification tasks. The self-attention mechanism makes transformers obtain a global receptive field in the first layer which dramatically enhances the feature extraction capability. In this work, we first propose a novel pure transformer-based mask vision transformer (MVT) for FER in the wild, which consists of two modules: a transformer-based mask generation network (MGN) to generate a mask that can filter out complex backgrounds and occlusion of face images, and a dynamic relabeling module to rectify incorrect labels in FER datasets in the wild. Extensive experimental results demonstrate that our MVT outperforms state-of-the-art methods on RAF-DB with 88.62%, FERPlus with 89.22%, and AffectNet-7 with 64.57%, respectively, and achieves a comparable result on AffectNet-8 with 61.40%.

Motivation & Objective

  • Address the challenges of facial expression recognition (FER) in the wild, including complex backgrounds, low image quality, and subjective human annotations.
  • Overcome the limitations of existing models that struggle with noisy, diverse, and ambiguous real-world facial data.
  • Develop a pure transformer-based architecture that enhances feature learning through global context modeling and attention mechanisms.
  • Introduce a mask generation network (MGN) to filter out irrelevant image regions such as backgrounds and occlusions.
  • Propose a dynamic relabeling module to correct mislabeled samples in existing FER datasets, improving training data quality.

Proposed method

  • Design a transformer-based mask generation network (MGN) that predicts spatial masks to suppress non-facial regions in input images.
  • Use the predicted mask to attend only to relevant facial regions, reducing interference from complex backgrounds and occlusions.
  • Implement a dynamic relabeling module that re-evaluates and corrects incorrect labels in FER datasets using attention-based uncertainty estimation.
  • Train the MViT model end-to-end with a standard classification head on standard FER benchmarks, leveraging the self-attention mechanism for global feature extraction.
  • Apply the MGN and dynamic relabeling module during training to improve feature robustness and label consistency.
  • Utilize the global receptive field of the vision transformer to capture long-range dependencies across facial regions, enhancing expression discrimination.

Experimental results

Research questions

  • RQ1Can a pure transformer-based architecture outperform convolutional networks in facial expression recognition under real-world conditions?
  • RQ2To what extent can a learned mask generation network improve performance by filtering out background and occlusion noise?
  • RQ3How effective is dynamic relabeling in correcting mislabeled samples in existing FER datasets to improve model generalization?
  • RQ4Does combining mask generation and label correction lead to consistent performance gains across diverse FER benchmarks?
  • RQ5Can the MViT framework achieve state-of-the-art results on multiple benchmarks including RAF-DB, FERPlus, AffectNet-7, and AffectNet-8?

Key findings

  • MViT achieves 88.62% accuracy on RAF-DB, surpassing previous state-of-the-art methods.
  • On FERPlus, MViT attains 89.22% accuracy, demonstrating strong performance on a challenging, real-world dataset.
  • The model reaches 64.57% accuracy on AffectNet-7, setting a new state-of-the-art for this benchmark.
  • On AffectNet-8, MViT achieves 61.40% accuracy, showing competitive performance despite the dataset's high diversity and annotation noise.
  • The ablation study confirms that both the mask generation network and dynamic relabeling module contribute significantly to performance gains.
  • The global attention mechanism in MViT enables better feature learning by capturing long-range dependencies across facial regions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.