Manuscript Offprint

arXiv:2611.08138

Describe Your Facial Expressions by Linking Image Encoders and Large Language Models

Yujian Yuan, Jiabei Zeng, Shiguang Shan

Abstract

This paper presents a novel task of describing human facial expressions of a facial image in natural language, which captures the nuances of facial actions and emotional states beyond traditional emotion categories or facial action units (AUs). To achieve the facial expression captioning model, we propose a three-stage training framework that trains a vision-to-language model using synthesized image-text pairs and the BLIP-2 pre-training techniques. To overcome the challenge of missing training image-text pairs for facial expression captioning, we propose a strategy that involves synthesizing and combining captions using GPT-3.5 and existing annotations on either emotion categories or AUs. Experiments demonstrate the effectiveness of our method in generating captions that describe details of facial actions and emotions, as well as the inferential relationship between them, even when those emotions are not present in the training data. It is also demonstrated that the vision-to-language task enhances the performance of the intermediate visual features on both AU detection and emotion classification tasks. The code and trained models are available at: https://github.com/Yujianyuan/Exp-BLIP.

Introduction

Facial expressions are a crucial form of nonverbal communication that convey a wide range of emotional states through subtle changes in facial muscle movements. The accurate perception and interpretation of facial expressions are critical for effective human-machine interactions. Existing works have focused on describing facial expressions by classifying them into pre-defined emotion categories (e.g., happiness, sadness, neutral, anger, disgust, surprise, fear) or detecting the appearance of facial action units (AUs) defined by the Facial Action Coding System (FACS)[☐]. However, these methods have limitations. Pre-defined emotion categories cannot capture all the nuances of facial expressions, while AUs do not convey the indicated affective status. To overcome these limitations, we propose a novel facial expression captioning task that aims to describe facial actions and the corresponding

© 2023. The copyright of this document resides with its authors. It may be distributed unchanged freely in print or electronic forms.

emotional states of a facial image in natural language. Our approach provides a comprehensive and detailed understanding of facial expressions, which has the potential to improve accuracy and effectiveness in understanding and interacting with humans.

It is non-trivial to accomplish facial expression captioning due to the lack of training image-text pairs that specifically describe nuances of facial expressions. Although existing image captioning models such as CoCa [☐], BLIP [☐], and Flamingo [☐] demonstrate remarkable performance in describing the contents of an image, they fall short in describing the nuances of facial expressions. This limitation arises from the fact that the training image-text pairs typically do not provide the level of detail required to train a facial expression captioner. However, collecting such image-text pairs presents a significant challenge. Annotators must possess exceptional writing skills and the ability to recognize and describe the full range of facial expressions. Additionally, even with expert annotators, the process of annotation is time-consuming.

To overcome the scarcity of training image-text pairs for facial expression captioning, we propose a three-stage framework that leverages synthetic image-text pairs synthesized using GPT-3.5 and existing annotations on emotion categories and AUs. As data labeled with both emotion categories and AUs are rarely available, our proposed framework combines captions generated by the emotion-specific captioner (Emot-BLIP) and the AU-specific captioner (AU-BLIP) to train the final captioner (Exp-BLIP) using the combined captions and their corresponding images. Our contributions are summarised as follows:

(1) We propose facial expression captioning, a new task to describe nuances of facial expressions and infer the corresponding emotions in words. Compared with conventional emotion classification and AU detection tasks, facial expression captioning interprets facial expressions in a more detailed and comprehensive way.

(2) To train the captioner for facial expression captioning, we propose a three-stage framework that utilizes synthetic image-text pairs. This approach enables the training even when the training data that describe both facial actions and emotions are not available.

(3) Extensive experiments demonstrate the powerful ability of the trained facial expression captioner and the intermediate visual representation. Our method produces captions that describe details of the facial actions and emotions, even if the emotions are not in the training data. Experiments also demonstrate that vision-to-language task improves the representation ability of the intermediate visual features on AU detection and emotion classification tasks.

References (47)

  • a visual language model for few-shot learning
  • Meteor: An automatic metric for mt evaluation with improved correlation with human judgments
  • Vlmo: Unified vision-language pre-training with mixture-of-modality-experts
  • Compound facial expressions of emotion
  • Manual for the facial action coding system
  • Emotionet: An accurate, real-time algorithm for the automatic annotation of a million facial expressions in the wild
  • Eva: Exploring the limits of masked visual representation learning at scale
  • Sayette group formation task (gft) spontaneous facial expression database
  • Masked autoencoders are scalable vision learners
  • Facial action unit detection with transformers
  • Scaling up visual and vision-language representation learning with noisy text supervision
  • A novel dual-channel graph convolutional neural network for facial action unit recognition
  • Prompting visual-language models for efficient video understanding
  • Large language models are zero-shot reasoners
  • Lavis: A one-stop library for language-vision intelligence
  • Align before fuse: Vision and language representation learning with momentum distillation
  • Blip: Bootstrapping language-image pre-training for unified vision-language understanding and generation
  • Blip-2: Bootstrapping language-image pre-training with frozen image encoders and large language models
  • Reliable crowdsourcing and deep locality-preserving learning for expression recognition in the wild
  • Microsoft coco: Common objects in context
  • Frozen clip models are efficient video learners
  • What makes good in-context examples for gpt-3? In Deep Learning Inside Out (DeeLIO), 2022
  • Decoupled weight decay regularization
  • Zero-shot facial expression recognition with multi-label label propagation
  • Image segmentation using text and image prompts
  • Teaching with soft label smoothing for mitigating noisy labels in facial expressions
  • Learning multi-dimensional edge feature-based au relation graph for facial action unit recognition
  • Disfa: A spontaneous facial action intensity database
  • Noisy channel language model prompting for few-shot text classification
  • Affectnet: A database for facial expression, valence, and arousal computing in the wild
  • Image captioning using facial expression and attention
  • Classifying emotions and engagement in online learning based on a single facial expression recognition neural network
  • Jaa-net: joint facial action unit detection and face alignment via adaptive attention
  • Suppressing uncertainties for large-scale facial expression recognition
  • Action unit detection by exploiting spatial-temporal and label-wise attention with transformer
  • Beit pretraining for all vision and vision-language tasks
  • Raf-au database: in-the-wild facial expressions with subjective emotion judgement and objective au annotations
  • Ontology-enhanced prompt-tuning for few-shot learning
  • Coca: Contrastive captioners are image-text foundation models
  • Face2exp: Combating data biases for facial expression recognition
  • Tip-adapter: Training-free adaption of clip for few-shot classification
  • Prompt, generate, then cache: Cascade of foundation models makes strong few-shot learners
  • OPT: Open Pre-trained Transformer Language Models
  • A high-resolution spontaneous 3d dynamic facial expression database
  • Learn from all: Erasing attention consistency for noisy label facial expression recognition
  • General facial representation learning in a visual-linguistic manner
  • Learning to prompt for vision-language models