Distill-2MD-MTL: Data Distillation based on Multi-Dataset Multi-Domain Multi-Task Frame Work to Solve Face Related Tasksks, Multi Task Learning, Semi-Supervised Learning

Sepidehsadat Hosseini, Mohammad Amin Shabani, Nam Ik Cho

Abstract

We present Distill-2MD-MTL, a semi-supervised learning framework designed to solve face-related tasks—such as age, gender, and facial expression estimation—by leveraging multiple datasets with disparate label sets. The framework integrates a novel Multi-Dataset Multi-Task Learning (2MD-MTL) method with an MTL-based data distillation process. By utilizing a "Teacher" network to generate synthetic labels for unlabeled data across different domains and a "Student" network to refine these predictions, our approach overcomes the limitations of siloed datasets and cross-dataset distribution shifts. Experimental results demonstrate that this multi-task system significantly outperforms single-task baselines and enhances network generalization across lab-controlled and "in-the-wild" environments.

Introduction

Deep learning models for specialized facial analysis, particularly Facial Expression Recognition (FER), typically require massive, high-quality labeled datasets. However, the landscape of available data is fragmented: one dataset may provide age labels, another gender, and a third facial expressions. Simply training on these datasets sequentially often leads to catastrophic forgetting or poor generalization due to cross-dataset distribution shift (e.g., studio photos vs. real-world images).

This paper introduces a method to effectively "distill" knowledge from these disparate, weakly-labeled datasets to boost performance on a specific target task. The core innovation lies in treating related tasks as a source of weak supervision for the primary objective.

The Distill-2MD-MTL Framework

The proposed architecture consists of three primary components designed to handle multi-domain data and multi-task objectives simultaneously.

1. Multi-Dataset Multi-Task Learning (2MD-MTL)

To avoid the instability of alternating between datasets, the framework uses a single network with a masking vector. For every training batch, the network calculates losses only for the labels present in a given image. To balance the importance of different task losses (e.g., ensuring age estimation doesn't overwhelm expression recognition), the system employs GradNorm for automatic loss weighting.

The Distill-2MD-MTL Teacher-Student architecture, illustrating the masking process and the distillation of labels from the Teacher to the Student network.

2. Metric-Learning Based Domain Adaptation

To prevent the model from overfitting to domain-specific noise (like lighting or camera quality), a discriminator head using triplet loss is added. This forces the shared layers to learn features that are useful for the task itself rather than identifying which dataset an image originated from.

3. Data Distillation and Dynamic Learning

The framework employs a "Teacher" network trained via the MTL method to predict labels for images in datasets that lack them. A "Student" network is then trained on the union of original and distilled synthetic labels. Additionally, a Dynamic Learning Rate (DR) optimization method adjusts the learning rate based on real-time loss reduction rather than a fixed schedule.

Experimental Results

The model was evaluated using five major datasets: CK+ and Oulu Casia (lab-controlled FER), FER2013 (in-the-wild FER), MORPHII (age), and Adience (age/gender).

Performance Gains

The full model, DR-Distill-DA-2MD-MTL, consistently outperformed baselines. For FER, it achieved 90.1% accuracy on Oulu-Casia and 97.68% on CK+, a significant jump from the single-task baseline of 89.4%.

Confusion matrix for the proposed model on the CK+ dataset, showing high precision across all facial expression categories.

Cross-Domain Generalization

One of the most striking results was the model's ability to generalize. When trained on lab-controlled datasets and tested on the "wild" FER2013 dataset, the distilled MTL framework reached 55.4% accuracy, compared to just 39.8% for the baseline. This proves that the distillation process successfully transferred knowledge across domains, making the model more robust to real-world variations.

Conclusion

Distill-2MD-MTL demonstrates that multi-task learning, when combined with domain adaptation and data distillation, can effectively unlock the value of siloed datasets. By treating related facial attributes as auxiliary signals, the framework achieves state-of-the-art performance and superior generalization. Future work will explore extending this "omni-supervised" approach to additional tasks like race estimation and facial landmark detection.

Summary updated

BibTeX
@misc{hosseini2019distill,
  author = {Sepidehsadat Hosseini and Mohammad Amin Shabani and Nam Ik Cho},
  title = {{Distill-2MD-MTL: Data Distillation based on Multi-Dataset Multi-Domain Multi-Task Frame Work to Solve Face Related Tasksks, Multi Task Learning, Semi-Supervised Learning}},
  year = {2019},
  eprint = {1907.03402},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.03402},
}
Figure