Abstract
Facial Action Unit (AU) detection is a critical task in affective computing, requiring the identification of subtle, localized muscle movements. Traditional deep learning models often struggle with global noise and sample-specific biases. This paper introduces AC²D, a framework that integrates Vision Transformers with causal inference. By adaptively constraining self-attention to anatomical regions and employing causal deconfounding via backdoor adjustment, AC²D achieves state-of-the-art performance across multiple benchmarks while maintaining a lightweight architecture.
Introduction
Detecting Facial Action Units (AUs)—the building blocks of human expressions—is significantly more challenging than general emotion recognition. AUs are often subtle, overlapping, and highly dependent on individual facial anatomy. Current Transformer-based models face two primary issues: Global Noise, where the model attends to irrelevant facial regions, and Sample Bias, where models learn dataset-specific correlations (e.g., lighting or subject identity) rather than universal AU features.
Methodology: The AC²D Framework
The proposed AC²D (Adaptively Constraining self-attention and Causally Deconfounding) framework addresses these challenges through two core innovations built upon a ResTv2 backbone.
Adaptive Self-Attention Constraining
To mitigate global noise, the authors ground the Transformer’s attention mechanism in facial anatomy. "Ground-truth" attention maps are defined based on the physical locations of specific AUs. A Kullback-Leibler (KL) divergence loss is then applied to encourage the model’s learned attention to focus on these relevant regions. This approach provides a balance between rigid anatomical priors and the flexibility needed to capture subtle, non-rigid variations in muscle movement.
Causal Deconfounding
To handle sample bias, the framework utilizes a causal diagram to identify "sample confounders" such as illumination and subject-specific habits. By applying backdoor adjustment, the model treats the training set as a dictionary of prototypes. A causal intervention module is applied to each AU branch independently, forcing the model to learn features that are invariant to specific environmental or identity-based factors.
Experimental Results
The model was evaluated on five major datasets: BP4D, BP4D+, DISFA, GFT, and Aff-Wild2.
Performance and Efficiency
AC²D achieved state-of-the-art results, with average F1-scores of 64.6% on BP4D and 65.4% on DISFA. Notably, it outperformed several complex temporal (video-based) models despite being a single-image architecture. The model is also highly efficient, containing only 3.6 million parameters.
Robustness and Generalization
On the "in-the-wild" Aff-Wild2 dataset, AC²D reached an F1-score of 59.1%, demonstrating its ability to generalize to real-world conditions. The causal deconfounding module was particularly effective in boosting cross-dataset performance by stripping away dataset-specific "styles."
Conclusion
The AC²D framework demonstrates that grounding data-driven models in physical reality (anatomy) and causal logic significantly improves the precision and robustness of facial AU detection. Future work will explore extending these constraints to temporal modeling to better capture the dynamic evolution of facial expressions.
Summary updated