NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Zero-shot Compound Expression Recognition with Visual Language Model at the 6th ABAW Challenge

Jiahe Wang, Jiale Huang, Bingzhao Cai, Yifan Cao, Xin Yun, Shangfei WangarXiv 2024 · DOI

Abstract

Facial expression recognition (FER) has traditionally focused on a small set of basic emotions. However, real-world human affect often manifests as compound expressions, which are significantly more difficult to annotate at scale. This paper details a zero-shot approach developed for the 6th Affective Behavior Analysis in-the-wild (ABAW) Challenge. By utilizing the Claude 3 visual language model (VLM) to generate automated pseudo-labels for unlabeled video data, we successfully trained a high-performance ensemble of convolutional neural networks (CNNs) without the need for manual human annotation.

Introduction

Most existing FER systems are optimized for the "Big Six" basic emotions: anger, happiness, sadness, surprise, disgust, and fear. In naturalistic settings, human expressions are frequently more nuanced, combining multiple basic emotions into compound categories such as "Happily Surprised" or "Sadly Angry."

Identifying these compound expressions is challenging due to the scarcity of labeled datasets. The 6th ABAW Challenge addressed this by providing the C-EXPR-DB database, a large collection of unlabeled in-the-wild videos. The task required identifying seven specific compound categories: Fearfully Surprised, Happily Surprised, Sadly Surprised, Disgustedly Surprised, Angrily Surprised, Sadly Fearful, and Sadly Angry.

Methodology

Our proposed pipeline bridges the gap between high-level reasoning models and efficient computer vision classifiers through a multi-stage process.

Data Preprocessing and Zero-Shot Labeling

Frames were extracted from the C-EXPR-DB videos, and faces were detected and aligned using RetinaFace. To maintain temporal continuity in video sequences where detection might fail intermittently, we implemented a strategy of copying face data from adjacent frames.

To overcome the lack of ground-truth labels, we employed the Claude 3 VLM as a "teacher" model. By providing specific prompts and facial images to the Claude 3 API, we generated textual descriptions of facial behavior, which were then converted into high-confidence pseudo-labels via keyword extraction.

Overview of the proposed multi-stage pipeline, including zero-shot labeling with Claude 3 and the subsequent CNN ensemble training and inference.

CNN Ensemble and Training

We trained an ensemble of five distinct CNN architectures on the generated pseudo-labels. This ensemble approach ensures that the final predictions are grounded in diverse feature extractions across different model complexities. The architectures selected range from the lightweight MobileNetV2 to the deeper ResNet152 and DenseNet201.

To address the inherent class imbalance in emotional datasets, we utilized a composite loss function:

  1. BalCELoss (Balanced Cross-Entropy): Adjusts weights to prevent the model from being biased toward more frequent expressions.
  2. MultiDiceLoss: Directly optimizes for the F1 score, which is the primary evaluation metric for the ABAW challenge.

Datasets

  • C-EXPR-DB: The primary dataset, containing approximately 200,000 frames from 400 in-the-wild videos. Our study focused on the seven compound expressions required for the competition.
  • RAF-DB (Real-world Affective Faces Database): A benchmark dataset of ~30,000 images used to supplement experiments and validate model robustness across diverse lighting and subjects.

Results and Discussion

The integration of VLM reasoning with CNN efficiency proved to be a robust framework for compound expression recognition. By using a majority vote among the five trained models during inference, the system achieved stable performance in uncontrolled video settings.

Parameter counts for the five CNN architectures utilized in the model ensemble.

The table above illustrates the varying complexities of the models used in our ensemble. The inclusion of models like MobileNetV2 (3.5M parameters) alongside ResNet152 (60M parameters) allowed the system to capture both fine-grained and broad emotional features while maintaining a degree of computational diversity.

Conclusion and Future Work

This research demonstrates that VLMs can effectively serve as automated expert annotators, bypassing the traditional data bottleneck in niche FER tasks. However, several areas for improvement remain. The system currently relies heavily on the initial accuracy of the VLM; any misinterpretations by Claude 3 are propagated to the downstream CNNs. Furthermore, while the data is sourced from video, our current model treats frames as static images. Future iterations will explore temporal models, such as Transformers or LSTMs, to analyze how compound expressions evolve over time, potentially leading to even higher recognition accuracy.

Summary updated

BibTeX
@misc{wang2024zero,
  author = {Jiahe Wang and Jiale Huang and Bingzhao Cai and Yifan Cao and Xin Yun and Shangfei Wang},
  title = {{Zero-shot Compound Expression Recognition with Visual Language Model at the 6th ABAW Challenge}},
  year = {2024},
  eprint = {2403.11450},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.11450},
}
Figure