Abstract
Domain shift poses a significant challenge in Cross-Domain Facial Expression Recognition (CD-FER) due to the distribution variation across different domains. Current works mainly focus on learning domain-invariant features through global feature adaptation, while neglecting the transferability of local features. Additionally, these methods lack discriminative supervision during training on target datasets, resulting in deteriorated feature representation in target domain. To address these limitations, we propose an Adaptive Global-Local Representation Learning and Selection (AGLRLS) framework. The framework incorporates global-local adversarial adaptation and semantic-aware pseudo label generation to enhance the learning of domain-invariant and discriminative feature during training. Meanwhile, a global-local prediction consistency learning is introduced to improve classification results during inference. Specifically, the framework consists of separate global-local adversarial learning modules that learn domain-invariant global and local features independently. We also design a semantic-aware pseudo label generation module, which computes semantic labels based on global and local features. Moreover, a novel dynamic threshold strategy is employed to learn the optimal thresholds by leveraging independent prediction of global and local features, ensuring filtering out the unreliable pseudo labels while retaining reliable ones. These labels are utilized for model optimization through the adversarial learning process in an end-to-end manner. During inference, a global-local prediction consistency module is developed to automatically learn an optimal result from multiple predictions. We conduct comprehensive experiments and analysis based on a fair evaluation benchmark. The results demonstrate that the proposed framework outperforms the current competing methods by a substantial margin.
Introduction
Facial Expression Recognition (FER) is a critical task in computer vision, yet it faces significant hurdles when moving from controlled laboratory settings to real-world "in-the-wild" scenarios. This performance drop is primarily due to domain shift—variations in lighting, ethnicity, head pose, and image quality between the source training data and target evaluation data.
Existing methods often focus on aligning global facial features across domains. However, they frequently overlook two key aspects:
- Local Feature Transferability: Subtle movements around the eyes or mouth are often more consistent across domains than the overall facial appearance.
- Target Supervision and Class Imbalance: Target datasets are typically unlabeled, and FER datasets are notoriously imbalanced (e.g., many "Happy" samples but few "Disgust" or "Fear" samples). This imbalance leads models to ignore rare but important classes.
Proposed Framework: AGLRLS
The Adaptive Global-Local Representation Learning and Selection (AGLRLS) framework addresses these challenges through three innovative components integrated into an end-to-end architecture.
Separate Adversarial Learning (SAL)
Rather than a single global discriminator, AGLRLS employs seven independent discriminators. It extracts one global feature, five local features (left eye, right eye, nose, left mouth, right mouth), and one fused global-local feature. Each feature has its own adversarial module, ensuring that both global structure and fine-grained local details are rendered domain-invariant.
Feature-level Pseudo Label Generation (FPLG)
To provide supervision for unlabeled target data, the model generates pseudo-labels using an Improved Dynamic Threshold Strategy (IDTS). Unlike static thresholds, IDTS uses a non-linear mapping to lower the confidence requirement for rare, difficult classes. This ensures the model learns from underrepresented expressions like "Fear" or "Disgust," even when initial classifier confidence is low.
Global-Local Prediction Consistency (GLPC)
During inference, the model employs a selection logic rather than simple averaging. It prioritizes the combined global-local prediction; if confidence is insufficient, it falls back to the global prediction, and finally to an aggregation of local predictions. This hierarchical approach ensures that the most reliable features drive the final classification.
Experimental Results
The framework was evaluated across six major FER benchmarks, including RAF-DB and FER2013 as source domains, and CK+, JAFFE, SFEW2.0, and ExpW as target domains.
AGLRLS consistently outperformed state-of-the-art methods. For instance, using a ResNet50 backbone on the RAF-DB to CK+ task, AGLRLS achieved 87.60% accuracy. Even with a lightweight MobileNet-v2 backbone, the method maintained robustness, exceeding the next best algorithm by over 9% on the CK+ dataset.
Statistical analysis using Friedman and Nemenyi tests (Figure 2) confirms that the performance gains of AGLRLS are statistically significant across 24 different data points, establishing it as a new benchmark in cross-domain FER.
Conclusion
The AGLRLS framework effectively bridges the domain gap in facial expression recognition by leveraging the stability of local features and implementing a class-balanced pseudo-labeling strategy. While the use of multiple discriminators adds some computational overhead (approximately 6% increase in forward propagation time), the significant gains in accuracy and robustness justify the cost. Future work may involve exploring temporal dynamics for video-based FER and improving landmark detection under extreme occlusions.
Summary updated