Abstract
Facial Expression Recognition (FER) is a challenging task due to high inter-class similarity and significant intra-class variation. Traditional methods often struggle to balance local cues with global context. This paper introduces TransFER, a novel architecture that integrates Convolutional Neural Networks (CNNs) with Transformers to learn relation-aware representations. By employing Multi-Attention Dropping (MAD) and Multi-head Self-Attention Dropping (MSAD), the model is incentivized to explore diverse facial regions and capture complex, non-redundant relationships. TransFER achieves state-of-the-art performance on major benchmarks, including RAF-DB, AffectNet, and FERPlus.
Introduction
Facial Expression Recognition (FER) remains a difficult problem for computer vision. Two primary obstacles hinder performance: large inter-class similarity, where different emotions (e.g., surprise and anger) share similar features like an open mouth, and small intra-class similarity, where the same emotion varies across different demographics and poses.
Existing approaches typically utilize either global-based methods, which may overlook subtle local cues, or local-based methods, which often rely on rigid landmarks prone to failure under occlusion. TransFER aims to overcome these limitations by adaptively locating diverse facial patches and modeling their global relationships using a Transformer-based framework.
Methodology
The TransFER architecture is composed of three primary components designed to extract and relate local facial features.
1. Local CNNs with Multi-Attention Dropping (MAD)
The model employs multiple Local Attention Networks (LANets) to identify discriminative facial regions. To prevent the model from focusing solely on the most prominent feature (e.g., the mouth), the Multi-Attention Dropping (MAD) mechanism randomly suppresses one attention map during training. This forces the network to explore alternative regions, such as the eyes or forehead, ensuring a more comprehensive feature set.
2. ViT-FER
Once the local patches are identified, they are treated as a sequence and processed by a Vision Transformer (ViT). Unlike standard CNNs that operate on local neighborhoods, the Transformer's self-attention mechanism allows the model to learn "relation-aware" representations, capturing how different facial parts interact to form a specific expression.
3. Multi-head Self-Attention Dropping (MSAD)
To further enhance the diversity of learned relationships, Multi-head Self-Attention Dropping (MSAD) is introduced. By randomly dropping a self-attention head during training, the model is forced to learn unique and complementary relationships across the remaining heads, reducing redundancy in the global representation.
Experimental Results
TransFER was evaluated on three prominent FER datasets: RAF-DB, AffectNet, and FERPlus.
- RAF-DB: The model achieved a landmark 90.91% accuracy, the first to surpass the 90% threshold on this dataset.
- AffectNet: TransFER reached 66.23%, outperforming previous state-of-the-art models like KTN and DACL.
- FERPlus: The model attained 90.83% accuracy.
Qualitative Analysis
Visualization of the attention maps demonstrates the effectiveness of the dropping mechanisms. While baseline models often fixate on a single region, TransFER successfully distributes its attention across multiple informative areas, such as the eyes, eyebrows, and nose bridge.
Conclusion
TransFER represents a significant advancement in FER by effectively combining local feature extraction with global relationship modeling. The introduction of MAD and MSAD encourages the model to discover diverse facial cues and learn non-redundant interactions. Future work may address the computational overhead of Transformers and extend the framework to temporal video data.
Summary updated