Representation Learning and Identity Adversarial Training for Facial Behavior Understanding

Mang Ning, Albert Ali Salah, Itir Önal Ertugrul · DOI

Introduction

Facial Action Unit (AU) detection—the identification of specific muscle movements like brow furrows or lip pulls—is a cornerstone of facial behavior analysis. However, the field faces two significant hurdles: the scarcity of large-scale, diverse datasets and the prevalence of "shortcut learning." In many AU datasets, models tend to achieve high accuracy by memorizing subject identities rather than learning the subtle facial movements themselves. This paper introduces a two-pronged solution: the Face9M dataset for large-scale pretraining and an Identity Adversarial Training (IAT) framework to ensure identity-invariant learning.

The Face9M Dataset and FMAE Pretraining

To overcome data scarcity, the authors curated Face9M, a massive collection of 9 million facial images from diverse public sources. They utilized a Facial Masked Autoencoder (FMAE) strategy to pretrain a Vision Transformer (ViT) on this data. By forcing the model to reconstruct masked portions of faces, it develops a deep, fine-grained understanding of facial geometry and semantics, providing a superior starting point for behavior analysis compared to general-purpose ImageNet pretraining.

Identity Adversarial Training (IAT)

The core innovation to combat the "identity shortcut" is the IAT framework. During fine-tuning, the model is equipped with two heads: one for AU detection and an adversarial head for identity prediction.

The IAT architecture employs a gradient reversal layer (GRL) to force the backbone to discard identity-related features while optimizing for AU detection.

As shown in the architecture above, a Gradient Reversal Layer (GRL) is placed before the identity head. While the AU head minimizes classification loss, the GRL ensures that the backbone is penalized for features that help identify the subject. This adversarial process forces the model to actively "unlearn" identity-specific information, resulting in representations that focus solely on facial actions. Interestingly, the authors found that a simple linear layer for the adversarial head was more effective than a complex one, as it forced the backbone to scrub identity information more thoroughly.

Experimental Results and Insights

The combination of FMAE and IAT achieved new state-of-the-art results across major benchmarks, including BP4D (67.1% F1), BP4D+ (66.8% F1), and DISFA (70.1% F1).

A key insight from the study is that identities are remarkably "easy" for standard models to learn. Linear probing revealed that a standard AU model could recognize subjects with 83% accuracy, even without explicit training. IAT successfully reduced this identity leakage significantly. Qualitatively, t-SNE visualizations confirm that IAT produces more generalized features.

t-SNE plots compare facial representations: (a) Standard FMAE features cluster tightly by subject identity, while (b) FMAE-IAT features are more dispersed and mixed, indicating successful identity-invariant learning.

As illustrated in the t-SNE plots, standard FMAE features (top) show distinct clusters for each individual, whereas FMAE-IAT features (bottom) are much more homogeneous. This confirms that the model has successfully moved away from memorizing individuals and toward understanding universal facial behaviors.

Conclusion

By leveraging the massive Face9M dataset and the IAT framework, this research successfully addresses the identity shortcut in facial behavior analysis. The resulting models demonstrate superior generalization and set new performance records. Future work will focus on scaling to even larger architectures and distilling these models for real-time applications in fields like healthcare and human-computer interaction.

Summary updated

BibTeX
@misc{ning2024representation,
  author = {Mang Ning and Albert Ali Salah and Itir Önal Ertugrul},
  title = {{Representation Learning and Identity Adversarial Training for Facial Behavior Understanding}},
  year = {2024},
  eprint = {2407.11243},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.11243},
}
Figure