Distribution Matching for Heterogeneous Multi-Task Learning: a Large-scale Face Study

Dimitrios Kollias, Viktoriia Sharmanska, Stefanos ZafeiriouarXiv 2021

Introduction

Multi-Task Learning (MTL) is often considered the "Swiss Army Knife" of artificial intelligence, aiming to train a single model to perform multiple related tasks simultaneously. In the context of facial analysis, this involves jointly learning emotion classification, facial muscle movement detection (Action Units), and continuous affect estimation. Ideally, these tasks should provide mutual reinforcement; however, standard MTL approaches often face two significant hurdles: label scarcity and negative transfer.

Label scarcity arises because most datasets are specialized, rarely providing overlapping labels for all tasks (e.g., an image might have expression labels but lack valence/arousal values). Negative transfer occurs when learning one task degrades performance on another due to gradient conflicts or task dominance. This paper introduces FaceBehaviorNet, a holistic framework designed to overcome these challenges through a novel "distribution matching" approach that enforces consistency between heterogeneous tasks.

FaceBehaviorNet Architecture

The core of the proposed framework is a residual-unit-based architecture optimized for large-scale facial study. FaceBehaviorNet is designed to handle heterogeneous inputs and outputs, bridging the gap between discrete categories and continuous regressions.

The FaceBehaviorNet architecture processes multiple batches (VA, AU, and Expression) through shared residual blocks before branching into task-specific heads.

As shown in the architecture diagram, the model utilizes a shared backbone to extract robust facial features. These features are then fed into specialized heads: a Sigmoid-activated head for Action Unit (AU) detection, a linear head for Valence and Arousal, and a Softmax-activated head for categorical emotion recognition (Neutral, Angry, Disgust, Fear, Happy, Sad, Surprise).

Methodology: Task Relatedness and Distribution Matching

To address the lack of overlapping labels, the authors propose two primary strategies to link disparate tasks:

  1. Task Relatedness: The model leverages expert domain knowledge, such as the Facial Action Coding System (FACS), which defines the relationship between specific muscle movements and emotional expressions. For instance, a "Happiness" expression is intrinsically linked to the "Lip Corner Puller" muscle (AU12).
  2. Distribution Matching: This is the framework's "Aha" moment. Instead of relying solely on hard ground-truth labels, the model employs a form of knowledge distillation. It forces the predicted distribution of one task (e.g., Action Units) to match a distribution derived from the predictions of a related task (e.g., Emotion categories). This creates a "teacher-student" loop where tasks iteratively enforce consistency across the model, even for images that lack specific labels for one of the tasks.
Table illustrating the mapping between emotions and Action Units (AUs) based on both psychological studies and empirical evidence, which serves as the foundation for distribution matching.

By using these known relationships, the model can perform "co-annotation." If an image is labeled as "Surprise," the model automatically assumes the corresponding AUs (such as AU1, 2, 25, and 26) should be active during training, providing a powerful regularizer that prevents the model from being confused by noisy or incomplete data.

Experimental Setup and Datasets

The study is massive in scope, utilizing 10 different databases to ensure broad generalization. These include affective computing benchmarks like Aff-Wild2, AffectNet, and BP4D, as well as face recognition datasets like CelebA. This diversity allows the model to learn a universal "grammar" of facial behavior rather than dataset-specific artifacts.

Key Results and Insights

FaceBehaviorNet demonstrates state-of-the-art (SOTA) performance across all 10 databases, often by significant margins. Key findings include:

  • Eliminating Negative Transfer: Unlike standard MTL, where adding tasks can degrade performance, the "coupling losses" in FaceBehaviorNet actually improved performance across all tasks compared to single-task models. In AU detection on the BP4D dataset, the coupled approach showed a 25% improvement over the uncoupled baseline.
  • Zero-Shot Capabilities: Because the model learns the underlying relationships between muscles and emotions, it can recognize "Compound Emotions" (e.g., Happily Surprised) without ever being explicitly trained on those specific compound categories.
  • Improved Face Recognition: On the CelebA dataset, the distribution matching approach improved identity classification accuracy by over 4.5% compared to standard MTL baselines, suggesting that learning facial behavior also enriches identity-related features.

Conclusion

FaceBehaviorNet successfully demonstrates that heterogeneous facial analysis tasks can be unified through distribution matching. By enforcing consistency based on task relatedness, the model effectively addresses label scarcity and turns potential negative transfer into a collaborative learning process. Future work will look toward establishing more explicit mathematical relationships between muscle movements and continuous emotional dimensions like Valence and Arousal.

Summary updated

BibTeX
@misc{kollias2021distribution,
  author = {Dimitrios Kollias and Viktoriia Sharmanska and Stefanos Zafeiriou},
  title = {{Distribution Matching for Heterogeneous Multi-Task Learning: a Large-scale Face Study}},
  year = {2021},
  eprint = {2105.03790},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.03790},
}
Figure