[Paper Review] Robust Facial Expression Recognition with Convolutional Visual Transformers
This paper proposes Convolutional Visual Transformers for robust facial expression recognition in the wild by fusing multi-scale CNN features via attentional selective fusion and modeling visual tokens with global self-attention. It achieves state-of-the-art performance on RAF-DB (88.14%), FERPlus (88.81%), and AffectNet (61.85%), demonstrating strong generalization and robustness to real-world challenges like occlusion and pose variation.
Facial Expression Recognition (FER) in the wild is extremely challenging due to occlusions, variant head poses, face deformation and motion blur under unconstrained conditions. Although substantial progresses have been made in automatic FER in the past few decades, previous studies are mainly designed for lab-controlled FER. Real-world occlusions, variant head poses and other issues definitely increase the difficulty of FER on account of these information-deficient regions and complex backgrounds. Different from previous pure CNNs based methods, we argue that it is feasible and practical to translate facial images into sequences of visual words and perform expression recognition from a global perspective. Therefore, we propose Convolutional Visual Transformers to tackle FER in the wild by two main steps. First, we propose an attentional selective fusion (ASF) for leveraging the feature maps generated by two-branch CNNs. The ASF captures discriminative information by fusing multiple features with global-local attention. The fused feature maps are then flattened and projected into sequences of visual words. Second, inspired by the success of Transformers in natural language processing, we propose to model relationships between these visual words with global self-attention. The proposed method are evaluated on three public in-the-wild facial expression datasets (RAF-DB, FERPlus and AffectNet). Under the same settings, extensive experiments demonstrate that our method shows superior performance over other methods, setting new state of the art on RAF-DB with 88.14%, FERPlus with 88.81% and AffectNet with 61.85%. We also conduct cross-dataset evaluation on CK+ show the generalization capability of the proposed method.
Motivation & Objective
- Address the challenge of facial expression recognition in unconstrained, real-world environments where occlusions, pose variations, and motion blur degrade performance.
- Overcome limitations of previous CNN-based methods trained on lab-controlled data by introducing a global, sequence-based modeling approach.
- Enable robust expression recognition by transforming facial features into visual word sequences and modeling long-range dependencies via self-attention.
- Demonstrate generalization capability through cross-dataset evaluation on CK+, showing transferability beyond training domains.
Proposed method
- Employ a two-branch CNN architecture to extract multi-scale feature maps from facial images, capturing both local and global representations.
- Introduce an attentional selective fusion (ASF) module that adaptively fuses features using global-local attention to emphasize discriminative regions.
- Flatten and project the fused feature maps into a sequence of visual tokens, treating each as a learnable visual word.
- Apply a Transformer encoder with multi-head self-attention to model long-range dependencies between visual tokens for improved expression classification.
- Train the end-to-end model using cross-entropy loss on standard in-the-wild expression datasets.
- Utilize positional encoding to preserve spatial relationships in the visual token sequence.
Experimental results
Research questions
- RQ1Can visual token sequences modeled with self-attention improve facial expression recognition robustness in unconstrained environments?
- RQ2How does attention-based feature fusion enhance discriminative representation learning compared to standard CNN fusion?
- RQ3To what extent does the proposed method generalize across datasets, including those with different data distributions?
- RQ4Does the global modeling capability of Transformers outperform local receptive field-based CNNs on real-world FER benchmarks?
Key findings
- The proposed method achieves a state-of-the-art accuracy of 88.14% on the RAF-DB dataset under standard evaluation settings.
- It attains 88.81% accuracy on the FERPlus dataset, surpassing previous methods in the wild setting.
- On the large-scale AffectNet dataset, the model achieves 61.85% accuracy, demonstrating effectiveness under high variability and real-world noise.
- Cross-dataset evaluation on CK+ shows strong generalization, indicating the model learns robust, disentangled facial expression representations.
- The attentional selective fusion mechanism effectively enhances feature representation by focusing on discriminative facial regions.
- The integration of visual tokens with self-attention significantly improves performance over pure CNN baselines on all three in-the-wild datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.