TL;DR
This paper introduces a novel approach to facial expression recognition (FER) by leveraging the rich knowledge embedded in Vision-Language Model (VLM) text embeddings. Instead of relying solely on discrete labels, the method learns more discriminative representations by aligning facial expressions with their textual descriptions and transforming them towards a neutral state, significantly improving recognition accuracy.
What Problem Does This Paper Address?
Facial Expression Recognition (FER) is a crucial aspect of nonverbal communication, aiming to identify emotions from facial images. While existing methods have achieved considerable success, they typically fine-tune pre-trained visual encoders using discrete labels (e.g., "happy," "sad"). This discrete supervision has a significant limitation: it fails to capture the nuanced emotional concepts and the continuous spectrum of emotions. For instance, the difference between "fear" and "anger" is not inherently encoded in their numerical labels. This lack of rich semantic understanding hinders the learning of truly discriminative facial representations. Furthermore, labeling facial expressions is a time-consuming and costly process, leading to limited training data in many scenarios.
Methods
The core of this work lies in a "knowledge-enhanced FER" framework that utilizes VLMs. The proposed method has two main components:
- Knowledge-Enhanced FER: Instead of using discrete labels, the visual encoder is fine-tuned by matching facial expression representations with text embeddings generated by a frozen VLM (specifically, CLIP is found to be most effective). This is achieved by calculating a similarity score between the visual representation of a facial expression and its corresponding textual description (e.g., "A photo of a person making a [CLS] facial expression."). This step leverages the semantic understanding from VLMs to guide the learning process.
- Emotional-to-Neutral Transformation: Inspired by Russell's Circumplex Model of Affect, which posits that emotions lie on a two-dimensional circle with the neutral state at the center, the authors propose a transformation to derive a neutral representation from an emotional one. This is done by simulating the difference between textual facial expressions and textual neutral states. A network ($F_n$) transforms an emotional facial expression representation ($v_i$) into a neutral representation ($n_i$). The loss function encourages the difference between the visual representation and its neutral counterpart ($\Delta v$) to align with the difference between the text embedding of the expression and the text embedding of neutral ($\Delta t$).
These two components are combined with a self-contrast objective. This objective treats the textual facial expression as an "anchor," the learned facial expression representation as a "positive" example, and the derived neutral representation as a "negative" example. The goal is to maximize the similarity between the anchor and the positive, while minimizing the similarity between the anchor and the negative. This further enhances the discriminative power of the learned representations by pushing emotional expressions away from the neutral state. The overall objective function is a weighted sum of the similarity loss ($L_s$), the transformation loss ($L_t$), and the self-contrast loss ($L_c$).
Datasets
The proposed method was evaluated on four popular facial expression datasets:
- RAF-DB: A real-world dataset with 29,672 images, annotated with six basic expressions and a neutral category.
- AffectNet: A large-scale dataset with approximately 450,000 images and 11 categories. Experiments were conducted on 7-class and 8-class settings.
- FERPlus: A dataset collected from Google image search, featuring seven expression categories (including contempt) and a neutral category.
- CK+: A dataset containing video sequences, where the first and last frames of each sequence were used to represent neutral and expressive faces, respectively.
Key Insights and Ideas
- VLM Text Embeddings as Rich Supervision: The paper demonstrates that text embeddings from VLMs offer a more semantically rich and discriminative supervision signal for FER compared to traditional discrete labels. This is a significant departure from prior work.
- Emotional-to-Neutral Transformation: The idea of transforming emotional expressions towards a neutral state, guided by text embeddings, is novel. This approach leverages psychological models of emotion to improve representation learning.
- Self-Contrast for Discriminative Power: The self-contrast objective, by explicitly contrasting emotional expressions with derived neutral representations, effectively pushes apart different expression categories, leading to more distinct and compact representations.
- Generalizability of Textual Knowledge: The use of VLM text embeddings, which are trained on vast and diverse image-text pairs, appears to imbue the learned representations with a degree of generalizability across different datasets.
Key Results
- The proposed method significantly outperforms state-of-the-art FER methods across all tested datasets.
- On RAF-DB, the method achieved an overall accuracy of 92.63% with Swin-T, surpassing previous methods by a notable margin.
- The use of CLIP as the VLM text encoder consistently yielded superior results compared to ALIGN and BLIP.
- Ablation studies confirmed the effectiveness of each component: the similarity loss ($L_s$), the emotional-to-neutral transformation ($L_t$), and the self-contrast objective ($L_c$). The combination of all three yielded the best performance.
- The method also demonstrated strong performance in cross-dataset evaluation, showing good generalization from RAF-DB to CK+.
- t-SNE visualizations confirmed that the proposed method leads to more distinct clusters for different facial expressions and better intra-class similarity.
Limitations and Future Work
- Prompt Template Sensitivity: The performance of the method is influenced by the choice of prompt templates used to generate text embeddings. While the paper identifies a consistently performing template ("A photo of a person making a [CLS] facial expression."), further exploration of learnable prompt templates is suggested.
- Distinguishing Irrelevant Frames in Videos: The authors acknowledge that extending this method to dynamic facial expression recognition in videos presents a challenge in distinguishing irrelevant frames that might belong to other expression categories.
- Future Work: The paper suggests focusing on transforming dynamic facial expression representations to neutral representations in videos and exploring learnable textual prompts to further enhance the robustness of the method.
Summary updated