Enhancing Zero-Shot Facial Expression Recognition by LLM Knowledge Transfer

Zengqun Zhao, Yu Cao, Shaogang Gong, Ioannis Patras
5/29/2024
cs.CV

Official code: zengqunzhao/Exp-CLIP (64 stars, MIT, last commit 2025-02-25).

Abstract

Current facial expression recognition (FER) models are often designed in a supervised learning manner and thus are constrained by the lack of large-scale facial expression images with high-quality annotations. Consequently, these models often fail to generalize well, performing poorly on unseen images in inference. Vision-language-based zero-shot models demonstrate a promising potential for addressing such challenges. However, these models lack task-specific knowledge and therefore are not optimized for the nuances of recognizing facial expressions. To bridge this gap, this work proposes a novel method, Exp-CLIP, to enhance zero-shot FER by transferring the task knowledge from large language models (LLMs). Specifically, based on the pre-trained vision-language encoders, we incorporate a projection head designed to map the initial joint vision-language space into a space that captures representations of facial actions. To train this projection head for subsequent zero-shot predictions, we propose to align the projected visual representations with task-specific semantic meanings derived from the LLM encoder, and the text instruction-based strategy is employed to customize the LLM knowledge. Given unlabelled facial data and efficient training of the projection head, Exp-CLIP achieves superior zero-shot results to the CLIP models and several other large vision-language models (LVLMs) on seven in-the-wild FER datasets. The code and pre-trained models are available at https://github.com/zengqunzhao/Exp-CLIP.

View on arXivView PDF

Code Implementations(1)

MIT

[WACV'25 Oral] Enhancing Zero-Shot Facial Expression Recognition by LLM Knowledge Transfer

643Shell, PythonMay 29, 20241 years agoMIT
large-language-modelsvision-language-modelzero-shot-learning

Similar Papers

Cite this paper

@article{zhao2024enhancing,
  title  = {Enhancing Zero-Shot Facial Expression Recognition by LLM Knowledge Transfer},
  author = {Zengqun Zhao and Yu Cao and Shaogang Gong and Ioannis Patras},
  year   = {2024},
  eprint = {2405.19100},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.19100v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.19100.svg)](https://codeofpaper.com/paper/2405.19100)

Discussion