Generalizable Facial Expression Recognition
Yuhang Zhang, Xiuqi Zheng, Chenyi Liang, Jiani Hu, Weihong Deng
TL;DR
This work tackles the zero-shot generalization problem in facial expression recognition (FER) under domain shifts, where target-domain data for fine-tuning are unavailable. It proposes a CLIP-based, fixed-face-feature pipeline called CAFE that learns sigmoid masks to selectively extract expression-related cues, preserving generalization while leveraging FER precision. A channel-separation mechanism, coupled with a channel-diverse loss, regularizes the masks to be expression-specific yet robust across unseen domains, and the model avoids a heavy FC layer to reduce overfitting. Extensive experiments on five FER datasets show that GFER consistently outperforms state-of-the-art methods on unseen test sets, demonstrating strong zero-shot cross-domain generalization and practical potential for real-world deployment.
Abstract
SOTA facial expression recognition (FER) methods fail on test sets that have domain gaps with the train set. Recent domain adaptation FER methods need to acquire labeled or unlabeled samples of target domains to fine-tune the FER model, which might be infeasible in real-world deployment. In this paper, we aim to improve the zero-shot generalization ability of FER methods on different unseen test sets using only one train set. Inspired by how humans first detect faces and then select expression features, we propose a novel FER pipeline to extract expression-related features from any given face images. Our method is based on the generalizable face features extracted by large models like CLIP. However, it is non-trivial to adapt the general features of CLIP for specific tasks like FER. To preserve the generalization ability of CLIP and the high precision of the FER model, we design a novel approach that learns sigmoid masks based on the fixed CLIP face features to extract expression features. To further improve the generalization ability on unseen test sets, we separate the channels of the learned masked features according to the expression classes to directly generate logits and avoid using the FC layer to reduce overfitting. We also introduce a channel-diverse loss to make the learned masks separated. Extensive experiments on five different FER datasets verify that our method outperforms SOTA FER methods by large margins. Code is available in https://github.com/zyh-uaiaaaa/Generalizable-FER.
