Data Distillation, Face-Related Tasks, Multi Task Learning, Semi-Supervised Learning

Sepidehsadat Hosseini, Mohammad Amin Shabani, Nam Ik Cho

Abstract

We propose a new semi-supervised learning method for face-related tasks based on Multi-Task Learning (MTL) and data distillation. The proposed method exploits multiple datasets with different labels for different-but-related tasks such as simultaneous age, gender, race, and facial expression estimation. Specifically, when there are only a few well-labeled data for a specific task among multiple related ones, we exploit the labels of other related tasks in different domains. Our approach is composed of a new MTL method which can deal with weakly labeled datasets and an MTL-based data distillation framework which enables network generalization across different domains. Experiments show that the proposed multi-task system performs each task better than baseline single-task models.

Introduction

Deep learning models for facial analysis—such as recognizing expressions or estimating age—require massive amounts of labeled data. However, high-quality labels are expensive and often fragmented across different datasets. For instance, one dataset might be excellent for age estimation but lack expression labels, while another is the opposite.

Furthermore, models often struggle with cross-dataset distribution shift. A model trained on high-quality, front-facing lab photos often fails when applied to "in the wild" photos from the internet. Existing semi-supervised methods usually treat unlabeled data as a blank slate, but this research argues that we can use the inherent relationships between different facial tasks to "fill in the blanks" more intelligently.

The Distill-2MD-MTL Framework

The authors propose a two-stage pipeline called Distill-2MD-MTL (Multi-Dataset Multi-Domain Multi-Task Learning).

The Distill-2MD-MTL architecture showing the Teacher-Student distillation process.

1. The Multi-Task Teacher

A single backbone network (VGG-16) is trained with multiple "heads" for different tasks. To handle datasets where only one label is present (e.g., just age), a masking vector is implemented in the loss function. This allows the network to learn from available labels in a batch without being penalized for missing information.

2. Domain Adaptation via Triplet Loss

To ensure the model learns features that work across different datasets (e.g., lab vs. wild), a discriminator head is added. Triplet loss is used to pull samples from the same dataset together and push samples from different datasets apart in the feature space, forcing the shared layers to learn generalized facial representations.

3. Data Distillation and the Student Network

Once the multi-task "Teacher" is trained, it predicts labels for the missing tasks in all datasets. A "Student" network is then trained on the union of the original labels and these new "distilled" labels. This student ends up being more robust and accurate than the teacher because it benefits from a more complete and consistent label set across domains.

Datasets and Domain Challenges

The study utilizes five major facial datasets to cover various tasks and domains:

  • CK+ & Oulu Casia: Constrained, lab-controlled datasets for facial expression recognition (FER).
  • FER2013: A challenging, unconstrained "in the wild" dataset for expressions.
  • MORPHII: A large-scale dataset primarily used for age estimation.
  • Adience: An unconstrained dataset used for gender estimation.
Sample images from the Adience, CK+, FER 2013, and MORPH II datasets illustrating domain differences.

The diversity in these datasets (as seen in the figure above) highlights the challenge of domain shift, where lighting, pose, and image quality vary significantly between controlled lab environments and real-world captures.

Key Results

The proposed method consistently outperformed baseline single-task models and several state-of-the-art approaches:

  • Facial Expression Recognition: Achieved 90.1% on Oulu-Casia and 97.68% on CK+, surpassing models like Star-GAN and DeRL.
  • Cross-Domain Generalization: When tested on the "wild" FER2013 dataset, the model trained with distillation on both CK+ and Casia reached 55.4% accuracy, a significant improvement from the 39.8% baseline.
  • Auxiliary Tasks: The model also excelled at age estimation (90.3% on MORPHII) and gender estimation (92.9% on Adience), proving that multi-task learning benefits all involved tasks.

Conclusion

The Distill-2MD-MTL framework demonstrates that multi-task learning provides a superior foundation for data distillation compared to single-task approaches. By treating incomplete datasets as "weakly labeled" anchors and employing domain adaptation, the model achieves high accuracy and better generalization. Future work could explore scaling this framework with modern architectures like Vision Transformers or expanding the task set to include head pose estimation and facial landmark detection.

Summary updated

BibTeX
@misc{hosseini2019data,
  author = {Sepidehsadat Hosseini and Mohammad Amin Shabani and Nam Ik Cho},
  title = {{Data Distillation, Face-Related Tasks, Multi Task Learning, Semi-Supervised Learning}},
  year = {2019},
  eprint = {1907.03402},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.03402},
}
Figure