Multi-task Learning by Leveraging the Semantic Information

Fan Zhou, Brahim Chaib-draa, Boyu Wang

Introduction

Multi-task learning (MTL) is a powerful paradigm designed to improve the generalization of models by learning several related tasks simultaneously. By sharing information across tasks, MTL can overcome data scarcity issues in individual domains. However, traditional MTL approaches often suffer from two critical flaws: they focus primarily on aligning marginal distributions ($P(x)$) while ignoring semantic conditional distributions ($P(x|y)$), and they fail to account for "label shift"—the variation in class proportions across different tasks.

This paper introduces Semantic Multi-Task Learning (SMTL), a framework that leverages label information to ensure that features representing the same semantic concept (e.g., a "dog") are aligned across all tasks. By theoretically analyzing the label shift problem and introducing an efficient centroid-alignment mechanism, SMTL achieves state-of-the-art performance with significantly lower computational overhead than adversarial methods.

The SMTL Framework

The SMTL architecture moves beyond simple feature sharing by incorporating semantic constraints into the learning process. Unlike adversarial methods that require complex discriminators to align distributions, SMTL uses a more direct and efficient approach.

The SMTL architecture: Shared feature extraction followed by semantic matching and task-specific classification.

Key Methodological Components

  • Label Re-weighting: To mitigate the impact of label shift, SMTL adjusts the importance of samples based on their class frequency. This prevents the model from being biased toward classes that are overrepresented in one task but rare in another.
  • Global Semantic Matching (Centroid Alignment): The model calculates the "centroid" (mean feature vector) for each class across all tasks. By minimizing the Euclidean distance between these centroids, the model ensures that the feature space is semantically consistent across the entire task suite.
  • Task Relation Update: Rather than assuming all tasks are equally similar, SMTL employs a convex optimization step to automatically learn task weights ($\alpha$). This allows the model to dynamically determine the optimal degree of information sharing between specific task pairs.

Experimental Evaluation

The researchers evaluated SMTL on several standard computer vision benchmarks, including Digits (MNIST, MNIST-M, SVHN), PACS (Photo, Art, Cartoon, Sketch), and the Office-Home dataset (65 categories across four domains).

Robustness to Label Drift

A core strength of SMTL is its resilience to varying class distributions. In simulations where label drift was intentionally introduced—up to 80%—SMTL maintained a high accuracy floor, whereas "vanilla" MTL and traditional adversarial methods saw significant performance degradation.

Performance comparison under varying degrees of label drift. SMTL (Ours) demonstrates superior robustness compared to baseline methods.

Key Results

  • State-of-the-Art Performance: SMTL consistently outperformed competitive baselines. On the challenging Office-Home benchmark, it achieved an average accuracy of 64.3%, surpassing the next best baseline by over 2%.
  • Computational Efficiency: By utilizing centroid matching instead of adversarial training, SMTL avoids the need for $m(m-1)/2$ discriminators for $m$ tasks. On the Office-Home dataset, SMTL was nearly twice as fast per epoch as adversarial-based MTL methods.
  • Low-Data Regimes: The benefits of semantic alignment were most evident when training data was scarce, such as scenarios using only 5% of available labels.

Conclusion

SMTL provides a rigorous theoretical and practical framework for addressing the semantic gap and label shift in multi-task learning. By replacing expensive adversarial components with efficient centroid alignment and label re-weighting, the authors demonstrate that semantic information is a vital, yet often overlooked, component of effective knowledge transfer. Future work may explore extending this framework to "label space shift," where tasks do not share the same set of classes.

Summary updated

BibTeX
@inproceedings{zhou2021multi,
  author = {Fan Zhou and Brahim Chaib-draa and Boyu Wang},
  title = {{Multi-task Learning by Leveraging the Semantic Information}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i12.17323},
}
Figure