AUD-TGN: Advancing Action Unit Detection with Temporal Convolution and GPT-2 in Wild Audiovisual Contexts

Jun Yu, Zerui Zhang, Zhihong Wei, Gongpeng Zhao, Zhongpeng Cai, Yongqi Wang, Guochen Xie, Jichao Zhu, Wangyuan Zhu, Qingsong Liu, Jiaen LiangWorkshops @ CVPR 2024

Abstract

Facial Action Unit (AU) detection in real-world, "in-the-wild" scenarios remains a significant challenge due to complex temporal dynamics and the difficulty of effective multimodal fusion. This paper introduces AUD-TGN, a framework that leverages Temporal Convolutional Networks (TCNs) for long-range dependency modeling and a fine-tuned GPT-2 transformer for audiovisual feature fusion. By treating multimodal data as sequences for a transformer to interpret, the model achieves a state-of-the-art F1 score of 53.7% on the Aff-Wild2 dataset.

Introduction

Facial Action Units (AUs) are the fundamental building blocks of human expressions, representing individual muscle movements that combine to form complex affects. Detecting these accurately in "in-the-wild" settings—characterized by varying lighting, head poses, and background noise—is notoriously difficult. Current research often struggles with two main gaps: capturing long-range temporal continuity and effectively fusing visual data with complementary audio cues like vocal tone or laughter.

Methodology

The AUD-TGN (Action Unit Detection with Temporal Convolution and GPT-2) architecture follows a multi-stage pipeline designed to address these challenges through sophisticated feature extraction and sequence modeling.

The AUD-TGN architecture featuring visual/audio feature extraction, TCN temporal modeling, and GPT-2 fusion.

Feature Extraction and Temporal Modeling

The system processes two primary data streams:

  • Visual Stream: A ResNet-50 pre-trained on the Glint360K facial dataset extracts high-fidelity spatial features from video frames.
  • Audio Stream: Log-Mel spectrograms and Mel Frequency Cepstral Coefficients (MFCCs) are processed through a pre-trained VGGish network.

To handle the temporal "flow" of expressions, the authors employ Temporal Convolutional Networks (TCNs) with dilated convolutions. This allows the model to maintain a large receptive field, observing more frames simultaneously without the computational explosion associated with standard recurrent architectures.

GPT-2 as a Fusion Engine

The most novel component of AUD-TGN is the repurposing of a pre-trained GPT-2 model as a context-aware fusion layer. By treating concatenated audio-visual features as "tokens," the model's attention mechanism learns complex inter-dependencies between modalities. To adapt the model to this new domain, the researchers kept most GPT-2 parameters frozen but fine-tuned the Layer Normalization (LN) components, allowing the model to bridge the gap between text-based pre-training and audiovisual inference.

Experimental Results

The study utilizes the Aff-Wild2 dataset, which includes 548 videos and 2.6 million frames annotated for 12 distinct Action Units. This dataset is considered one of the most naturalistic benchmarks available for affective behavior analysis.

Ablation study results showing the performance gains from adding TCN, GPT-2, and post-processing.

As shown in the ablation study, the integration of TCN and GPT-2 components led to significant performance gains. While a standard ResNet baseline achieved a 36.5% F1 score, the full AUD-TGN framework reached 53.7%. Notably, the inclusion of GPT-2 alone provided a nearly 6% jump over the TCN-only version, validating the effectiveness of transformer-based multimodal fusion.

Conclusion and Future Work

AUD-TGN demonstrates that Large Language Model (LLM) architectures like GPT-2 can be effectively adapted for non-textual tasks such as audiovisual fusion. By combining dilated convolutions for temporal stability with transformer-based attention for modality fusion, the framework sets a high bar for AU detection in unconstrained environments. Future research will focus on addressing class imbalance in rare AUs and reducing the computational overhead of large-scale transformer modules for real-time applications.

Summary updated

BibTeX
@inproceedings{yu2024aud,
  author = {Jun Yu and Zerui Zhang and Zhihong Wei and Gongpeng Zhao and Zhongpeng Cai and Yongqi Wang and Guochen Xie and Jichao Zhu and Wangyuan Zhu and Qingsong Liu and Jiaen Liang},
  title = {{AUD-TGN: Advancing Action Unit Detection with Temporal Convolution and GPT-2 in Wild Audiovisual Contexts}},
  booktitle = {Workshops @ CVPR},
  year = {2024},
}
Figure